1 #ifndef __ASM_NIOS2_DMA_MAPPING_H
2 #define __ASM_NIOS2_DMA_MAPPING_H
8 * dma_alloc_coherent() return cache-line aligned allocation which is mapped
9 * to uncached io region.
11 static inline void *dma_alloc_coherent(size_t len, unsigned long *handle)
13 unsigned long addr = (unsigned long)malloc_cache_aligned(len);
18 invalidate_dcache_range(addr, addr + len);
22 return map_physmem(addr, len, MAP_NOCACHE);
24 #endif /* __ASM_NIOS2_DMA_MAPPING_H */