diff options
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal.h')
-rw-r--r-- | drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal.h | 84 |
1 files changed, 50 insertions, 34 deletions
diff --git a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal.h b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal.h index 4945dca90ec1..9b3c60ca8c7c 100644 --- a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal.h +++ b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal.h @@ -310,6 +310,14 @@ typedef struct _gckHARDWARE * gckHARDWARE; # define gcmVERIFY_OBJECT_RETURN(obj, t) do {} while (gcvFALSE) #endif +typedef struct _gcsContiguousBlock +{ + gctUINT32 ptr; + gctSIZE_T size; +} +gcsContiguousBlock; + + /******************************************************************************\ ********************************** gckOS Object ********************************* \******************************************************************************/ @@ -1162,6 +1170,26 @@ gckOS_UnmapUserMemory( IN gctUINT32 Address ); +/* Get scatter-gather table from memory. */ +gceSTATUS +gckOS_MemoryGetSGT( + IN gckOS Os, + IN gctPHYS_ADDR Physical, + IN gctSIZE_T Offset, + IN gctSIZE_T Bytes, + OUT gctPOINTER *SGT + ); + +/* Map a page range of memory to user space. */ +gceSTATUS +gckOS_MemoryMmap( + IN gckOS Os, + IN gctPHYS_ADDR Physical, + IN gctSIZE_T skipPages, + IN gctSIZE_T numPages, + INOUT gctPOINTER Vma + ); + /* Wrap a user memory to gctPHYS_ADDR. */ gceSTATUS gckOS_WrapMemory( @@ -1780,6 +1808,17 @@ gckKERNEL_QueryVideoMemory( OUT struct _gcsHAL_INTERFACE * Interface ); +/* Query used memory nodes of a specific pool. */ +gceSTATUS +gckKERNEL_QueryVidMemPoolNodes( + gckKERNEL Kernel, + gcePOOL Pool, + gctUINT32 * TotalSize, /* sum of the sizes of the contiguous blocks (i.e. total memory used at current time) : to be filled by the called function */ + gcsContiguousBlock * MemoryBlocks, /* previously allocated by the calling function : to be filled by the called function */ + gctUINT32 NumMaxBlocks, /* provided by the calling function */ + gctUINT32 * NumBlocks /* actual number of contiguous blocks : to be filled by the called function */ + ); + /* Lookup the gckVIDMEM object for a pool. */ gceSTATUS gckKERNEL_GetVideoMemoryPool( @@ -1855,6 +1894,7 @@ gckKERNEL_MapVideoMemoryEx( IN gctUINT32 Pid, IN gctUINT32 Bytes, #endif + IN gcePOOL Pool, OUT gctPOINTER * Logical ); @@ -2114,6 +2154,12 @@ gckHARDWARE_QueryChipIdentity( OUT gcsHAL_QUERY_CHIP_IDENTITY_PTR Identity ); +gceSTATUS +gckHARDWARE_QueryChipOptions( + IN gckHARDWARE Hardware, + OUT gcsHAL_QUERY_CHIP_OPTIONS_PTR Options + ); + /* Query the shader uniforms support. */ gceSTATUS gckHARDWARE_QueryShaderCaps( @@ -2513,13 +2559,6 @@ gckEVENT_Unlock( IN gceSURF_TYPE Type ); -gceSTATUS -gckEVENT_CommitDone( - IN gckEVENT Event, - IN gceKERNEL_WHERE FromWhere, - IN gckCONTEXT Context - ); - /* Schedule a FreeVirtualCommandBuffer event. */ gceSTATUS gckEVENT_DestroyVirtualCommandBuffer( @@ -2540,7 +2579,8 @@ gckEVENT_Submit( gceSTATUS gckEVENT_Commit( IN gckEVENT Event, - IN gcsQUEUE_PTR Queue + IN gcsQUEUE_PTR Queue, + IN gctBOOL Forced ); /* Event callback routine. */ @@ -2618,7 +2658,6 @@ gckCOMMAND_Commit( IN gckCONTEXT Context, IN gcoCMDBUF CommandBuffer, IN gcsSTATE_DELTA_PTR StateDelta, - IN gcsQUEUE_PTR EventQueue, IN gctUINT32 ProcessID, IN gctBOOL Shared, IN gctUINT32 Index, @@ -2763,21 +2802,13 @@ gckMMU_IsFlatMapped( ); -#if VIVANTE_PROFILER -gceSTATUS -gckHARDWARE_QueryProfileRegisters( - IN gckHARDWARE Hardware, - IN gctBOOL Reset, - OUT gcsPROFILER_COUNTERS * Counters - ); -#endif - gceSTATUS gckHARDWARE_QueryContextProfile( IN gckHARDWARE Hardware, IN gctBOOL Reset, IN gckCONTEXT Context, - OUT gcsPROFILER_COUNTERS * Counters + OUT gcsPROFILER_COUNTERS_PART1 * Counters_part1, + OUT gcsPROFILER_COUNTERS_PART2 * Counters_part2 ); gceSTATUS @@ -2787,21 +2818,6 @@ gckHARDWARE_UpdateContextProfile( ); gceSTATUS -gckHARDWARE_QueryContextNewProfile( - IN gckHARDWARE Hardware, - IN gctBOOL Reset, - IN gckCONTEXT Context, - OUT gcsPROFILER_NEW_COUNTERS_PART1 * Counters_part1, - OUT gcsPROFILER_NEW_COUNTERS_PART2 * Counters_part2 - ); - -gceSTATUS -gckHARDWARE_UpdateContextNewProfile( - IN gckHARDWARE Hardware, - IN gckCONTEXT Context - ); - -gceSTATUS gckHARDWARE_InitProfiler( IN gckHARDWARE Hardware ); |