From f51eb4d161fc3aa92ecb1c42339889e9f38ed805 Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Wed, 21 Oct 2015 23:51:38 +0200 Subject: 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 --- include/linux/iommu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') 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 */ -- cgit v1.2.3