Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
180
11.18.3.7 void
∗
mmlGdcVideoAlloc ( MM_U32 size, MM_U32 alignment, MM_ADDR
∗
pAddr )
Allocate a contiguous block of video memory.
Parameters
in
size
Amount of memory to be allocated in bytes.
in
alignment
Alignment to use for the allocation.
out
pAddr
If non-NULL, a pointer to a variable to receive the physical address of the memory block on
success.
Returns
NULL on failure, or the virtual address of the allocated memory.
11.18.3.8 MM_ERROR mmlGdcVideoConfig ( UTIL_VRAM_CONFIG config )
Configuration of video memory manager. This defines the memory region, where VideoAlloc shall allocate
memory.
Parameters
in
config
Video memory manager configuration (default:
UTIL_VRAM_CONFIG_VRAM_PREFERRED).
Returns
MML_ERR_MMAN_INVALID_PARAMETER, If illegal value for config is given, MML_OK otherwise.
11.18.3.9 void mmlGdcVideoFree ( void
∗
addr )
Free video memory allocated by mmlGdcVideoAlloc.
Parameters
in
addr
Virtual address previously returned from mmlGdcVideoAlloc.
11.18.3.10 MM_ERROR mmlGdcVideoGetFreeTotal ( MM_U32
∗
size )
Retrieve the total amount of free video memory. Depending on the configuration (see mmlGdcVideoConfig), this
refers to VRAM, SDRAM or both.
Parameters
out
size
Parameter to receive the query result [not NULL].
Return values
MML_OK
Normal termination.
MML_ERR_MMAN_INVALID_PARAMETER
An unexpected internal error occurred.