iommu: Add DOMAIN_ATTR_PT_BASE_ADDR domain attribute
This attribute can be used to get the base address of the page tables
for the given domain. This can be useful for some drivers that switch
page tables around out-of-band (for example, per-process page tables
managed by the GPU).
Change-Id: I7c67c4c6435e5aadba129a53be532c2396dccf9c
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 2178616..9f39356 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -118,6 +118,7 @@
DOMAIN_ATTR_FSL_PAMU_ENABLE,
DOMAIN_ATTR_FSL_PAMUV1,
DOMAIN_ATTR_NESTING, /* two stages of translation */
+ DOMAIN_ATTR_PT_BASE_ADDR,
DOMAIN_ATTR_MAX,
};