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>
This commit is contained in:
parent
5e62292bad
commit
6eab556a40
2 changed files with 17 additions and 0 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue