7 #ifndef _BLACKFIN_DMA_MAPPING_H
8 #define _BLACKFIN_DMA_MAPPING_H
10 #include <asm/cacheflush.h>
21 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
22 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
23 #define dma_supported(d, m) (1)
63 if (__builtin_constant_p(dir))
64 __dma_sync_inline(addr, size, dir);
79 unsigned long offset,
size_t size,
89 BUG_ON(!valid_dma_direction(dir));
106 BUG_ON(!valid_dma_direction(dir));
111 unsigned long offset,
size_t size,
114 BUG_ON(!valid_dma_direction(dir));
119 unsigned long offset,
size_t size,
122 _dma_sync(handle + offset, size, dir);
143 BUG_ON(!valid_dma_direction(dir));