diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-04-08 12:20:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:19:57 -0400 |
commit | 8e8edc6401205da3000cc3dfa76f3fd28a21d73c (patch) | |
tree | 9e5583cf141dcfe39228bdd1b77eb4c81f6b5b51 /include/asm-x86/dma-mapping.h | |
parent | fae9a0d8ca68a14da8d2351ad3e0bf42f3b29899 (diff) |
x86: move dma_coherent functions to pci-dma.c
They are placed in an ifdef, since they are i386 specific
the structure definition goes to dma-mapping.h.
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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); |