/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_IOMMU_H #define _ASM_X86_IOMMU_H #include <linux/acpi.h> #include <asm/e820/api.h> extern int force_iommu, no_iommu; extern int iommu_detected; extern int iommu_merge; extern int panic_on_overflow; extern bool amd_iommu_snp_en; #ifdef CONFIG_SWIOTLB extern bool x86_swiotlb_enable; #else #define x86_swiotlb_enable … #endif /* 10 seconds */ #define DMAR_OPERATION_TIMEOUT … static inline int __init arch_rmrr_sanity_check(struct acpi_dmar_reserved_memory *rmrr) { … } #endif /* _ASM_X86_IOMMU_H */