1 #ifndef _ASM_X86_DMA_MAPPING_H_
3 #define phys_to_dma _phys_to_dma_
4 #define dma_to_phys _dma_to_phys_
6 #include_next <asm/dma-mapping.h>
11 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
13 return phys_to_machine(paddr);
16 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr)
18 return machine_to_phys(daddr);
21 void dma_generic_free_coherent(struct device *, size_t, void *, dma_addr_t);
23 extern int range_straddles_page_boundary(paddr_t p, size_t size);
25 #endif /* _ASM_X86_DMA_MAPPING_H_ */