diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iommu.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 5a7a3d888dac..be22ad83689c 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h | |||
| @@ -40,10 +40,6 @@ struct iommu_ops { | |||
| 40 | phys_addr_t paddr, int gfp_order, int prot); | 40 | phys_addr_t paddr, int gfp_order, int prot); |
| 41 | int (*unmap)(struct iommu_domain *domain, unsigned long iova, | 41 | int (*unmap)(struct iommu_domain *domain, unsigned long iova, |
| 42 | int gfp_order); | 42 | int gfp_order); |
| 43 | int (*map_range)(struct iommu_domain *domain, unsigned long iova, | ||
| 44 | phys_addr_t paddr, size_t size, int prot); | ||
| 45 | void (*unmap_range)(struct iommu_domain *domain, unsigned long iova, | ||
| 46 | size_t size); | ||
| 47 | phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, | 43 | phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, |
| 48 | unsigned long iova); | 44 | unsigned long iova); |
| 49 | int (*domain_has_cap)(struct iommu_domain *domain, | 45 | int (*domain_has_cap)(struct iommu_domain *domain, |
| @@ -60,10 +56,6 @@ extern int iommu_attach_device(struct iommu_domain *domain, | |||
| 60 | struct device *dev); | 56 | struct device *dev); |
| 61 | extern void iommu_detach_device(struct iommu_domain *domain, | 57 | extern void iommu_detach_device(struct iommu_domain *domain, |
| 62 | struct device *dev); | 58 | struct device *dev); |
| 63 | extern int iommu_map_range(struct iommu_domain *domain, unsigned long iova, | ||
| 64 | phys_addr_t paddr, size_t size, int prot); | ||
| 65 | extern void iommu_unmap_range(struct iommu_domain *domain, unsigned long iova, | ||
| 66 | size_t size); | ||
| 67 | extern int iommu_map(struct iommu_domain *domain, unsigned long iova, | 59 | extern int iommu_map(struct iommu_domain *domain, unsigned long iova, |
| 68 | phys_addr_t paddr, int gfp_order, int prot); | 60 | phys_addr_t paddr, int gfp_order, int prot); |
| 69 | extern int iommu_unmap(struct iommu_domain *domain, unsigned long iova, | 61 | extern int iommu_unmap(struct iommu_domain *domain, unsigned long iova, |
| @@ -104,18 +96,6 @@ static inline void iommu_detach_device(struct iommu_domain *domain, | |||
| 104 | { | 96 | { |
| 105 | } | 97 | } |
| 106 | 98 | ||
| 107 | static inline int iommu_map_range(struct iommu_domain *domain, | ||
| 108 | unsigned long iova, phys_addr_t paddr, | ||
| 109 | size_t size, int prot) | ||
| 110 | { | ||
| 111 | return -ENODEV; | ||
| 112 | } | ||
| 113 | |||
| 114 | static inline void iommu_unmap_range(struct iommu_domain *domain, | ||
| 115 | unsigned long iova, size_t size) | ||
| 116 | { | ||
| 117 | } | ||
| 118 | |||
| 119 | static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, | 99 | static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, |
| 120 | phys_addr_t paddr, int gfp_order, int prot) | 100 | phys_addr_t paddr, int gfp_order, int prot) |
| 121 | { | 101 | { |
