diff options
| author | Joerg Roedel <joerg.roedel@amd.com> | 2012-01-09 07:06:28 -0500 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2012-01-09 07:06:28 -0500 |
| commit | f93ea733878733f3e98475bc3e2ccf789bebcfb8 (patch) | |
| tree | ce4981e49a75d5bac7f0d2fa4ddcdcc130cf56f0 /include/linux | |
| parent | 00fb5430f547e411ab03385cfa548776aaac1c92 (diff) | |
| parent | 95bdaf71ccf2cb4bba0c9a3d2baea0e7916f466b (diff) | |
Merge branches 'iommu/page-sizes' and 'iommu/group-id' into next
Conflicts:
drivers/iommu/amd_iommu.c
drivers/iommu/intel-iommu.c
include/linux/iommu.h
Diffstat (limited to 'include/linux')
| -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 cc26f89c4ee6..d937580417ba 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h | |||
| @@ -74,6 +74,7 @@ struct iommu_ops { | |||
| 74 | unsigned long iova); | 74 | unsigned long iova); |
| 75 | int (*domain_has_cap)(struct iommu_domain *domain, | 75 | int (*domain_has_cap)(struct iommu_domain *domain, |
| 76 | unsigned long cap); | 76 | unsigned long cap); |
| 77 | int (*device_group)(struct device *dev, unsigned int *groupid); | ||
| 77 | unsigned long pgsize_bitmap; | 78 | unsigned long pgsize_bitmap; |
| 78 | }; | 79 | }; |
| 79 | 80 | ||
| @@ -95,6 +96,7 @@ extern int iommu_domain_has_cap(struct iommu_domain *domain, | |||
| 95 | unsigned long cap); | 96 | unsigned long cap); |
| 96 | extern void iommu_set_fault_handler(struct iommu_domain *domain, | 97 | extern void iommu_set_fault_handler(struct iommu_domain *domain, |
| 97 | iommu_fault_handler_t handler); | 98 | iommu_fault_handler_t handler); |
| 99 | extern int iommu_device_group(struct device *dev, unsigned int *groupid); | ||
| 98 | 100 | ||
| 99 | /** | 101 | /** |
| 100 | * report_iommu_fault() - report about an IOMMU fault to the IOMMU framework | 102 | * report_iommu_fault() - report about an IOMMU fault to the IOMMU framework |
| @@ -193,6 +195,11 @@ static inline void iommu_set_fault_handler(struct iommu_domain *domain, | |||
| 193 | { | 195 | { |
| 194 | } | 196 | } |
| 195 | 197 | ||
| 198 | static inline int iommu_device_group(struct device *dev, unsigned int *groupid) | ||
| 199 | { | ||
| 200 | return -ENODEV; | ||
| 201 | } | ||
| 202 | |||
| 196 | #endif /* CONFIG_IOMMU_API */ | 203 | #endif /* CONFIG_IOMMU_API */ |
| 197 | 204 | ||
| 198 | #endif /* __LINUX_IOMMU_H */ | 205 | #endif /* __LINUX_IOMMU_H */ |
