diff options
author | Magnus Damm <damm+renesas@opensource.se> | 2016-01-19 00:28:48 -0500 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-01-29 06:34:29 -0500 |
commit | 0d9bacb6c8265e7aa75ac28ae9b5d7748065942f (patch) | |
tree | a3c769d68ad59ef490ae20dab3a3745132c4b68d | |
parent | 6f3cdb380f429af47ad6635568c22ba28df83a48 (diff) |
iommu: Update struct iommu_ops comments
Update the comments around struct iommu_ops to match
current state and fix a few typos while at it.
Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r-- | include/linux/iommu.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index f28dff313b07..a5c539fa5d2b 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h | |||
@@ -133,8 +133,9 @@ struct iommu_dm_region { | |||
133 | 133 | ||
134 | /** | 134 | /** |
135 | * struct iommu_ops - iommu ops and capabilities | 135 | * struct iommu_ops - iommu ops and capabilities |
136 | * @domain_init: init iommu domain | 136 | * @capable: check capability |
137 | * @domain_destroy: destroy iommu domain | 137 | * @domain_alloc: allocate iommu domain |
138 | * @domain_free: free iommu domain | ||
138 | * @attach_dev: attach device to an iommu domain | 139 | * @attach_dev: attach device to an iommu domain |
139 | * @detach_dev: detach device from an iommu domain | 140 | * @detach_dev: detach device from an iommu domain |
140 | * @map: map a physically contiguous memory region to an iommu domain | 141 | * @map: map a physically contiguous memory region to an iommu domain |
@@ -144,8 +145,15 @@ struct iommu_dm_region { | |||
144 | * @iova_to_phys: translate iova to physical address | 145 | * @iova_to_phys: translate iova to physical address |
145 | * @add_device: add device to iommu grouping | 146 | * @add_device: add device to iommu grouping |
146 | * @remove_device: remove device from iommu grouping | 147 | * @remove_device: remove device from iommu grouping |
148 | * @device_group: find iommu group for a particular device | ||
147 | * @domain_get_attr: Query domain attributes | 149 | * @domain_get_attr: Query domain attributes |
148 | * @domain_set_attr: Change domain attributes | 150 | * @domain_set_attr: Change domain attributes |
151 | * @get_dm_regions: Request list of direct mapping requirements for a device | ||
152 | * @put_dm_regions: Free list of direct mapping requirements for a device | ||
153 | * @domain_window_enable: Configure and enable a particular window for a domain | ||
154 | * @domain_window_disable: Disable a particular window for a domain | ||
155 | * @domain_set_windows: Set the number of windows for a domain | ||
156 | * @domain_get_windows: Return the number of windows for a domain | ||
149 | * @of_xlate: add OF master IDs to iommu grouping | 157 | * @of_xlate: add OF master IDs to iommu grouping |
150 | * @pgsize_bitmap: bitmap of supported page sizes | 158 | * @pgsize_bitmap: bitmap of supported page sizes |
151 | * @priv: per-instance data private to the iommu driver | 159 | * @priv: per-instance data private to the iommu driver |
@@ -182,9 +190,9 @@ struct iommu_ops { | |||
182 | int (*domain_window_enable)(struct iommu_domain *domain, u32 wnd_nr, | 190 | int (*domain_window_enable)(struct iommu_domain *domain, u32 wnd_nr, |
183 | phys_addr_t paddr, u64 size, int prot); | 191 | phys_addr_t paddr, u64 size, int prot); |
184 | void (*domain_window_disable)(struct iommu_domain *domain, u32 wnd_nr); | 192 | void (*domain_window_disable)(struct iommu_domain *domain, u32 wnd_nr); |
185 | /* Set the numer of window per domain */ | 193 | /* Set the number of windows per domain */ |
186 | int (*domain_set_windows)(struct iommu_domain *domain, u32 w_count); | 194 | int (*domain_set_windows)(struct iommu_domain *domain, u32 w_count); |
187 | /* Get the numer of window per domain */ | 195 | /* Get the number of windows per domain */ |
188 | u32 (*domain_get_windows)(struct iommu_domain *domain); | 196 | u32 (*domain_get_windows)(struct iommu_domain *domain); |
189 | 197 | ||
190 | #ifdef CONFIG_OF_IOMMU | 198 | #ifdef CONFIG_OF_IOMMU |