diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2012-05-30 16:18:41 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2012-06-25 07:47:20 -0400 |
commit | 74416e1e07660798379ce10a210bf4fd35b84f9f (patch) | |
tree | c95498bc5c4de2d246ddf0f0a453ca930364c8ba /include/linux/device.h | |
parent | 3ebb9566007083c6fd92674996d2a0be2ea79745 (diff) |
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: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 161d96241b1..d0e4d99405a 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -36,6 +36,7 @@ struct subsys_private; | |||
36 | struct bus_type; | 36 | struct bus_type; |
37 | struct device_node; | 37 | struct device_node; |
38 | struct iommu_ops; | 38 | struct iommu_ops; |
39 | struct iommu_group; | ||
39 | 40 | ||
40 | struct bus_attribute { | 41 | struct bus_attribute { |
41 | struct attribute attr; | 42 | struct attribute attr; |
@@ -687,6 +688,7 @@ struct device { | |||
687 | const struct attribute_group **groups; /* optional groups */ | 688 | const struct attribute_group **groups; /* optional groups */ |
688 | 689 | ||
689 | void (*release)(struct device *dev); | 690 | void (*release)(struct device *dev); |
691 | struct iommu_group *iommu_group; | ||
690 | }; | 692 | }; |
691 | 693 | ||
692 | /* Get the wakeup routines, which depend on struct device */ | 694 | /* Get the wakeup routines, which depend on struct device */ |