diff options
author | Joerg Roedel <jroedel@suse.de> | 2015-10-21 23:51:38 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-10-22 00:00:49 +0200 |
commit | 6eab556a40384de94c2d03c8d9d632e5154367f5 (patch) | |
tree | c1a50c01363688c5b974317e34f0f90baee7889d /include/linux/iommu.h | |
parent | 5e62292bad10cff25ff75d136c54e62b43bfb0fa (diff) | |
download | talos-op-linux-6eab556a40384de94c2d03c8d9d632e5154367f5.tar.gz talos-op-linux-6eab556a40384de94c2d03c8d9d632e5154367f5.zip |
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/iommu.h')
-rw-r--r-- | include/linux/iommu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index a1a06639a64a..f28dff313b07 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -319,6 +319,8 @@ static inline size_t iommu_map_sg(struct iommu_domain *domain, /* 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 */ |