Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1965aae3 PA |
2 | #ifndef _ASM_X86_DMA_MAPPING_H |
3 | #define _ASM_X86_DMA_MAPPING_H | |
6f536635 GC |
4 | |
5 | /* | |
985098a0 MCC |
6 | * IOMMU interface. See Documentation/core-api/dma-api-howto.rst and |
7 | * Documentation/core-api/dma-api.rst for documentation. | |
6f536635 GC |
8 | */ |
9 | ||
10 | #include <linux/scatterlist.h> | |
2118d0c5 | 11 | #include <linux/dma-debug.h> |
6f536635 GC |
12 | #include <asm/io.h> |
13 | #include <asm/swiotlb.h> | |
14 | ||
b7107a3d | 15 | extern int iommu_merge; |
b7107a3d | 16 | extern int panic_on_overflow; |
7c183416 | 17 | |
5299709d | 18 | extern const struct dma_map_ops *dma_ops; |
160c1d8e | 19 | |
815dd187 | 20 | static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) |
c786df08 | 21 | { |
8d8bb39b | 22 | return dma_ops; |
8d8bb39b FT |
23 | } |
24 | ||
6f536635 | 25 | #endif |