Linux 4.8-rc8
[linux/fpc-iii.git] / arch / frv / include / asm / dma-mapping.h
blob9a82bfa4303b2ed4f1390906d62e85b5b7d26cb2
1 #ifndef _ASM_DMA_MAPPING_H
2 #define _ASM_DMA_MAPPING_H
4 #include <asm/cache.h>
5 #include <asm/cacheflush.h>
7 extern unsigned long __nongprelbss dma_coherent_mem_start;
8 extern unsigned long __nongprelbss dma_coherent_mem_end;
10 extern struct dma_map_ops frv_dma_ops;
12 static inline struct dma_map_ops *get_dma_ops(struct device *dev)
14 return &frv_dma_ops;
17 static inline
18 void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
19 enum dma_data_direction direction)
21 flush_write_buffers();
24 #endif /* _ASM_DMA_MAPPING_H */