From 8713b1a4e8cb8392d1e7aa6aaa562dad740a271e Mon Sep 17 00:00:00 2001 From: David Sin Date: Fri, 16 Dec 2011 14:10:00 +0800 Subject: TILER: Correct rot/pack API mismatches; Add missing API prototypes Signed-off-by: David Sin TILER: Don't dereference sysptr in tiler_alloc_packed function Signed-off-by: David Sin --- arch/arm/mach-omap2/include/mach/tiler.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'arch/arm/mach-omap2') diff --git a/arch/arm/mach-omap2/include/mach/tiler.h b/arch/arm/mach-omap2/include/mach/tiler.h index e3ae1c14a10..b8adf1439b6 100644 --- a/arch/arm/mach-omap2/include/mach/tiler.h +++ b/arch/arm/mach-omap2/include/mach/tiler.h @@ -94,18 +94,23 @@ s32 tiler_alloc(enum tiler_fmt fmt, u32 width, u32 height, u32 *sys_addr); */ s32 tiler_free(u32 sys_addr); +u32 tiler_reorient_addr(u32 tsptr, struct tiler_view_orient orient); + u32 tiler_get_natural_addr(void *sys_ptr); -void tiler_rotate_view(struct tiler_view_orient *orient, u32 rotation); +u32 tiler_reorient_topleft(u32 tsptr, struct tiler_view_orient orient, + u32 width, u32 height); u32 tiler_stride(u32 tsptr); -void tiler_alloc_packed_nv12(s32 *count, u32 width, u32 height, void **y_sysptr, - void **uv_sysptr, void **y_allocptr, - void **uv_allocptr, s32 aligned); +void tiler_rotate_view(struct tiler_view_orient *orient, u32 rotation); void tiler_alloc_packed(s32 *count, enum tiler_fmt fmt, u32 width, u32 height, void **sysptr, void **allocptr, s32 aligned); +void tiler_alloc_packed_nv12(s32 *count, u32 width, u32 height, void **y_sysptr, + void **uv_sysptr, void **y_allocptr, + void **uv_allocptr, s32 aligned); + #endif -- cgit v1.2.3