aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iommu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r--include/linux/iommu.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 2e4de0deee53..88ec8c6580d3 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -32,10 +32,13 @@
32#define IOMMU_NOEXEC (1 << 3) 32#define IOMMU_NOEXEC (1 << 3)
33#define IOMMU_MMIO (1 << 4) /* e.g. things like MSI doorbells */ 33#define IOMMU_MMIO (1 << 4) /* e.g. things like MSI doorbells */
34/* 34/*
35 * This is to make the IOMMU API setup privileged 35 * Where the bus hardware includes a privilege level as part of its access type
36 * mapppings accessible by the master only at higher 36 * markings, and certain devices are capable of issuing transactions marked as
37 * privileged execution level and inaccessible at 37 * either 'supervisor' or 'user', the IOMMU_PRIV flag requests that the other
38 * less privileged levels. 38 * given permission flags only apply to accesses at the higher privilege level,
39 * and that unprivileged transactions should have as little access as possible.
40 * This would usually imply the same permissions as kernel mappings on the CPU,
41 * if the IOMMU page table format is equivalent.
39 */ 42 */
40#define IOMMU_PRIV (1 << 5) 43#define IOMMU_PRIV (1 << 5)
41 44