diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-05-03 23:32:06 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-05-03 23:32:05 -0700 |
| commit | 9d0c2b4690a9e2bf526cb91a3bd5ba8272d34f1d (patch) | |
| tree | cbec7323e1e2a8f92ef4d3433abf9a03cca43d84 /include/linux | |
| parent | 2f04bcd6dc05d4926b6ab270b407a50ac919da09 (diff) | |
| parent | 058ccb29334351370324ca45d753708718714827 (diff) | |
Merge "iommu/iommu-debug: Add validation support for per-buffer coherent mappings"
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iommu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 55ae8b928411..2767fcdec5a1 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -235,6 +235,8 @@ struct iommu_ops { void (*tlbi_domain)(struct iommu_domain *domain); int (*enable_config_clocks)(struct iommu_domain *domain); void (*disable_config_clocks)(struct iommu_domain *domain); + uint64_t (*iova_to_pte)(struct iommu_domain *domain, + dma_addr_t iova); #ifdef CONFIG_OF_IOMMU int (*of_xlate)(struct device *dev, struct of_phandle_args *args); @@ -334,6 +336,9 @@ extern int iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr, phys_addr_t offset, u64 size, int prot); extern void iommu_domain_window_disable(struct iommu_domain *domain, u32 wnd_nr); + +extern uint64_t iommu_iova_to_pte(struct iommu_domain *domain, + dma_addr_t iova); /** * report_iommu_fault() - report about an IOMMU fault to the IOMMU framework * @domain: the iommu domain where the fault has happened |
