- Update Xen patches to 3.3-rc5 and c/s 1157.
[linux-flexiantxendom0-3.2.10.git] / arch / x86 / include / mach-xen / asm / dma-mapping.h
1 #ifndef _ASM_X86_DMA_MAPPING_H_
2
3 #define phys_to_dma _phys_to_dma_
4 #define dma_to_phys _dma_to_phys_
5
6 #include_next <asm/dma-mapping.h>
7
8 #undef phys_to_dma
9 #undef dma_to_phys
10
11 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
12 {
13         return phys_to_machine(paddr);
14 }
15
16 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr)
17 {
18         return machine_to_phys(daddr);
19 }
20
21 void dma_generic_free_coherent(struct device *, size_t, void *, dma_addr_t);
22
23 extern int range_straddles_page_boundary(paddr_t p, size_t size);
24
25 #endif /* _ASM_X86_DMA_MAPPING_H_ */