1 #ifndef ___ASM_SPARC_DMA_MAPPING_H
2 #define ___ASM_SPARC_DMA_MAPPING_H
8 #define DMA_ERROR_CODE (~(dma_addr_t)0x0)
12 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
13 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
23 #if defined(CONFIG_SPARC32) && defined(CONFIG_PCI)
34 #define dma_alloc_coherent(d,s,h,f) dma_alloc_attrs(d,s,h,f,NULL)
36 static inline void *dma_alloc_attrs(
struct device *dev,
size_t size,
43 cpu_addr = ops->
alloc(dev, size, dma_handle, flag, attrs);
48 #define dma_free_coherent(d,s,c,h) dma_free_attrs(d,s,c,h,NULL)
50 static inline void dma_free_attrs(
struct device *dev,
size_t size,
57 ops->
free(dev, size, cpu_addr, dma_handle, attrs);