aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/iovmm.h
diff options
context:
space:
mode:
authorOhad Ben-Cohen <ohad@wizery.com>2011-08-17 15:57:56 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2011-08-26 05:46:01 -0400
commit6c32df437c7c5b1fc29d3ca29b0ff44f8dfafc56 (patch)
tree939d751cbae86291f6b5152cee4615284165fece /arch/arm/plat-omap/include/plat/iovmm.h
parent384fa675795ae3796dbc263e5d0f35b9a27d6462 (diff)
omap: iommu: omapify 'struct iommu' and exposed API
Prepend 'omap_' to OMAP's 'struct iommu' and exposed API, to prevent namespace pollution and generally to improve readability of the code that still uses the driver directly. Update the users as needed as well. Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/iovmm.h')
-rw-r--r--arch/arm/plat-omap/include/plat/iovmm.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/arch/arm/plat-omap/include/plat/iovmm.h b/arch/arm/plat-omap/include/plat/iovmm.h
index fc9aa6fe590f..6af1a91c0f36 100644
--- a/arch/arm/plat-omap/include/plat/iovmm.h
+++ b/arch/arm/plat-omap/include/plat/iovmm.h
@@ -16,7 +16,7 @@
16#include <linux/iommu.h> 16#include <linux/iommu.h>
17 17
18struct iovm_struct { 18struct iovm_struct {
19 struct iommu *iommu; /* iommu object which this belongs to */ 19 struct omap_iommu *iommu; /* iommu object which this belongs to */
20 u32 da_start; /* area definition */ 20 u32 da_start; /* area definition */
21 u32 da_end; 21 u32 da_end;
22 u32 flags; /* IOVMF_: see below */ 22 u32 flags; /* IOVMF_: see below */
@@ -72,15 +72,18 @@ struct iovm_struct {
72#define IOVMF_DA_FIXED (1 << (4 + IOVMF_SW_SHIFT)) 72#define IOVMF_DA_FIXED (1 << (4 + IOVMF_SW_SHIFT))
73 73
74 74
75extern struct iovm_struct *find_iovm_area(struct iommu *obj, u32 da); 75extern struct iovm_struct *omap_find_iovm_area(struct omap_iommu *obj, u32 da);
76extern u32 iommu_vmap(struct iommu_domain *domain, struct iommu *obj, u32 da, 76extern u32
77omap_iommu_vmap(struct iommu_domain *domain, struct omap_iommu *obj, u32 da,
77 const struct sg_table *sgt, u32 flags); 78 const struct sg_table *sgt, u32 flags);
78extern struct sg_table *iommu_vunmap(struct iommu_domain *domain, 79extern struct sg_table *omap_iommu_vunmap(struct iommu_domain *domain,
79 struct iommu *obj, u32 da); 80 struct omap_iommu *obj, u32 da);
80extern u32 iommu_vmalloc(struct iommu_domain *domain, struct iommu *obj, 81extern u32
82omap_iommu_vmalloc(struct iommu_domain *domain, struct omap_iommu *obj,
81 u32 da, size_t bytes, u32 flags); 83 u32 da, size_t bytes, u32 flags);
82extern void iommu_vfree(struct iommu_domain *domain, struct iommu *obj, 84extern void
85omap_iommu_vfree(struct iommu_domain *domain, struct omap_iommu *obj,
83 const u32 da); 86 const u32 da);
84extern void *da_to_va(struct iommu *obj, u32 da); 87extern void *omap_da_to_va(struct omap_iommu *obj, u32 da);
85 88
86#endif /* __IOMMU_MMAP_H */ 89#endif /* __IOMMU_MMAP_H */