aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2011-12-16 14:11:01 +0800
committerAndy Green <andy.green@linaro.org>2011-12-26 22:33:18 +0800
commitcccf76c576f5cfb04cde5a0e8e5478adbfc03362 (patch)
treea2b120082ab5898b6ecc88d773c35b1eaf97732c /arch
parent48ba9d0cdaf0a2dcd29b2d042bded3d4d01f6071 (diff)
TILER: Add tiler_virt2phys function
Move the virt2phys functionality into a common function, and export it so that it can be used by different drivers. Signed-off-by: Lajos Molnar <molnar@ti.com> Signed-off-by: Mark Tyler <mark.tyler@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/include/mach/tiler.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/include/mach/tiler.h b/arch/arm/mach-omap2/include/mach/tiler.h
index d72f322696c..aef6dab0222 100644
--- a/arch/arm/mach-omap2/include/mach/tiler.h
+++ b/arch/arm/mach-omap2/include/mach/tiler.h
@@ -103,6 +103,15 @@ s32 tiler_reg_notifier(struct notifier_block *nb);
s32 tiler_unreg_notifier(struct notifier_block *nb);
/**
+ * Get the physical address for a given user va.
+ *
+ * @param usr user virtual address
+ *
+ * @return valid pa or 0 for error
+ */
+u32 tiler_virt2phys(u32 usr);
+
+/**
* Reserves a 1D or 2D TILER block area and memory for the
* current process with group ID 0.
*