summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-10-21 23:51:38 +0200
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:15:29 -0700
commitf51eb4d161fc3aa92ecb1c42339889e9f38ed805 (patch)
treebdabb38550b3af3883a072d148953451816332b3 /include/linux
parentc77e52265097c9b699da51ebc138489dc43c76f2 (diff)
iommu: Add generic_device_group() function
This function can be used as a device_group call-back and just allocates one iommu-group per device. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/iommu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 88f91968710c..deb60648587f 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -372,6 +372,8 @@ extern int iommu_dma_supported(struct iommu_domain *domain, struct device *dev,
/* PCI device grouping function */
extern struct iommu_group *pci_device_group(struct device *dev);
+/* Generic device grouping function */
+extern struct iommu_group *generic_device_group(struct device *dev);
#else /* CONFIG_IOMMU_API */