summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2020-05-16 08:20:52 +0200
committerJoerg Roedel <jroedel@suse.de>2020-05-18 15:37:25 +0200
commite85bb99b79ca5ad2681612a7bb22f94cc2c71866 (patch)
tree3c8e251cb474108fb401a559d7e925b350b92ce3 /include
parentiommu/vt-d: Add custom allocator for IOASID (diff)
downloadlinux-e85bb99b79ca5ad2681612a7bb22f94cc2c71866.tar.xz
linux-e85bb99b79ca5ad2681612a7bb22f94cc2c71866.zip
iommu/vt-d: Add get_domain_info() helper
Add a get_domain_info() helper to retrieve the valid per-device iommu private data. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/20200516062101.29541-10-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/intel-iommu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
index e14124f74b3a..caa179e806fc 100644
--- a/include/linux/intel-iommu.h
+++ b/include/linux/intel-iommu.h
@@ -714,6 +714,7 @@ int for_each_device_domain(int (*fn)(struct device_domain_info *info,
void iommu_flush_write_buffer(struct intel_iommu *iommu);
int intel_iommu_enable_pasid(struct intel_iommu *iommu, struct device *dev);
struct dmar_domain *find_domain(struct device *dev);
+struct device_domain_info *get_domain_info(struct device *dev);
#ifdef CONFIG_INTEL_IOMMU_SVM
extern void intel_svm_check(struct intel_iommu *iommu);