1 #ifndef __ASM_AVR32_DMA_MAPPING_H
2 #define __ASM_AVR32_DMA_MAPPING_H
5 #include <linux/device.h>
7 #include <asm/processor.h>
8 #include <asm/cacheflush.h>
26 static inline int dma_set_mask(
struct device *
dev,
u64 dma_mask)
217 for (i = 0; i < nents; i++) {
221 virt = sg_virt(&sg[i]);
283 unsigned long offset,
size_t size,
287 dma_sync_single_for_cpu(dev, dma_handle, offset+size, direction);
292 unsigned long offset,
size_t size,
329 for (i = 0; i < nents; i++) {
336 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
337 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)