diff options
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r-- | include/linux/iommu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 432acc4c054d..93617e7779a1 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h | |||
@@ -61,6 +61,7 @@ struct iommu_ops { | |||
61 | unsigned long iova); | 61 | unsigned long iova); |
62 | int (*domain_has_cap)(struct iommu_domain *domain, | 62 | int (*domain_has_cap)(struct iommu_domain *domain, |
63 | unsigned long cap); | 63 | unsigned long cap); |
64 | int (*device_group)(struct device *dev, unsigned int *groupid); | ||
64 | }; | 65 | }; |
65 | 66 | ||
66 | extern int bus_set_iommu(struct bus_type *bus, struct iommu_ops *ops); | 67 | extern int bus_set_iommu(struct bus_type *bus, struct iommu_ops *ops); |
@@ -81,6 +82,7 @@ extern int iommu_domain_has_cap(struct iommu_domain *domain, | |||
81 | unsigned long cap); | 82 | unsigned long cap); |
82 | extern void iommu_set_fault_handler(struct iommu_domain *domain, | 83 | extern void iommu_set_fault_handler(struct iommu_domain *domain, |
83 | iommu_fault_handler_t handler); | 84 | iommu_fault_handler_t handler); |
85 | extern int iommu_device_group(struct device *dev, unsigned int *groupid); | ||
84 | 86 | ||
85 | /** | 87 | /** |
86 | * report_iommu_fault() - report about an IOMMU fault to the IOMMU framework | 88 | * report_iommu_fault() - report about an IOMMU fault to the IOMMU framework |
@@ -179,6 +181,11 @@ static inline void iommu_set_fault_handler(struct iommu_domain *domain, | |||
179 | { | 181 | { |
180 | } | 182 | } |
181 | 183 | ||
184 | static inline int iommu_device_group(struct device *dev, unsigned int *groupid); | ||
185 | { | ||
186 | return -ENODEV; | ||
187 | } | ||
188 | |||
182 | #endif /* CONFIG_IOMMU_API */ | 189 | #endif /* CONFIG_IOMMU_API */ |
183 | 190 | ||
184 | #endif /* __LINUX_IOMMU_H */ | 191 | #endif /* __LINUX_IOMMU_H */ |