1 // SPDX-License-Identifier: GPL-2.0
3 * Dynamic DMA mapping support.
6 #include <linux/types.h>
8 #include <linux/string.h>
10 #include <linux/module.h>
11 #include <linux/dmar.h>
12 #include <asm/iommu.h>
13 #include <linux/dma-mapping.h>
14 #include <linux/kernel.h>
17 int no_iommu __read_mostly
;
18 #ifdef CONFIG_IOMMU_DEBUG
19 int force_iommu __read_mostly
= 1;
21 int force_iommu __read_mostly
;
24 static int __init
pci_iommu_init(void)
32 /* Must execute after PCI subsystem */
33 fs_initcall(pci_iommu_init
);