diff options
Diffstat (limited to 'arch/arm/include/asm/dma-mapping.h')
-rw-r--r-- | arch/arm/include/asm/dma-mapping.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h index 23004847bb05..5b579b951503 100644 --- a/arch/arm/include/asm/dma-mapping.h +++ b/arch/arm/include/asm/dma-mapping.h | |||
@@ -91,6 +91,7 @@ static inline dma_addr_t virt_to_dma(struct device *dev, void *addr) | |||
91 | */ | 91 | */ |
92 | static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) | 92 | static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) |
93 | { | 93 | { |
94 | debug_dma_mapping_error(dev, dma_addr); | ||
94 | return dma_addr == DMA_ERROR_CODE; | 95 | return dma_addr == DMA_ERROR_CODE; |
95 | } | 96 | } |
96 | 97 | ||
@@ -111,6 +112,8 @@ static inline void dma_free_noncoherent(struct device *dev, size_t size, | |||
111 | 112 | ||
112 | extern int dma_supported(struct device *dev, u64 mask); | 113 | extern int dma_supported(struct device *dev, u64 mask); |
113 | 114 | ||
115 | extern int arm_dma_set_mask(struct device *dev, u64 dma_mask); | ||
116 | |||
114 | /** | 117 | /** |
115 | * arm_dma_alloc - allocate consistent memory for DMA | 118 | * arm_dma_alloc - allocate consistent memory for DMA |
116 | * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices | 119 | * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices |
@@ -211,13 +214,6 @@ static inline void dma_free_writecombine(struct device *dev, size_t size, | |||
211 | extern void __init init_dma_coherent_pool_size(unsigned long size); | 214 | extern void __init init_dma_coherent_pool_size(unsigned long size); |
212 | 215 | ||
213 | /* | 216 | /* |
214 | * This can be called during boot to increase the size of the consistent | ||
215 | * DMA region above it's default value of 2MB. It must be called before the | ||
216 | * memory allocator is initialised, i.e. before any core_initcall. | ||
217 | */ | ||
218 | static inline void init_consistent_dma_size(unsigned long size) { } | ||
219 | |||
220 | /* | ||
221 | * For SA-1111, IXP425, and ADI systems the dma-mapping functions are "magic" | 217 | * For SA-1111, IXP425, and ADI systems the dma-mapping functions are "magic" |
222 | * and utilize bounce buffers as needed to work around limited DMA windows. | 218 | * and utilize bounce buffers as needed to work around limited DMA windows. |
223 | * | 219 | * |