aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/linit.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aacraid/linit.c')
-rw-r--r--drivers/scsi/aacraid/linit.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 36d8aab97efe..9b97c3e016fe 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -86,7 +86,13 @@ char aac_driver_version[] = AAC_DRIVER_FULL_VERSION;
86 * 86 *
87 * Note: The last field is used to index into aac_drivers below. 87 * Note: The last field is used to index into aac_drivers below.
88 */ 88 */
89static struct pci_device_id aac_pci_tbl[] = { 89#ifdef DECLARE_PCI_DEVICE_TABLE
90static DECLARE_PCI_DEVICE_TABLE(aac_pci_tbl) = {
91#elif defined(__devinitconst)
92static const struct pci_device_id aac_pci_tbl[] __devinitconst = {
93#else
94static const struct pci_device_id aac_pci_tbl[] __devinitdata = {
95#endif
90 { 0x1028, 0x0001, 0x1028, 0x0001, 0, 0, 0 }, /* PERC 2/Si (Iguana/PERC2Si) */ 96 { 0x1028, 0x0001, 0x1028, 0x0001, 0, 0, 0 }, /* PERC 2/Si (Iguana/PERC2Si) */
91 { 0x1028, 0x0002, 0x1028, 0x0002, 0, 0, 1 }, /* PERC 3/Di (Opal/PERC3Di) */ 97 { 0x1028, 0x0002, 0x1028, 0x0002, 0, 0, 1 }, /* PERC 3/Di (Opal/PERC3Di) */
92 { 0x1028, 0x0003, 0x1028, 0x0003, 0, 0, 2 }, /* PERC 3/Si (SlimFast/PERC3Si */ 98 { 0x1028, 0x0003, 0x1028, 0x0003, 0, 0, 2 }, /* PERC 3/Si (SlimFast/PERC3Si */
@@ -1089,16 +1095,16 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
1089 goto out; 1095 goto out;
1090 error = -ENODEV; 1096 error = -ENODEV;
1091 1097
1092 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) || 1098 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) ||
1093 pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) 1099 pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)))
1094 goto out_disable_pdev; 1100 goto out_disable_pdev;
1095 /* 1101 /*
1096 * If the quirk31 bit is set, the adapter needs adapter 1102 * If the quirk31 bit is set, the adapter needs adapter
1097 * to driver communication memory to be allocated below 2gig 1103 * to driver communication memory to be allocated below 2gig
1098 */ 1104 */
1099 if (aac_drivers[index].quirks & AAC_QUIRK_31BIT) 1105 if (aac_drivers[index].quirks & AAC_QUIRK_31BIT)
1100 if (pci_set_dma_mask(pdev, DMA_31BIT_MASK) || 1106 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(31)) ||
1101 pci_set_consistent_dma_mask(pdev, DMA_31BIT_MASK)) 1107 pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(31)))
1102 goto out_disable_pdev; 1108 goto out_disable_pdev;
1103 1109
1104 pci_set_master(pdev); 1110 pci_set_master(pdev);
@@ -1148,7 +1154,7 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
1148 * address space. 1154 * address space.
1149 */ 1155 */
1150 if (aac_drivers[index].quirks & AAC_QUIRK_31BIT) 1156 if (aac_drivers[index].quirks & AAC_QUIRK_31BIT)
1151 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) 1157 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)))
1152 goto out_deinit; 1158 goto out_deinit;
1153 1159
1154 aac->maximum_num_channels = aac_drivers[index].channels; 1160 aac->maximum_num_channels = aac_drivers[index].channels;