1 #ifndef __ASM_SH_DMA_MAPPING_H
2 #define __ASM_SH_DMA_MAPPING_H
42 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
43 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
55 #define dma_alloc_coherent(d,s,h,f) dma_alloc_attrs(d,s,h,f,NULL)
57 static inline void *dma_alloc_attrs(
struct device *dev,
size_t size,
69 memory = ops->
alloc(dev, size, dma_handle, gfp, attrs);
75 #define dma_free_coherent(d,s,c,h) dma_free_attrs(d,s,c,h,NULL)
77 static inline void dma_free_attrs(
struct device *dev,
size_t size,
88 ops->
free(dev, size, vaddr, dma_handle, attrs);