diff options
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 8 | ||||
-rw-r--r-- | drivers/message/i2o/memory.c | 6 | ||||
-rw-r--r-- | drivers/message/i2o/pci.c | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index ea3aafbbda44..d0d126c69354 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -1534,13 +1534,13 @@ mpt_mapresources(MPT_ADAPTER *ioc) | |||
1534 | 1534 | ||
1535 | pci_read_config_byte(pdev, PCI_CLASS_REVISION, &revision); | 1535 | pci_read_config_byte(pdev, PCI_CLASS_REVISION, &revision); |
1536 | 1536 | ||
1537 | if (!pci_set_dma_mask(pdev, DMA_64BIT_MASK) | 1537 | if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) |
1538 | && !pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK)) { | 1538 | && !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { |
1539 | dinitprintk(ioc, printk(MYIOC_s_INFO_FMT | 1539 | dinitprintk(ioc, printk(MYIOC_s_INFO_FMT |
1540 | ": 64 BIT PCI BUS DMA ADDRESSING SUPPORTED\n", | 1540 | ": 64 BIT PCI BUS DMA ADDRESSING SUPPORTED\n", |
1541 | ioc->name)); | 1541 | ioc->name)); |
1542 | } else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK) | 1542 | } else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) |
1543 | && !pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { | 1543 | && !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) { |
1544 | dinitprintk(ioc, printk(MYIOC_s_INFO_FMT | 1544 | dinitprintk(ioc, printk(MYIOC_s_INFO_FMT |
1545 | ": 32 BIT PCI BUS DMA ADDRESSING SUPPORTED\n", | 1545 | ": 32 BIT PCI BUS DMA ADDRESSING SUPPORTED\n", |
1546 | ioc->name)); | 1546 | ioc->name)); |
diff --git a/drivers/message/i2o/memory.c b/drivers/message/i2o/memory.c index f5cc95c564e2..292b41e49fbd 100644 --- a/drivers/message/i2o/memory.c +++ b/drivers/message/i2o/memory.c | |||
@@ -185,9 +185,9 @@ int i2o_dma_alloc(struct device *dev, struct i2o_dma *addr, size_t len) | |||
185 | int dma_64 = 0; | 185 | int dma_64 = 0; |
186 | 186 | ||
187 | mutex_lock(&mem_lock); | 187 | mutex_lock(&mem_lock); |
188 | if ((sizeof(dma_addr_t) > 4) && (pdev->dma_mask == DMA_64BIT_MASK)) { | 188 | if ((sizeof(dma_addr_t) > 4) && (pdev->dma_mask == DMA_BIT_MASK(64))) { |
189 | dma_64 = 1; | 189 | dma_64 = 1; |
190 | if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { | 190 | if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { |
191 | mutex_unlock(&mem_lock); | 191 | mutex_unlock(&mem_lock); |
192 | return -ENOMEM; | 192 | return -ENOMEM; |
193 | } | 193 | } |
@@ -196,7 +196,7 @@ int i2o_dma_alloc(struct device *dev, struct i2o_dma *addr, size_t len) | |||
196 | addr->virt = dma_alloc_coherent(dev, len, &addr->phys, GFP_KERNEL); | 196 | addr->virt = dma_alloc_coherent(dev, len, &addr->phys, GFP_KERNEL); |
197 | 197 | ||
198 | if ((sizeof(dma_addr_t) > 4) && dma_64) | 198 | if ((sizeof(dma_addr_t) > 4) && dma_64) |
199 | if (pci_set_dma_mask(pdev, DMA_64BIT_MASK)) | 199 | if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) |
200 | printk(KERN_WARNING "i2o: unable to set 64-bit DMA"); | 200 | printk(KERN_WARNING "i2o: unable to set 64-bit DMA"); |
201 | mutex_unlock(&mem_lock); | 201 | mutex_unlock(&mem_lock); |
202 | 202 | ||
diff --git a/drivers/message/i2o/pci.c b/drivers/message/i2o/pci.c index 25d6f2341983..35ba2ae38b42 100644 --- a/drivers/message/i2o/pci.c +++ b/drivers/message/i2o/pci.c | |||
@@ -334,7 +334,7 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev, | |||
334 | return rc; | 334 | return rc; |
335 | } | 335 | } |
336 | 336 | ||
337 | if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { | 337 | if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { |
338 | printk(KERN_WARNING "i2o: no suitable DMA found for %s\n", | 338 | printk(KERN_WARNING "i2o: no suitable DMA found for %s\n", |
339 | pci_name(pdev)); | 339 | pci_name(pdev)); |
340 | rc = -ENODEV; | 340 | rc = -ENODEV; |
@@ -397,7 +397,7 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev, | |||
397 | } | 397 | } |
398 | #ifdef CONFIG_I2O_EXT_ADAPTEC_DMA64 | 398 | #ifdef CONFIG_I2O_EXT_ADAPTEC_DMA64 |
399 | if (sizeof(dma_addr_t) > 4) { | 399 | if (sizeof(dma_addr_t) > 4) { |
400 | if (pci_set_dma_mask(pdev, DMA_64BIT_MASK)) | 400 | if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) |
401 | printk(KERN_INFO "%s: 64-bit DMA unavailable\n", | 401 | printk(KERN_INFO "%s: 64-bit DMA unavailable\n", |
402 | c->name); | 402 | c->name); |
403 | else { | 403 | else { |