diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/iommu.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 0f18f37a6503..6d0035bb1a0c 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h | |||
| @@ -60,6 +60,10 @@ extern int iommu_map_range(struct iommu_domain *domain, unsigned long iova, | |||
| 60 | phys_addr_t paddr, size_t size, int prot); | 60 | phys_addr_t paddr, size_t size, int prot); |
| 61 | extern void iommu_unmap_range(struct iommu_domain *domain, unsigned long iova, | 61 | extern void iommu_unmap_range(struct iommu_domain *domain, unsigned long iova, |
| 62 | size_t size); | 62 | size_t size); |
| 63 | extern int iommu_map(struct iommu_domain *domain, unsigned long iova, | ||
| 64 | phys_addr_t paddr, int gfp_order, int prot); | ||
| 65 | extern int iommu_unmap(struct iommu_domain *domain, unsigned long iova, | ||
| 66 | int gfp_order); | ||
| 63 | extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, | 67 | extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, |
| 64 | unsigned long iova); | 68 | unsigned long iova); |
| 65 | extern int iommu_domain_has_cap(struct iommu_domain *domain, | 69 | extern int iommu_domain_has_cap(struct iommu_domain *domain, |
| @@ -108,6 +112,18 @@ static inline void iommu_unmap_range(struct iommu_domain *domain, | |||
| 108 | { | 112 | { |
| 109 | } | 113 | } |
| 110 | 114 | ||
| 115 | static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, | ||
| 116 | phys_addr_t paddr, int gfp_order, int prot) | ||
| 117 | { | ||
| 118 | return -ENODEV; | ||
| 119 | } | ||
| 120 | |||
| 121 | static inline int iommu_unmap(struct iommu_domain *domain, unsigned long iova, | ||
| 122 | int gfp_order) | ||
| 123 | { | ||
| 124 | return -ENODEV; | ||
| 125 | } | ||
| 126 | |||
| 111 | static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, | 127 | static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, |
| 112 | unsigned long iova) | 128 | unsigned long iova) |
| 113 | { | 129 | { |
