|
@@ -17,8 +17,8 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
|
|
-#define DAC960_DriverVersion "2.5.48"
|
|
|
|
-#define DAC960_DriverDate "14 May 2006"
|
|
|
|
|
|
+#define DAC960_DriverVersion "2.5.49"
|
|
|
|
+#define DAC960_DriverDate "21 Aug 2007"
|
|
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/module.h>
|
|
@@ -1165,9 +1165,9 @@ static bool DAC960_V1_EnableMemoryMailboxInterface(DAC960_Controller_T
|
|
int i;
|
|
int i;
|
|
|
|
|
|
|
|
|
|
- if (pci_set_dma_mask(Controller->PCIDevice, DAC690_V1_PciDmaMask))
|
|
|
|
|
|
+ if (pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK))
|
|
return DAC960_Failure(Controller, "DMA mask out of range");
|
|
return DAC960_Failure(Controller, "DMA mask out of range");
|
|
- Controller->BounceBufferLimit = DAC690_V1_PciDmaMask;
|
|
|
|
|
|
+ Controller->BounceBufferLimit = DMA_32BIT_MASK;
|
|
|
|
|
|
if ((hw_type == DAC960_PD_Controller) || (hw_type == DAC960_P_Controller)) {
|
|
if ((hw_type == DAC960_PD_Controller) || (hw_type == DAC960_P_Controller)) {
|
|
CommandMailboxesSize = 0;
|
|
CommandMailboxesSize = 0;
|
|
@@ -1368,9 +1368,12 @@ static bool DAC960_V2_EnableMemoryMailboxInterface(DAC960_Controller_T
|
|
dma_addr_t CommandMailboxDMA;
|
|
dma_addr_t CommandMailboxDMA;
|
|
DAC960_V2_CommandStatus_T CommandStatus;
|
|
DAC960_V2_CommandStatus_T CommandStatus;
|
|
|
|
|
|
- if (pci_set_dma_mask(Controller->PCIDevice, DAC690_V2_PciDmaMask))
|
|
|
|
- return DAC960_Failure(Controller, "DMA mask out of range");
|
|
|
|
- Controller->BounceBufferLimit = DAC690_V2_PciDmaMask;
|
|
|
|
|
|
+ if (!pci_set_dma_mask(Controller->PCIDevice, DMA_64BIT_MASK))
|
|
|
|
+ Controller->BounceBufferLimit = DMA_64BIT_MASK;
|
|
|
|
+ else if (!pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK))
|
|
|
|
+ Controller->BounceBufferLimit = DMA_32BIT_MASK;
|
|
|
|
+ else
|
|
|
|
+ return DAC960_Failure(Controller, "DMA mask out of range");
|
|
|
|
|
|
/* This is a temporary dma mapping, used only in the scope of this function */
|
|
/* This is a temporary dma mapping, used only in the scope of this function */
|
|
CommandMailbox = pci_alloc_consistent(PCI_Device,
|
|
CommandMailbox = pci_alloc_consistent(PCI_Device,
|