xref: /OK3568_Linux_fs/kernel/arch/x86/include/asm/dma-mapping.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _ASM_X86_DMA_MAPPING_H
3*4882a593Smuzhiyun #define _ASM_X86_DMA_MAPPING_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun /*
6*4882a593Smuzhiyun  * IOMMU interface. See Documentation/core-api/dma-api-howto.rst and
7*4882a593Smuzhiyun  * Documentation/core-api/dma-api.rst for documentation.
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #include <linux/scatterlist.h>
11*4882a593Smuzhiyun #include <asm/io.h>
12*4882a593Smuzhiyun #include <asm/swiotlb.h>
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun extern int iommu_merge;
15*4882a593Smuzhiyun extern int panic_on_overflow;
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun extern const struct dma_map_ops *dma_ops;
18*4882a593Smuzhiyun 
get_arch_dma_ops(struct bus_type * bus)19*4882a593Smuzhiyun static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
20*4882a593Smuzhiyun {
21*4882a593Smuzhiyun 	return dma_ops;
22*4882a593Smuzhiyun }
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #endif
25