diff options
author | Paul Mackerras <paulus@samba.org> | 2009-04-21 23:02:09 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2009-04-21 23:02:09 -0400 |
commit | 5bd3ef84d73c2ea7b4babbad060909753c4828d4 (patch) | |
tree | fdf2bafb48ae1ed03175f6c77a7548a181e69ee9 /arch/powerpc/platforms | |
parent | 0658c16056660886ea2f35c4f038be70a94b1532 (diff) | |
parent | 6d25b688ecc488753af3c9e6f6a9a575b863cf37 (diff) |
Merge branch 'merge' of git://git.secretlab.ca/git/linux-2.6 into merge
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/cell/iommu.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/iommu.c | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/ps3/system-bus.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index 5744527a7f2a..bed4690de394 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c | |||
@@ -644,7 +644,7 @@ static void dma_fixed_unmap_sg(struct device *dev, struct scatterlist *sg, | |||
644 | 644 | ||
645 | static int dma_fixed_dma_supported(struct device *dev, u64 mask) | 645 | static int dma_fixed_dma_supported(struct device *dev, u64 mask) |
646 | { | 646 | { |
647 | return mask == DMA_64BIT_MASK; | 647 | return mask == DMA_BIT_MASK(64); |
648 | } | 648 | } |
649 | 649 | ||
650 | static int dma_set_mask_and_switch(struct device *dev, u64 dma_mask); | 650 | static int dma_set_mask_and_switch(struct device *dev, u64 dma_mask); |
diff --git a/arch/powerpc/platforms/iseries/iommu.c b/arch/powerpc/platforms/iseries/iommu.c index 6ed75bffc8ab..ff43f1fd8343 100644 --- a/arch/powerpc/platforms/iseries/iommu.c +++ b/arch/powerpc/platforms/iseries/iommu.c | |||
@@ -202,7 +202,7 @@ static struct iommu_table vio_iommu_table; | |||
202 | void *iseries_hv_alloc(size_t size, dma_addr_t *dma_handle, gfp_t flag) | 202 | void *iseries_hv_alloc(size_t size, dma_addr_t *dma_handle, gfp_t flag) |
203 | { | 203 | { |
204 | return iommu_alloc_coherent(NULL, &vio_iommu_table, size, dma_handle, | 204 | return iommu_alloc_coherent(NULL, &vio_iommu_table, size, dma_handle, |
205 | DMA_32BIT_MASK, flag, -1); | 205 | DMA_BIT_MASK(32), flag, -1); |
206 | } | 206 | } |
207 | EXPORT_SYMBOL_GPL(iseries_hv_alloc); | 207 | EXPORT_SYMBOL_GPL(iseries_hv_alloc); |
208 | 208 | ||
@@ -217,7 +217,7 @@ dma_addr_t iseries_hv_map(void *vaddr, size_t size, | |||
217 | { | 217 | { |
218 | return iommu_map_page(NULL, &vio_iommu_table, virt_to_page(vaddr), | 218 | return iommu_map_page(NULL, &vio_iommu_table, virt_to_page(vaddr), |
219 | (unsigned long)vaddr % PAGE_SIZE, size, | 219 | (unsigned long)vaddr % PAGE_SIZE, size, |
220 | DMA_32BIT_MASK, direction, NULL); | 220 | DMA_BIT_MASK(32), direction, NULL); |
221 | } | 221 | } |
222 | 222 | ||
223 | void iseries_hv_unmap(dma_addr_t dma_handle, size_t size, | 223 | void iseries_hv_unmap(dma_addr_t dma_handle, size_t size, |
diff --git a/arch/powerpc/platforms/ps3/system-bus.c b/arch/powerpc/platforms/ps3/system-bus.c index a705fffbb498..9a73d0238639 100644 --- a/arch/powerpc/platforms/ps3/system-bus.c +++ b/arch/powerpc/platforms/ps3/system-bus.c | |||
@@ -689,7 +689,7 @@ static void ps3_ioc0_unmap_sg(struct device *_dev, struct scatterlist *sg, | |||
689 | 689 | ||
690 | static int ps3_dma_supported(struct device *_dev, u64 mask) | 690 | static int ps3_dma_supported(struct device *_dev, u64 mask) |
691 | { | 691 | { |
692 | return mask >= DMA_32BIT_MASK; | 692 | return mask >= DMA_BIT_MASK(32); |
693 | } | 693 | } |
694 | 694 | ||
695 | static struct dma_mapping_ops ps3_sb_dma_ops = { | 695 | static struct dma_mapping_ops ps3_sb_dma_ops = { |