]> Pileus Git - ~andy/linux/blob - include/asm-x86/dma-mapping_32.h
x86: move ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY to dma-mapping.h
[~andy/linux] / include / asm-x86 / dma-mapping_32.h
1 #ifndef _ASM_I386_DMA_MAPPING_H
2 #define _ASM_I386_DMA_MAPPING_H
3
4 #include <linux/mm.h>
5 #include <linux/scatterlist.h>
6
7 #include <asm/cache.h>
8 #include <asm/io.h>
9 #include <asm/bug.h>
10
11 extern int forbid_dac;
12
13 static inline int
14 dma_get_cache_alignment(void)
15 {
16         /* no easy way to get cache size on all x86, so return the
17          * maximum possible, to be safe */
18         return boot_cpu_data.x86_clflush_size;
19 }
20
21 #define dma_is_consistent(d, h) (1)
22
23 #endif