blob: 8facc1c8fa054f4baea0a355d1ce05b16e2e3d02 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001// 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>
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 */