21 #ifndef _ASM_DMA_MAPPING_H
22 #define _ASM_DMA_MAPPING_H
24 #include <linux/types.h>
38 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
39 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
61 return addr + size - 1 <= *dev->
dma_mask;
74 #define dma_alloc_coherent(d,s,h,f) dma_alloc_attrs(d,s,h,f,NULL)
76 static inline void *dma_alloc_attrs(
struct device *dev,
size_t size,
85 ret = ops->
alloc(dev, size, dma_handle, flag, attrs);
92 #define dma_free_coherent(d,s,c,h) dma_free_attrs(d,s,c,h,NULL)
94 static inline void dma_free_attrs(
struct device *dev,
size_t size,
102 dma_ops->
free(dev, size, cpu_addr, dma_handle, attrs);