Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74416e1e authored by Alex Williamson's avatar Alex Williamson Committed by Joerg Roedel
Browse files

driver core: Add iommu_group tracking to struct device



IOMMU groups allow IOMMU drivers to represent DMA visibility
and isolation of devices.  Multiple devices may be grouped
together for the purposes of DMA.  Placing a pointer on
struct device enable easy access for things like streaming
DMA programming and drivers like VFIO.

Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 3ebb9566
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ struct subsys_private;
struct bus_type;
struct device_node;
struct iommu_ops;
struct iommu_group;

struct bus_attribute {
	struct attribute	attr;
@@ -687,6 +688,7 @@ struct device {
	const struct attribute_group **groups;	/* optional groups */

	void	(*release)(struct device *dev);
	struct iommu_group	*iommu_group;
};

/* Get the wakeup routines, which depend on struct device */