Codec Engine System Programming Interface (SPI)
ce-w08
|
The Codec Engine OSAL Memory interface. Provides the user an OS-independent Memory abstraction.
Go to the source code of this file.
Data Structures | |
struct | ti_sdo_ce_osal_Memory_AllocParams |
Parameters for ti_sdo_ce_osal_Memory_alloc() & ti_sdo_ce_osal_Memory_free() More... |
Macros | |
#define | ti_sdo_ce_osal_Memory_DEFAULTALIGNMENT ((UInt)(-1)) |
Default Alignment. | |
#define | Memory_MODNAME "ti.sdo.ce.osal.Memory" |
Name to pass to Diags_setMask() to enable logging for Memory functions. For example, Diags_setMask(Memory_MODNAME"+EX1234567"); turns on all Log statements in this module. Diags_setMask() must be called after initialization to take effect. | |
#define | ti_sdo_ce_osal_Memory_GTNAME "OM" |
GT name containing the trace mask for this module. | |
#define | ti_sdo_ce_osal_Memory_CACHED 0x00000000 |
Cached allocation. | |
#define | ti_sdo_ce_osal_Memory_NONCACHED 0x00000001 |
Non-cached allocation. | |
#define | ti_sdo_ce_osal_Memory_CACHEDMASK 0x00000001 |
Mask to isolate cache flag. |
Typedefs | |
typedef struct ti_sdo_ce_osal_Memory_AllocParams | ti_sdo_ce_osal_Memory_AllocParams |
Parameters for ti_sdo_ce_osal_Memory_alloc() & ti_sdo_ce_osal_Memory_free() |
Enumerations | |
enum | ti_sdo_ce_osal_Memory_type { ti_sdo_ce_osal_Memory_MALLOC = 0, ti_sdo_ce_osal_Memory_SEG = 1, ti_sdo_ce_osal_Memory_CONTIGPOOL = 2, ti_sdo_ce_osal_Memory_CONTIGHEAP = 3 } |
Enum values for ti_sdo_ce_osal_Memory_AllocParams.type. More... |
Functions | |
Ptr | ti_sdo_ce_osal_Memory_alloc (UInt size, ti_sdo_ce_osal_Memory_AllocParams *params) |
General memory allocation. | |
Void | ti_sdo_ce_osal_Memory_cacheInv (Ptr addr, Int sizeInBytes) |
Invalidate a range of cache. | |
Void | ti_sdo_ce_osal_Memory_cacheWb (Ptr addr, Int sizeInBytes) |
Write back cache. | |
Void | ti_sdo_ce_osal_Memory_cacheWbInv (Ptr addr, Int sizeInBytes) |
Write back and invalidate cache. | |
Void | ti_sdo_ce_osal_Memory_cacheWbInvAll () |
Write back and invalidate the entire cache. Not supported yet on all OS's. | |
Ptr | ti_sdo_ce_osal_Memory_contigAlloc (UInt size, UInt align) |
Allocate physically contiguous blocks of memory. | |
Bool | ti_sdo_ce_osal_Memory_contigFree (Ptr addr, UInt size) |
Free memory allocated by ti_sdo_ce_osal_Memory_contigAlloc() | |
Bool | ti_sdo_ce_osal_Memory_free (Ptr addr, UInt size, ti_sdo_ce_osal_Memory_AllocParams *params) |
Free memory allocated with ti_sdo_ce_osal_Memory_alloc(). | |
Void | ti_sdo_ce_osal_Memory_dumpKnownContigBufsList (Void) |
Dumps the list of all translated/registered bufs. | |
UInt32 | ti_sdo_ce_osal_Memory_getBufferPhysicalAddress (Ptr virtualAddress, Int sizeInBytes, Bool *isContiguous) |
Converts application virtual address to a physical address. | |
Int | ti_sdo_ce_osal_Memory_getHeapId (String name) |
Get the heap heap ID corresponding to a heap name. This number will be between 0 and the value returned by ti_sdo_ce_osal_Memory_getNumHeaps(). The heap Id can be passed to ti_sdo_ce_osal_Memory_redefine() and ti_sdo_ce_osal_Memory_restoreHeap(). | |
Int | ti_sdo_ce_osal_Memory_getNumHeaps () |
Get the number of memory heaps. | |
Ptr | ti_sdo_ce_osal_Memory_getBufferVirtualAddress (UInt32 physicalAddress, Int sizeInBytes) |
Obtains the virtual address of a physically contiguous buffer. | |
Void | ti_sdo_ce_osal_Memory_registerContigBuf (UInt32 virtualAddress, UInt32 sizeInBytes, UInt32 physicalAddress) |
Register a physical buffer allocated without ti_sdo_ce_osal_Memory_contigAlloc() | |
Void | ti_sdo_ce_osal_Memory_unregisterContigBuf (UInt32 virtualAddress, UInt32 sizeInBytes) |
Unregisters a physical buffer allocated without ti_sdo_ce_osal_Memory_contigAlloc(). |
Variables | |
ti_sdo_ce_osal_Memory_AllocParams | ti_sdo_ce_osal_Memory_DEFAULTPARAMS |
Default parameters for ti_sdo_ce_osal_Memory_alloc() & ti_sdo_ce_osal_Memory_free() |