aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iommu.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-23 03:04:05 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-23 03:04:05 -0500
commit92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch)
tree15626ff9287e37c3cb81c7286d6db5a7fd77c854 /include/linux/iommu.h
parent15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff)
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff)
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2 Backmerge to get at commit 1b0e3a049efe471c399674fd954500ce97438d30 Author: Imre Deak <imre.deak@intel.com> Date: Thu Nov 5 23:04:11 2015 +0200 drm/i915/skl: disable display side power well support for now so that we can proplery re-eanble skl power wells in -next. Conflicts are just adjacent lines changed, except for intel_fbdev.c where we need to interleave the changs. Nothing nefarious. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r--include/linux/iommu.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index f9c1b6d0f2e4..f28dff313b07 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -81,6 +81,7 @@ struct iommu_domain {
81 iommu_fault_handler_t handler; 81 iommu_fault_handler_t handler;
82 void *handler_token; 82 void *handler_token;
83 struct iommu_domain_geometry geometry; 83 struct iommu_domain_geometry geometry;
84 void *iova_cookie;
84}; 85};
85 86
86enum iommu_cap { 87enum iommu_cap {
@@ -167,7 +168,7 @@ struct iommu_ops {
167 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova); 168 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova);
168 int (*add_device)(struct device *dev); 169 int (*add_device)(struct device *dev);
169 void (*remove_device)(struct device *dev); 170 void (*remove_device)(struct device *dev);
170 int (*device_group)(struct device *dev, unsigned int *groupid); 171 struct iommu_group *(*device_group)(struct device *dev);
171 int (*domain_get_attr)(struct iommu_domain *domain, 172 int (*domain_get_attr)(struct iommu_domain *domain,
172 enum iommu_attr attr, void *data); 173 enum iommu_attr attr, void *data);
173 int (*domain_set_attr)(struct iommu_domain *domain, 174 int (*domain_set_attr)(struct iommu_domain *domain,
@@ -316,6 +317,11 @@ static inline size_t iommu_map_sg(struct iommu_domain *domain,
316 return domain->ops->map_sg(domain, iova, sg, nents, prot); 317 return domain->ops->map_sg(domain, iova, sg, nents, prot);
317} 318}
318 319
320/* PCI device grouping function */
321extern struct iommu_group *pci_device_group(struct device *dev);
322/* Generic device grouping function */
323extern struct iommu_group *generic_device_group(struct device *dev);
324
319#else /* CONFIG_IOMMU_API */ 325#else /* CONFIG_IOMMU_API */
320 326
321struct iommu_ops {}; 327struct iommu_ops {};