Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
177
11.18
Utilities for the compatibility with other drivers
Enumerations
enum UTIL_VRAM_CONFIG {
UTIL_VRAM_CONFIG_VRAM_ONLY = 0x1U,
UTIL_VRAM_CONFIG_SDRAM_ONLY = 0x2U,
UTIL_VRAM_CONFIG_VRAM_PREFERRED = 0x3U
}
Functions
MM_ERROR mmlGdcSmGenSurfaceObjects (MM_U32 uCnt, MML_GDC_SURFACE *pSurfaces)
MM_ERROR mmlGdcSmDeleteSurfaceObjects (MM_U32 uCnt, MML_GDC_SURFACE *pSurfaces)
MM_ERROR mmlGdcPeGenContext (MML_GDC_PE_CONTEXT *pPectx)
void mmlGdcPeDeleteContext (MML_GDC_PE_CONTEXT pectx)
void * mmlOsLibcMalloc (size_t _Size)
void mmlOsLibcFree (void *_Memory)
MM_ERROR mmlGdcVideoConfig (UTIL_VRAM_CONFIG config)
void * mmlGdcVideoAlloc (MM_U32 size, MM_U32 alignment, MM_ADDR *pAddr)
void mmlGdcVideoFree (void *addr)
MM_ERROR mmlGdcVideoGetSize (MM_U32 *size)
MM_ERROR mmlGdcVideoGetFreeTotal (MM_U32 *size)
MM_ERROR mmlGdcVideoGetLargestBlock (MM_U32 *size)
MM_ERROR mmlGdcSyncCreate (MM_U32 uCnt, MML_GDC_SYNC *pSyncObjects)
MM_ERROR mmlGdcSyncDelete (MM_U32 uCnt, MML_GDC_SYNC *pSyncObjects)
11.18.1 Detailed Description
The functions of this group are used in some samples to make the application code identical to other 2D core based
devices. For instance the mmlGdcSmGenSurfaceObjects() function is not available in this driver API for this
hardware because system memory allocation is not allowed.
11.18.2 Enumeration Type Documentation
11.18.2.1 enum UTIL_VRAM_CONFIG
Configuration of video memory manager. This defines the memory region, where VideoAlloc shall allocate memory.
Enumerator
UTIL_VRAM_CONFIG_VRAM_ONLY
Allocate memory from VRAM.
UTIL_VRAM_CONFIG_SDRAM_ONLY
Allocate memory from SDRAM.
UTIL_VRAM_CONFIG_VRAM_PREFERRED
Try to allocate memory from VRAM. If this fails, allocate memory
from SDRAM.