diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-11-11 01:25:14 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 04:38:57 -0500 |
commit | 92b20c40dcca2d441f367da57e7665cce15c492a (patch) | |
tree | 937e98acbbc3db12c8ed99c4499794d39287f98f /include/asm-powerpc/dma-mapping.h | |
parent | 3bc0f40c287a435805b0545ffc44ea41f11cd43e (diff) |
[POWERPC] Add an optional offset to direct DMA on 64 bits
This patch adds an optional global offset that can be added to DMA addresses
when using the direct DMA operations.
That brings it a step closer to the 32 bits direct DMA operations, and makes
it useable on Cell when the MMU is disabled and we are using a spider
southbridge.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/dma-mapping.h')
-rw-r--r-- | include/asm-powerpc/dma-mapping.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/dma-mapping.h b/include/asm-powerpc/dma-mapping.h index 8367810c994c..7e38b5fddada 100644 --- a/include/asm-powerpc/dma-mapping.h +++ b/include/asm-powerpc/dma-mapping.h | |||
@@ -187,6 +187,8 @@ static inline void dma_unmap_sg(struct device *dev, struct scatterlist *sg, | |||
187 | extern struct dma_mapping_ops dma_iommu_ops; | 187 | extern struct dma_mapping_ops dma_iommu_ops; |
188 | extern struct dma_mapping_ops dma_direct_ops; | 188 | extern struct dma_mapping_ops dma_direct_ops; |
189 | 189 | ||
190 | extern unsigned long dma_direct_offset; | ||
191 | |||
190 | #else /* CONFIG_PPC64 */ | 192 | #else /* CONFIG_PPC64 */ |
191 | 193 | ||
192 | #define dma_supported(dev, mask) (1) | 194 | #define dma_supported(dev, mask) (1) |