21 lines
412 B
C
Raw Normal View History

2026-01-21 18:59:54 +08:00
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_DMA_MAPPING_H
#define _ASM_X86_DMA_MAPPING_H
extern const struct dma_map_ops *dma_ops;
2026-01-29 22:25:33 +08:00
static inline const struct dma_map_ops *get_arch_dma_ops(void)
2026-01-21 18:59:54 +08:00
{
return dma_ops;
}
2026-01-29 22:25:33 +08:00
#ifdef CONFIG_PCI
extern bool is_zhaoxin_kh40000;
extern const struct dma_map_ops kh40000_dma_direct_ops;
extern void kh40000_set_iommu_dma_ops(struct device *dev);
#endif
2026-01-21 18:59:54 +08:00
#endif