|
@@ -42,6 +42,7 @@
|
|
|
#include <linux/pci.h>
|
|
|
#include <linux/spinlock.h>
|
|
|
#include <linux/jiffies.h>
|
|
|
+#include <linux/dma-mapping.h>
|
|
|
#include <scsi/scsicam.h>
|
|
|
|
|
|
#include <asm/dma.h>
|
|
@@ -677,7 +678,7 @@ static int __init BusLogic_InitializeMultiMasterProbeInfo(struct BusLogic_HostAd
|
|
|
if (pci_enable_device(PCI_Device))
|
|
|
continue;
|
|
|
|
|
|
- if (pci_set_dma_mask(PCI_Device, (u64) 0xffffffff))
|
|
|
+ if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK ))
|
|
|
continue;
|
|
|
|
|
|
Bus = PCI_Device->bus->number;
|
|
@@ -832,7 +833,7 @@ static int __init BusLogic_InitializeMultiMasterProbeInfo(struct BusLogic_HostAd
|
|
|
if (pci_enable_device(PCI_Device))
|
|
|
continue;
|
|
|
|
|
|
- if (pci_set_dma_mask(PCI_Device, (u64) 0xffffffff))
|
|
|
+ if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK))
|
|
|
continue;
|
|
|
|
|
|
Bus = PCI_Device->bus->number;
|
|
@@ -886,7 +887,7 @@ static int __init BusLogic_InitializeFlashPointProbeInfo(struct BusLogic_HostAda
|
|
|
if (pci_enable_device(PCI_Device))
|
|
|
continue;
|
|
|
|
|
|
- if (pci_set_dma_mask(PCI_Device, (u64) 0xffffffff))
|
|
|
+ if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK))
|
|
|
continue;
|
|
|
|
|
|
Bus = PCI_Device->bus->number;
|