diff options
Diffstat (limited to 'include/asm-x86/dma-mapping.h')
-rw-r--r-- | include/asm-x86/dma-mapping.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h index 75807368051a..a1a4dc7fe6ec 100644 --- a/include/asm-x86/dma-mapping.h +++ b/include/asm-x86/dma-mapping.h | |||
@@ -215,6 +215,14 @@ static inline int dma_get_cache_alignment(void) | |||
215 | 215 | ||
216 | #ifdef CONFIG_X86_32 | 216 | #ifdef CONFIG_X86_32 |
217 | # define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY | 217 | # define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY |
218 | struct dma_coherent_mem { | ||
219 | void *virt_base; | ||
220 | u32 device_base; | ||
221 | int size; | ||
222 | int flags; | ||
223 | unsigned long *bitmap; | ||
224 | }; | ||
225 | |||
218 | extern int | 226 | extern int |
219 | dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | 227 | dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, |
220 | dma_addr_t device_addr, size_t size, int flags); | 228 | dma_addr_t device_addr, size_t size, int flags); |