xref: /OK3568_Linux_fs/kernel/arch/mips/include/asm/dma-mapping.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _ASM_DMA_MAPPING_H
3*4882a593Smuzhiyun #define _ASM_DMA_MAPPING_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <linux/swiotlb.h>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun extern const struct dma_map_ops jazz_dma_ops;
8*4882a593Smuzhiyun 
get_arch_dma_ops(struct bus_type * bus)9*4882a593Smuzhiyun static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
10*4882a593Smuzhiyun {
11*4882a593Smuzhiyun #if defined(CONFIG_MACH_JAZZ)
12*4882a593Smuzhiyun 	return &jazz_dma_ops;
13*4882a593Smuzhiyun #else
14*4882a593Smuzhiyun 	return NULL;
15*4882a593Smuzhiyun #endif
16*4882a593Smuzhiyun }
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #endif /* _ASM_DMA_MAPPING_H */
19