summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-05-28 18:41:35 +0200
committerJoerg Roedel <jroedel@suse.de>2015-06-09 08:55:24 +0200
commit6827ca83695d5e41ad31b0719788ee65f00ca4b3 (patch)
treeb0e50628d3130c15a507eb4a28ee4498164c6542 /drivers/iommu/iommu.c
parentbeed2821b4f42c268222c4c1f1795e53340acf64 (diff)
downloadtalos-obmc-linux-6827ca83695d5e41ad31b0719788ee65f00ca4b3.tar.gz
talos-obmc-linux-6827ca83695d5e41ad31b0719788ee65f00ca4b3.zip
iommu: Add function to query the default domain of a group
This will be used to handle unity mappings in the iommu drivers. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/iommu.c')
-rw-r--r--drivers/iommu/iommu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index ffad1eaf450d..224c6dd2d249 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -837,6 +837,11 @@ struct iommu_group *iommu_group_get_for_dev(struct device *dev)
return group;
}
+struct iommu_domain *iommu_group_default_domain(struct iommu_group *group)
+{
+ return group->default_domain;
+}
+
static int add_iommu_group(struct device *dev, void *data)
{
struct iommu_callback_data *cb = data;
OpenPOWER on IntegriCloud