blob: fd80e840a1e66b153644dd0e22d7bd55d59075c0 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _ASM_DMA_MAPPING_H
3#define _ASM_DMA_MAPPING_H
4
Linus Torvalds1da177e2005-04-16 15:20:36 -07005#include <asm/cache.h>
6#include <asm/cacheflush.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
8extern unsigned long __nongprelbss dma_coherent_mem_start;
9extern unsigned long __nongprelbss dma_coherent_mem_end;
10
Bart Van Assche52997092017-01-20 13:04:01 -080011extern const struct dma_map_ops frv_dma_ops;
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
Bart Van Assche815dd182017-01-20 13:04:04 -080013static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
Linus Torvalds1da177e2005-04-16 15:20:36 -070014{
Christoph Hellwigeae07512016-01-20 15:01:44 -080015 return &frv_dma_ops;
Linus Torvalds1da177e2005-04-16 15:20:36 -070016}
17
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#endif /* _ASM_DMA_MAPPING_H */