Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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> | ||||
7 | static 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 */ |