diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-27 21:40:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-29 05:15:07 -0400 |
commit | 4b1c5df2af38b2681b7c1a058534d17c54aaf6cf (patch) | |
tree | 3fd9131a506185fa942865cc5e54ecf274a3b5fb /arch/sparc/include/asm/dma.h | |
parent | b1387c35bef6da55f6f2c27dfb748c86a4ef7ef9 (diff) |
sparc32: Make mmu_map_dma_area and mmu_unmap_dma_area take a device pointer.
This lets us kill this "map it in every IOMMU" crazy code, and also
some of the final references to sbus_root.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/dma.h')
-rw-r--r-- | arch/sparc/include/asm/dma.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/include/asm/dma.h b/arch/sparc/include/asm/dma.h index ee4ac181bf2f..d1ae56be9fa6 100644 --- a/arch/sparc/include/asm/dma.h +++ b/arch/sparc/include/asm/dma.h | |||
@@ -131,11 +131,11 @@ BTFIXUPDEF_CALL(void, mmu_release_scsi_sgl, struct device *, struct scatterlist | |||
131 | * know if we are mapping RAM or I/O, so it has to be an additional argument | 131 | * know if we are mapping RAM or I/O, so it has to be an additional argument |
132 | * to a separate mapping function for CPU visible mappings. | 132 | * to a separate mapping function for CPU visible mappings. |
133 | */ | 133 | */ |
134 | BTFIXUPDEF_CALL(int, mmu_map_dma_area, dma_addr_t *, unsigned long, unsigned long, int len) | 134 | BTFIXUPDEF_CALL(int, mmu_map_dma_area, struct device *, dma_addr_t *, unsigned long, unsigned long, int len) |
135 | BTFIXUPDEF_CALL(void, mmu_unmap_dma_area, unsigned long busa, int len) | 135 | BTFIXUPDEF_CALL(void, mmu_unmap_dma_area, struct device *, unsigned long busa, int len) |
136 | 136 | ||
137 | #define mmu_map_dma_area(pba,va,a,len) BTFIXUP_CALL(mmu_map_dma_area)(pba,va,a,len) | 137 | #define mmu_map_dma_area(dev,pba,va,a,len) BTFIXUP_CALL(mmu_map_dma_area)(dev,pba,va,a,len) |
138 | #define mmu_unmap_dma_area(ba,len) BTFIXUP_CALL(mmu_unmap_dma_area)(ba,len) | 138 | #define mmu_unmap_dma_area(dev,ba,len) BTFIXUP_CALL(mmu_unmap_dma_area)(dev,ba,len) |
139 | #endif | 139 | #endif |
140 | 140 | ||
141 | #endif /* !(_ASM_SPARC_DMA_H) */ | 141 | #endif /* !(_ASM_SPARC_DMA_H) */ |