summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-10-21 23:51:37 +0200
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:15:29 -0700
commitc77e52265097c9b699da51ebc138489dc43c76f2 (patch)
treee2201ee13d06bccc94591ae54eedf9de5fb95835 /include/linux
parent4e226b0bdfacbf81f296132866b195e8c118019e (diff)
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. Change-Id: Ic54268d9854dd2eeba53ca9f9635d0287bfc7f0f Signed-off-by: Joerg Roedel <jroedel@suse.de> [pdaly@codeaurora.org Resolve minor conflicts]
Diffstat (limited to 'include/linux')
-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 e63a818925d1..88f91968710c 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -370,6 +370,9 @@ static inline size_t iommu_map_sg(struct iommu_domain *domain,
extern int iommu_dma_supported(struct iommu_domain *domain, struct device *dev,
u64 mask);
+/* PCI device grouping function */
+extern struct iommu_group *pci_device_group(struct device *dev);
+
#else /* CONFIG_IOMMU_API */
struct iommu_ops {};