x86: align to clflush size
[linux-2.6/mini2440.git] / include / asm-x86 / dma-mapping_32.h
blobd0512c9251b796017cfce8d8c7d568dc35d590a7
1 #ifndef _ASM_I386_DMA_MAPPING_H
2 #define _ASM_I386_DMA_MAPPING_H
4 #include <linux/mm.h>
5 #include <linux/scatterlist.h>
7 #include <asm/cache.h>
8 #include <asm/io.h>
9 #include <asm/bug.h>
11 static inline int
12 dma_mapping_error(dma_addr_t dma_addr)
14 return 0;
17 extern int forbid_dac;
19 static inline int
20 dma_get_cache_alignment(void)
22 /* no easy way to get cache size on all x86, so return the
23 * maximum possible, to be safe */
24 return boot_cpu_data.x86_clflush_size;
27 #define dma_is_consistent(d, h) (1)
29 #define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY
30 extern int
31 dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr,
32 dma_addr_t device_addr, size_t size, int flags);
34 extern void
35 dma_release_declared_memory(struct device *dev);
37 extern void *
38 dma_mark_declared_memory_occupied(struct device *dev,
39 dma_addr_t device_addr, size_t size);
41 #endif