1 #ifndef _ASM_I386_DMA_MAPPING_H
2 #define _ASM_I386_DMA_MAPPING_H
5 #include <linux/scatterlist.h>
12 dma_mapping_error(dma_addr_t dma_addr
)
17 extern int forbid_dac
;
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
31 dma_declare_coherent_memory(struct device
*dev
, dma_addr_t bus_addr
,
32 dma_addr_t device_addr
, size_t size
, int flags
);
35 dma_release_declared_memory(struct device
*dev
);
38 dma_mark_declared_memory_occupied(struct device
*dev
,
39 dma_addr_t device_addr
, size_t size
);