diff options
author | Tejun Heo <htejun@gmail.com> | 2006-06-17 02:49:55 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-20 04:59:22 -0400 |
commit | 27e4b2745443cef67220da9a4f5f71b1c5f72442 (patch) | |
tree | 473afba54188a535a6ab3e4bfe36f7a9ed2a62ba /drivers | |
parent | e6faf082cd75d6dcdcf89258ddf40c6855df87a1 (diff) |
[PATCH] sata_nv: simplify constants
Simplify interrupt constants and make NFORCE3 equal to NFORCE2.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/sata_nv.c | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/drivers/scsi/sata_nv.c b/drivers/scsi/sata_nv.c index e9c4547723c8..1cb7b44cb660 100644 --- a/drivers/scsi/sata_nv.c +++ b/drivers/scsi/sata_nv.c | |||
@@ -54,28 +54,21 @@ enum { | |||
54 | NV_PORT0_SCR_REG_OFFSET = 0x00, | 54 | NV_PORT0_SCR_REG_OFFSET = 0x00, |
55 | NV_PORT1_SCR_REG_OFFSET = 0x40, | 55 | NV_PORT1_SCR_REG_OFFSET = 0x40, |
56 | 56 | ||
57 | /* INT_STATUS/ENABLE */ | ||
57 | NV_INT_STATUS = 0x10, | 58 | NV_INT_STATUS = 0x10, |
58 | NV_INT_STATUS_CK804 = 0x440, | ||
59 | NV_INT_STATUS_PDEV_INT = 0x01, | ||
60 | NV_INT_STATUS_PDEV_PM = 0x02, | ||
61 | NV_INT_STATUS_PDEV_ADDED = 0x04, | ||
62 | NV_INT_STATUS_PDEV_REMOVED = 0x08, | ||
63 | NV_INT_STATUS_SDEV_INT = 0x10, | ||
64 | NV_INT_STATUS_SDEV_PM = 0x20, | ||
65 | NV_INT_STATUS_SDEV_ADDED = 0x40, | ||
66 | NV_INT_STATUS_SDEV_REMOVED = 0x80, | ||
67 | |||
68 | NV_INT_ENABLE = 0x11, | 59 | NV_INT_ENABLE = 0x11, |
60 | NV_INT_STATUS_CK804 = 0x440, | ||
69 | NV_INT_ENABLE_CK804 = 0x441, | 61 | NV_INT_ENABLE_CK804 = 0x441, |
70 | NV_INT_ENABLE_PDEV_MASK = 0x01, | ||
71 | NV_INT_ENABLE_PDEV_PM = 0x02, | ||
72 | NV_INT_ENABLE_PDEV_ADDED = 0x04, | ||
73 | NV_INT_ENABLE_PDEV_REMOVED = 0x08, | ||
74 | NV_INT_ENABLE_SDEV_MASK = 0x10, | ||
75 | NV_INT_ENABLE_SDEV_PM = 0x20, | ||
76 | NV_INT_ENABLE_SDEV_ADDED = 0x40, | ||
77 | NV_INT_ENABLE_SDEV_REMOVED = 0x80, | ||
78 | 62 | ||
63 | /* INT_STATUS/ENABLE bits */ | ||
64 | NV_INT_DEV = 0x01, | ||
65 | NV_INT_PM = 0x02, | ||
66 | NV_INT_ADDED = 0x04, | ||
67 | NV_INT_REMOVED = 0x08, | ||
68 | |||
69 | NV_INT_PORT_SHIFT = 4, /* each port occupies 4 bits */ | ||
70 | |||
71 | /* INT_CONFIG */ | ||
79 | NV_INT_CONFIG = 0x12, | 72 | NV_INT_CONFIG = 0x12, |
80 | NV_INT_CONFIG_METHD = 0x01, // 0 = INT, 1 = SMI | 73 | NV_INT_CONFIG_METHD = 0x01, // 0 = INT, 1 = SMI |
81 | 74 | ||
@@ -94,7 +87,7 @@ enum nv_host_type | |||
94 | { | 87 | { |
95 | GENERIC, | 88 | GENERIC, |
96 | NFORCE2, | 89 | NFORCE2, |
97 | NFORCE3, | 90 | NFORCE3 = NFORCE2, /* NF2 == NF3 as far as sata_nv is concerned */ |
98 | CK804 | 91 | CK804 |
99 | }; | 92 | }; |
100 | 93 | ||