diff options
Diffstat (limited to 'arch/arm/plat-omap/include/plat/iovmm.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/iovmm.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/arch/arm/plat-omap/include/plat/iovmm.h b/arch/arm/plat-omap/include/plat/iovmm.h index e992b9655fbc..e2f0b38a0265 100644 --- a/arch/arm/plat-omap/include/plat/iovmm.h +++ b/arch/arm/plat-omap/include/plat/iovmm.h | |||
@@ -13,6 +13,8 @@ | |||
13 | #ifndef __IOMMU_MMAP_H | 13 | #ifndef __IOMMU_MMAP_H |
14 | #define __IOMMU_MMAP_H | 14 | #define __IOMMU_MMAP_H |
15 | 15 | ||
16 | #include <linux/iommu.h> | ||
17 | |||
16 | struct iovm_struct { | 18 | struct iovm_struct { |
17 | struct iommu *iommu; /* iommu object which this belongs to */ | 19 | struct iommu *iommu; /* iommu object which this belongs to */ |
18 | u32 da_start; /* area definition */ | 20 | u32 da_start; /* area definition */ |
@@ -71,18 +73,21 @@ struct iovm_struct { | |||
71 | 73 | ||
72 | 74 | ||
73 | extern struct iovm_struct *find_iovm_area(struct iommu *obj, u32 da); | 75 | extern struct iovm_struct *find_iovm_area(struct iommu *obj, u32 da); |
74 | extern u32 iommu_vmap(struct iommu *obj, u32 da, | 76 | extern u32 iommu_vmap(struct iommu_domain *domain, struct iommu *obj, u32 da, |
75 | const struct sg_table *sgt, u32 flags); | 77 | const struct sg_table *sgt, u32 flags); |
76 | extern struct sg_table *iommu_vunmap(struct iommu *obj, u32 da); | 78 | extern struct sg_table *iommu_vunmap(struct iommu_domain *domain, |
77 | extern u32 iommu_vmalloc(struct iommu *obj, u32 da, size_t bytes, | 79 | struct iommu *obj, u32 da); |
78 | u32 flags); | 80 | extern u32 iommu_vmalloc(struct iommu_domain *domain, struct iommu *obj, |
79 | extern void iommu_vfree(struct iommu *obj, const u32 da); | 81 | u32 da, size_t bytes, u32 flags); |
80 | extern u32 iommu_kmap(struct iommu *obj, u32 da, u32 pa, size_t bytes, | 82 | extern void iommu_vfree(struct iommu_domain *domain, struct iommu *obj, |
81 | u32 flags); | 83 | const u32 da); |
82 | extern void iommu_kunmap(struct iommu *obj, u32 da); | 84 | extern u32 iommu_kmap(struct iommu_domain *domain, struct iommu *obj, u32 da, |
83 | extern u32 iommu_kmalloc(struct iommu *obj, u32 da, size_t bytes, | 85 | u32 pa, size_t bytes, u32 flags); |
84 | u32 flags); | 86 | extern void iommu_kunmap(struct iommu_domain *domain, struct iommu *obj, |
85 | extern void iommu_kfree(struct iommu *obj, u32 da); | 87 | u32 da); |
88 | extern u32 iommu_kmalloc(struct iommu_domain *domain, struct iommu *obj, | ||
89 | u32 da, size_t bytes, u32 flags); | ||
90 | extern void iommu_kfree(struct iommu_domain *domain, struct iommu *obj, u32 da); | ||
86 | 91 | ||
87 | extern void *da_to_va(struct iommu *obj, u32 da); | 92 | extern void *da_to_va(struct iommu *obj, u32 da); |
88 | 93 | ||