Loading...
Note: File does not exist in v5.9.
1#ifndef _ASM_DMA_MAPPING_H
2#define _ASM_DMA_MAPPING_H
3
4#include <asm/cache.h>
5#include <asm/cacheflush.h>
6
7extern unsigned long __nongprelbss dma_coherent_mem_start;
8extern unsigned long __nongprelbss dma_coherent_mem_end;
9
10extern struct dma_map_ops frv_dma_ops;
11
12static inline struct dma_map_ops *get_dma_ops(struct device *dev)
13{
14 return &frv_dma_ops;
15}
16
17static inline
18void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
19 enum dma_data_direction direction)
20{
21 flush_write_buffers();
22}
23
24#endif /* _ASM_DMA_MAPPING_H */