summaryrefslogtreecommitdiffstats
path: root/include/linux/iommu.h
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-10-21 23:51:37 +0200
committerJoerg Roedel <jroedel@suse.de>2015-10-22 00:00:49 +0200
commit5e62292bad10cff25ff75d136c54e62b43bfb0fa (patch)
tree62104f98ae9bf9c29f4f3a2a92f808b75e88fbc4 /include/linux/iommu.h
parent46c6b2bc88a729366605d0dedb6a35b8cf7cc4f0 (diff)
downloadblackbird-op-linux-5e62292bad10cff25ff75d136c54e62b43bfb0fa.tar.gz
blackbird-op-linux-5e62292bad10cff25ff75d136c54e62b43bfb0fa.zip
iommu: Export and rename iommu_group_get_for_pci_dev()
Rename that function to pci_device_group() and export it, so that IOMMU drivers can use it as their device_group call-back. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r--include/linux/iommu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index a1e6e8914c17..a1a06639a64a 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -317,6 +317,9 @@ static inline size_t iommu_map_sg(struct iommu_domain *domain,
return domain->ops->map_sg(domain, iova, sg, nents, prot);
}
+/* PCI device grouping function */
+extern struct iommu_group *pci_device_group(struct device *dev);
+
#else /* CONFIG_IOMMU_API */
struct iommu_ops {};
OpenPOWER on IntegriCloud