diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-01-09 23:59:46 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-09 23:59:45 -0800 |
| commit | 875855417edbff79a4a6ab3917387d770059a8bc (patch) | |
| tree | 4dd5ef4db289cf6df9d744d3d2ddd84e446b6a1f /include/linux | |
| parent | 09d27a060b31df6cf116a5f786126bf3d8e00860 (diff) | |
| parent | 90d80a06deede1b9d3e857bd26c15d2bc05850ca (diff) | |
Merge "iommu: support querying IOVA coherency"
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iommu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index d33e10784b23..d7db6b2eeb52 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -237,6 +237,7 @@ struct iommu_ops { #endif unsigned long (*get_pgsize_bitmap)(struct iommu_domain *domain); + bool (*is_iova_coherent)(struct iommu_domain *domain, dma_addr_t iova); unsigned long pgsize_bitmap; void *priv; }; @@ -273,6 +274,8 @@ extern size_t default_iommu_map_sg(struct iommu_domain *domain, unsigned long io extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova); extern phys_addr_t iommu_iova_to_phys_hard(struct iommu_domain *domain, dma_addr_t iova); +extern bool iommu_is_iova_coherent(struct iommu_domain *domain, + dma_addr_t iova); extern void iommu_set_fault_handler(struct iommu_domain *domain, iommu_fault_handler_t handler, void *token); extern void iommu_trigger_fault(struct iommu_domain *domain, @@ -505,6 +508,12 @@ static inline phys_addr_t iommu_iova_to_phys_hard(struct iommu_domain *domain, return 0; } +static inline bool iommu_is_iova_coherent(struct iommu_domain *domain, + dma_addr_t iova) +{ + return 0; +} + static inline void iommu_set_fault_handler(struct iommu_domain *domain, iommu_fault_handler_t handler, void *token) { |
