1 // SPDX-License-Identifier: GPL-2.0 2 #ifndef _RISCV_ASM_DMA_MAPPING_H 3 #define _RISCV_ASM_DMA_MAPPING_H 1 4 5 #ifdef CONFIG_SWIOTLB 6 #include <linux/swiotlb.h> get_arch_dma_ops(struct bus_type * bus)7static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) 8 { 9 return &swiotlb_dma_ops; 10 } 11 #else 12 #include <asm-generic/dma-mapping.h> 13 #endif /* CONFIG_SWIOTLB */ 14 15 #endif /* _RISCV_ASM_DMA_MAPPING_H */ 16