blob: 354900917585a220fe840aecb4b2a081616f6d42 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_DMA_MAPPING_H
2#define _ASM_DMA_MAPPING_H
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004#include <asm/cache.h>
5#include <asm/cacheflush.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
7extern unsigned long __nongprelbss dma_coherent_mem_start;
8extern unsigned long __nongprelbss dma_coherent_mem_end;
9
Bart Van Assche52997092017-01-20 13:04:01 -080010extern const struct dma_map_ops frv_dma_ops;
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
Bart Van Assche815dd182017-01-20 13:04:04 -080012static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
Linus Torvalds1da177e2005-04-16 15:20:36 -070013{
Christoph Hellwigeae07512016-01-20 15:01:44 -080014 return &frv_dma_ops;
Linus Torvalds1da177e2005-04-16 15:20:36 -070015}
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017static inline
Ralf Baechled3fa72e2006-12-06 20:38:56 -080018void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 enum dma_data_direction direction)
20{
21 flush_write_buffers();
22}
23
Linus Torvalds1da177e2005-04-16 15:20:36 -070024#endif /* _ASM_DMA_MAPPING_H */