aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/iommu.h
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2016-04-05 12:39:30 +0100
committerJoerg Roedel <jroedel@suse.de>2016-04-07 15:07:50 +0200
commit31e6850e0fdb3a586363cc4d2f9801cdf9374310 (patch)
tree42faaae6ea7e0aaff5b4677bb893b63f1acc344e /include/linux/iommu.h
parentiommu/mediatek: Add 4GB mode support (diff)
downloadwireguard-linux-31e6850e0fdb3a586363cc4d2f9801cdf9374310.tar.xz
wireguard-linux-31e6850e0fdb3a586363cc4d2f9801cdf9374310.zip
iommu: Add MMIO mapping type
On some platforms, MMIO regions might need slightly different treatment compared to mapping regular memory; add the notion of MMIO mappings to the IOMMU API's memory type flags, so that callers can let the IOMMU drivers know to do the right thing. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r--include/linux/iommu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index a5c539fa5d2b..34b643227df1 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -30,6 +30,7 @@
#define IOMMU_WRITE (1 << 1)
#define IOMMU_CACHE (1 << 2) /* DMA cache coherency */
#define IOMMU_NOEXEC (1 << 3)
+#define IOMMU_MMIO (1 << 4) /* e.g. things like MSI doorbells */
struct iommu_ops;
struct iommu_group;