aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iommu.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-01-21 05:50:28 -0500
committerJoerg Roedel <joerg.roedel@amd.com>2010-03-07 12:01:13 -0500
commit12c7389abe5786349d3ea6da1961cf78d0c1c7cd (patch)
tree02ba72cf32986de8327a6146d5fd0b2448935958 /include/linux/iommu.h
parent468e2366cdb80cf8a691b8bc212260cfbdbd518e (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.h20
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);
61extern void iommu_detach_device(struct iommu_domain *domain, 57extern void iommu_detach_device(struct iommu_domain *domain,
62 struct device *dev); 58 struct device *dev);
63extern int iommu_map_range(struct iommu_domain *domain, unsigned long iova,
64 phys_addr_t paddr, size_t size, int prot);
65extern void iommu_unmap_range(struct iommu_domain *domain, unsigned long iova,
66 size_t size);
67extern int iommu_map(struct iommu_domain *domain, unsigned long iova, 59extern 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);
69extern int iommu_unmap(struct iommu_domain *domain, unsigned long iova, 61extern 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
107static 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
114static inline void iommu_unmap_range(struct iommu_domain *domain,
115 unsigned long iova, size_t size)
116{
117}
118
119static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, 99static 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{