summaryrefslogtreecommitdiffstats
path: root/include/linux/iommu.h
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2014-07-03 09:51:18 -0600
committerJoerg Roedel <jroedel@suse.de>2014-07-04 12:35:58 +0200
commit104a1c13ac66e40cf8c6ae74d76ff14ff24b9b01 (patch)
treee54d1840d8b0a7b2896a1678c277048fb1bf337e /include/linux/iommu.h
parent4c834452aad01531db949414f94f817a86348d59 (diff)
downloadop-kernel-dev-104a1c13ac66e40cf8c6ae74d76ff14ff24b9b01.zip
op-kernel-dev-104a1c13ac66e40cf8c6ae74d76ff14ff24b9b01.tar.gz
iommu/core: Create central IOMMU group lookup/creation interface
Currently each IOMMU driver that supports IOMMU groups has its own code for discovering the base device used in grouping. This code is generally not specific to the IOMMU hardware, but to the bus of the devices managed by the IOMMU. We can therefore create a common interface for supporting devices on different buses. Signed-off-by: Alex Williamson <alex.williamson@redhat.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 b96a5b2..a2e5843 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -181,6 +181,7 @@ extern int iommu_group_register_notifier(struct iommu_group *group,
extern int iommu_group_unregister_notifier(struct iommu_group *group,
struct notifier_block *nb);
extern int iommu_group_id(struct iommu_group *group);
+extern struct iommu_group *iommu_group_get_for_dev(struct device *dev);
extern int iommu_domain_get_attr(struct iommu_domain *domain, enum iommu_attr,
void *data);
OpenPOWER on IntegriCloud