15 #ifndef _ASM_MICROBLAZE_DMA_MAPPING_H
16 #define _ASM_MICROBLAZE_DMA_MAPPING_H
23 #include <linux/types.h>
31 #include <asm/cacheflush.h>
33 #define DMA_ERROR_CODE (~(dma_addr_t)0x0)
35 #define __dma_alloc_coherent(dev, gfp, size, handle) NULL
36 #define __dma_free_coherent(size, addr) ((void)0)
38 static inline unsigned long device_to_mask(
struct device *
dev)
123 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
124 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
126 #define dma_alloc_coherent(d, s, h, f) dma_alloc_attrs(d, s, h, f, NULL)
128 static inline void *dma_alloc_attrs(
struct device *dev,
size_t size,
137 memory = ops->
alloc(dev, size, dma_handle, flag, attrs);
143 #define dma_free_coherent(d,s,c,h) dma_free_attrs(d, s, c, h, NULL)
145 static inline void dma_free_attrs(
struct device *dev,
size_t size,
153 ops->
free(dev, size, cpu_addr, dma_handle, attrs);