diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-25 17:36:38 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:19:57 -0400 |
commit | ae17a63b096b05007bacafd2f92414b881a0b4b4 (patch) | |
tree | c945afe5e66407cd3b4b8a5ea33fcae08a30c579 /include/asm-x86 | |
parent | c786df08f6df2833e34e78cee5ef62558e3b5346 (diff) |
x86: move ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY to dma-mapping.h
define it conditionally to i386.
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')
-rw-r--r-- | include/asm-x86/dma-mapping.h | 14 | ||||
-rw-r--r-- | include/asm-x86/dma-mapping_32.h | 12 |
2 files changed, 14 insertions, 12 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 | ||
210 | extern int | ||
211 | dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | ||
212 | dma_addr_t device_addr, size_t size, int flags); | ||
213 | |||
214 | extern void | ||
215 | dma_release_declared_memory(struct device *dev); | ||
216 | |||
217 | extern void * | ||
218 | dma_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 |
diff --git a/include/asm-x86/dma-mapping_32.h b/include/asm-x86/dma-mapping_32.h index 03a75f866534..4ec4f45446cf 100644 --- a/include/asm-x86/dma-mapping_32.h +++ b/include/asm-x86/dma-mapping_32.h | |||
@@ -20,16 +20,4 @@ dma_get_cache_alignment(void) | |||
20 | 20 | ||
21 | #define dma_is_consistent(d, h) (1) | 21 | #define dma_is_consistent(d, h) (1) |
22 | 22 | ||
23 | #define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY | ||
24 | extern int | ||
25 | dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | ||
26 | dma_addr_t device_addr, size_t size, int flags); | ||
27 | |||
28 | extern void | ||
29 | dma_release_declared_memory(struct device *dev); | ||
30 | |||
31 | extern void * | ||
32 | dma_mark_declared_memory_occupied(struct device *dev, | ||
33 | dma_addr_t device_addr, size_t size); | ||
34 | |||
35 | #endif | 23 | #endif |