diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-09-27 22:20:11 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-27 22:20:11 -0400 |
commit | 54bb3a94b192be09feb85993b664ff118d6433d0 (patch) | |
tree | a0d782e482cf145d825c44de61e90c7067e719fc /drivers/ata/sata_nv.c | |
parent | 3b9f6cb8a1ec791be79c6c7595fea922f12d1e64 (diff) |
[libata] Use new PCI_VDEVICE() macro to dramatically shorten ID lists
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_nv.c')
-rw-r--r-- | drivers/ata/sata_nv.c | 50 |
1 files changed, 18 insertions, 32 deletions
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index 8cd730fe5dd3..bbf29595a008 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c | |||
@@ -106,38 +106,24 @@ enum nv_host_type | |||
106 | }; | 106 | }; |
107 | 107 | ||
108 | static const struct pci_device_id nv_pci_tbl[] = { | 108 | static const struct pci_device_id nv_pci_tbl[] = { |
109 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE2S_SATA, | 109 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE2S_SATA), NFORCE2 }, |
110 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, NFORCE2 }, | 110 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE3S_SATA), NFORCE3 }, |
111 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE3S_SATA, | 111 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE3S_SATA2), NFORCE3 }, |
112 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, NFORCE3 }, | 112 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_CK804_SATA), CK804 }, |
113 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE3S_SATA2, | 113 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_CK804_SATA2), CK804 }, |
114 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, NFORCE3 }, | 114 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP04_SATA), CK804 }, |
115 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_CK804_SATA, | 115 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP04_SATA2), CK804 }, |
116 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, CK804 }, | 116 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA), GENERIC }, |
117 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_CK804_SATA2, | 117 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA2), GENERIC }, |
118 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, CK804 }, | 118 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA), GENERIC }, |
119 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP04_SATA, | 119 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA2), GENERIC }, |
120 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, CK804 }, | 120 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA), GENERIC }, |
121 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP04_SATA2, | 121 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA2), GENERIC }, |
122 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, CK804 }, | 122 | { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA3), GENERIC }, |
123 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA, | 123 | { PCI_VDEVICE(NVIDIA, 0x045c), GENERIC }, |
124 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | 124 | { PCI_VDEVICE(NVIDIA, 0x045d), GENERIC }, |
125 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA2, | 125 | { PCI_VDEVICE(NVIDIA, 0x045e), GENERIC }, |
126 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | 126 | { PCI_VDEVICE(NVIDIA, 0x045f), GENERIC }, |
127 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA, | ||
128 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | ||
129 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_SATA2, | ||
130 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | ||
131 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA, | ||
132 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | ||
133 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA2, | ||
134 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | ||
135 | { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA3, | ||
136 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | ||
137 | { PCI_VENDOR_ID_NVIDIA, 0x045c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | ||
138 | { PCI_VENDOR_ID_NVIDIA, 0x045d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | ||
139 | { PCI_VENDOR_ID_NVIDIA, 0x045e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | ||
140 | { PCI_VENDOR_ID_NVIDIA, 0x045f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, GENERIC }, | ||
141 | { PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID, | 127 | { PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID, |
142 | PCI_ANY_ID, PCI_ANY_ID, | 128 | PCI_ANY_ID, PCI_ANY_ID, |
143 | PCI_CLASS_STORAGE_IDE<<8, 0xffff00, GENERIC }, | 129 | PCI_CLASS_STORAGE_IDE<<8, 0xffff00, GENERIC }, |