aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/dma-mapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/dma-mapping.h')
-rw-r--r--include/asm-x86/dma-mapping.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h
index a7090bbb2a2d..1c88ce6b50d6 100644
--- a/include/asm-x86/dma-mapping.h
+++ b/include/asm-x86/dma-mapping.h
@@ -204,4 +204,18 @@ dma_cache_sync(struct device *dev, void *vaddr, size_t size,
204{ 204{
205 flush_write_buffers(); 205 flush_write_buffers();
206} 206}
207
208#ifdef CONFIG_X86_32
209# define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY
210extern int
211dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr,
212 dma_addr_t device_addr, size_t size, int flags);
213
214extern void
215dma_release_declared_memory(struct device *dev);
216
217extern void *
218dma_mark_declared_memory_occupied(struct device *dev,
219 dma_addr_t device_addr, size_t size);
220#endif /* CONFIG_X86_32 */
207#endif 221#endif