]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/frv/include/asm/dma-mapping.h
Merge tag 'mac80211-for-davem-2017-02-28' of git://git.kernel.org/pub/scm/linux/kerne...
[mirror_ubuntu-artful-kernel.git] / arch / frv / include / asm / dma-mapping.h
CommitLineData
1da177e4
LT
1#ifndef _ASM_DMA_MAPPING_H
2#define _ASM_DMA_MAPPING_H
3
1da177e4
LT
4#include <asm/cache.h>
5#include <asm/cacheflush.h>
1da177e4
LT
6
7extern unsigned long __nongprelbss dma_coherent_mem_start;
8extern unsigned long __nongprelbss dma_coherent_mem_end;
9
5299709d 10extern const struct dma_map_ops frv_dma_ops;
1da177e4 11
815dd187 12static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
1da177e4 13{
eae07519 14 return &frv_dma_ops;
1da177e4
LT
15}
16
1da177e4 17static inline
d3fa72e4 18void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
1da177e4
LT
19 enum dma_data_direction direction)
20{
21 flush_write_buffers();
22}
23
24#endif /* _ASM_DMA_MAPPING_H */