mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 15:56:45 +07:00
16 lines
373 B
C
16 lines
373 B
C
|
// SPDX-License-Identifier: GPL-2.0
|
||
|
#ifndef _RISCV_ASM_DMA_MAPPING_H
|
||
|
#define _RISCV_ASM_DMA_MAPPING_H 1
|
||
|
|
||
|
#ifdef CONFIG_SWIOTLB
|
||
|
#include <linux/swiotlb.h>
|
||
|
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
|
||
|
{
|
||
|
return &swiotlb_dma_ops;
|
||
|
}
|
||
|
#else
|
||
|
#include <asm-generic/dma-mapping.h>
|
||
|
#endif /* CONFIG_SWIOTLB */
|
||
|
|
||
|
#endif /* _RISCV_ASM_DMA_MAPPING_H */
|