summaryrefslogtreecommitdiff
path: root/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_base.h
diff options
context:
space:
mode:
authorLoren Huang <b02279@freescale.com>2012-04-24 12:21:24 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:36:32 +0800
commit2978a182258f896d950194aff970a7131829594c (patch)
tree6c6d7d10be22c6c455137635a34ed2ff338dcbd8 /drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_base.h
parent1c81be6a539289ba20c2ab8225c4e98253aff91f (diff)
ENGR00180624 Merge vivante 4.6.7p1 kernel part code
Merge vivante 4.6.7p1 kernel part code Signed-off-by: Loren Huang <b02279@freescale.com> Acked-by: Lily Zhang
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_base.h')
-rw-r--r--drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_base.h49
1 files changed, 45 insertions, 4 deletions
diff --git a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_base.h b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_base.h
index 72e23adaaa29..5fafefbe058e 100644
--- a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_base.h
+++ b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_base.h
@@ -441,6 +441,25 @@ gcoHAL_ScheduleUnmapMemory(
IN gctPOINTER Logical
);
+/* Map user memory. */
+gceSTATUS
+gcoHAL_MapUserMemory(
+ IN gctPOINTER Logical,
+ IN gctUINT32 Physical,
+ IN gctSIZE_T Size,
+ OUT gctPOINTER * Info,
+ OUT gctUINT32_PTR GPUAddress
+ );
+
+/* Unmap user memory. */
+gceSTATUS
+gcoHAL_UnmapUserMemory(
+ IN gctPOINTER Logical,
+ IN gctSIZE_T Size,
+ IN gctPOINTER Info,
+ IN gctUINT32 GPUAddress
+ );
+
/* Schedule an unmap of a user buffer using event mechanism. */
gceSTATUS
gcoHAL_ScheduleUnmapUserMemory(
@@ -473,7 +492,7 @@ gcoHAL_Compact(
IN gcoHAL Hal
);
-#if VIVANTE_PROFILER /*gcdENABLE_PROFILING*/
+#if VIVANTE_PROFILER
gceSTATUS
gcoHAL_ProfileStart(
IN gcoHAL Hal
@@ -726,6 +745,17 @@ gcoOS_MapUserMemory(
OUT gctUINT32_PTR Address
);
+/* Map user memory. */
+gceSTATUS
+gcoOS_MapUserMemoryEx(
+ IN gcoOS Os,
+ IN gctPOINTER Memory,
+ IN gctUINT32 Physical,
+ IN gctSIZE_T Size,
+ OUT gctPOINTER * Info,
+ OUT gctUINT32_PTR Address
+ );
+
/* Unmap user memory. */
gceSTATUS
gcoOS_UnmapUserMemory(
@@ -1091,7 +1121,7 @@ gcoOS_AddSignalHandler (
IN gceSignalHandlerType SignalHandlerType
);
-#if VIVANTE_PROFILER /*gcdENABLE_PROFILING*/
+#if VIVANTE_PROFILER
gceSTATUS
gcoOS_ProfileStart(
IN gcoOS Os
@@ -1125,6 +1155,13 @@ gcoOS_QueryVideoMemory(
/* Detect if the process is the executable specified. */
gceSTATUS
+gcoOS_DetectProcessByNamePid(
+ IN gctCONST_STRING Name,
+ IN gctHANDLE Pid
+ );
+
+/* Detect if the current process is the executable specified. */
+gceSTATUS
gcoOS_DetectProcessByName(
IN gctCONST_STRING Name
);
@@ -1949,6 +1986,10 @@ gcoSURF_SetLinearResolveAddress(
IN gctUINT32 Address,
IN gctPOINTER Memory
);
+
+ gceSTATUS
+ gcoSURF_Swap(IN gcoSURF Surface1, IN gcoSURF Surface2);
+
/******************************************************************************\
********************************* gcoDUMP Object ********************************
\******************************************************************************/
@@ -2147,7 +2188,7 @@ gcoHEAP_Free(
IN gctPOINTER Node
);
-#if (VIVANTE_PROFILER /*gcdENABLE_PROFILING*/ || gcdDEBUG)
+#if (VIVANTE_PROFILER || gcdDEBUG)
/* Profile the heap. */
gceSTATUS
gcoHEAP_ProfileStart(
@@ -3459,7 +3500,7 @@ gckOS_DebugStatus2Name(
** surfaceInfo Pointer to the surface iniformational structure.
*/
#define gcmVERIFY_NODE_LOCK(surfaceNode) \
- if (!surfaceNode->valid) \
+ if (!(surfaceNode)->valid) \
{ \
status = gcvSTATUS_MEMORY_UNLOCKED; \
break; \