diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-01-21 05:50:28 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2010-03-07 12:01:13 -0500 |
commit | 12c7389abe5786349d3ea6da1961cf78d0c1c7cd (patch) | |
tree | 02ba72cf32986de8327a6146d5fd0b2448935958 /include/linux/iommu.h | |
parent | 468e2366cdb80cf8a691b8bc212260cfbdbd518e (diff) |
iommu-api: Remove iommu_{un}map_range functions
These functions are not longer used and can be removed
savely. There functionality is now provided by the
iommu_{un}map functions which are also capable of multiple
page sizes.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include/linux/iommu.h')
-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 | { |