diff options
| -rw-r--r-- | include/linux/iommu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 7b83f9f8e11d..415c7613d02c 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h | |||
| @@ -21,6 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | #include <linux/errno.h> | 22 | #include <linux/errno.h> |
| 23 | #include <linux/err.h> | 23 | #include <linux/err.h> |
| 24 | #include <linux/of.h> | ||
| 24 | #include <linux/types.h> | 25 | #include <linux/types.h> |
| 25 | #include <trace/events/iommu.h> | 26 | #include <trace/events/iommu.h> |
| 26 | 27 | ||
| @@ -102,6 +103,7 @@ enum iommu_attr { | |||
| 102 | * @remove_device: remove device from iommu grouping | 103 | * @remove_device: remove device from iommu grouping |
| 103 | * @domain_get_attr: Query domain attributes | 104 | * @domain_get_attr: Query domain attributes |
| 104 | * @domain_set_attr: Change domain attributes | 105 | * @domain_set_attr: Change domain attributes |
| 106 | * @of_xlate: add OF master IDs to iommu grouping | ||
| 105 | * @pgsize_bitmap: bitmap of supported page sizes | 107 | * @pgsize_bitmap: bitmap of supported page sizes |
| 106 | * @priv: per-instance data private to the iommu driver | 108 | * @priv: per-instance data private to the iommu driver |
| 107 | */ | 109 | */ |
| @@ -133,6 +135,10 @@ struct iommu_ops { | |||
| 133 | /* Get the numer of window per domain */ | 135 | /* Get the numer of window per domain */ |
| 134 | u32 (*domain_get_windows)(struct iommu_domain *domain); | 136 | u32 (*domain_get_windows)(struct iommu_domain *domain); |
| 135 | 137 | ||
| 138 | #ifdef CONFIG_OF_IOMMU | ||
| 139 | int (*of_xlate)(struct device *dev, struct of_phandle_args *args); | ||
| 140 | #endif | ||
| 141 | |||
| 136 | unsigned long pgsize_bitmap; | 142 | unsigned long pgsize_bitmap; |
| 137 | void *priv; | 143 | void *priv; |
| 138 | }; | 144 | }; |
