58 #include <xdc/runtime/IHeap.h>
64 #define DSKT2_NUM_SCRATCH_GROUPS 20
68 #define DSKT2_MAX_MEM_ALLOCATION_SIZE 0xFFFF
73 #define DSKT2_NUM_SHAREDHEAPS 2
83 #define DSKT2_MODNAME "ti.sdo.fc.dskt2"
111 extern __FAR__ xdc_runtime_IHeap_Handle
_DSKT2_heap;
407 xdc_runtime_IHeap_Handle extHeapId);
713 Int DSKT2_getNumAlgs();
725 Int DSKT2_getAlgList(
IALG_Handle * algList, Int * scratchIds);
Int DSKT2_deactivateAll()
All algorithms that have been deactivated lazily are now really deactivate. Any algorithms that are s...
Void DSKT2_freeScratch(Int mutexId, Void *addr, UInt size)
Alocates memory from a DSKT2 shared scratch group buffer.
Bool DSKT2_freeAlg(Int scratchMutexId, IALG_Handle alg)
Deletes a XDAIS algorithm instance object and frees all persistent memory allocated for the instance ...
__FAR__ xdc_runtime_IHeap_Handle DSKT2_daram1Heap
__FAR__ xdc_runtime_IHeap_Handle DSKT2_daram2Heap
__FAR__ xdc_runtime_IHeap_Handle DSKT2_iprogHeap
__FAR__ xdc_runtime_IHeap_Handle DSKT2_saram1Heap
IALG_Handle DSKT2_createAlgExt(Int scratchId, IALG_Fxns *fxns, IALG_Handle parent, IALG_Params *params)
Creates and initializes a XDAIS algorithm instance object, allocating all algorithm memory in externa...
Memory records.
Definition: ialg.h:142
Pointer to algorithm specific status structure.
Definition: ialg.h:187
Algorithm instance object definition.
Definition: ialg.h:159
Void DSKT2_freePersistent(IALG_MemRec *memTab, Int numRecs)
Frees persistent memory from the requesting algorithm.
__FAR__ UInt _DSKT2_ALLOW_EXTERNAL_SCRATCH
Void DSKT2_activateAlg(Int scratchMutexId, IALG_Handle alg)
Prepares a XDAIS algorithm instance object to start using its scratch memory.
__FAR__ DSKT2_CacheWBInvFxn DSKT2_cacheWBInvFxn
Cache writeback function pointer used by DSKT2 if not NULL.
Bool DSKT2_allocPersistent(IALG_MemRec *memTab, Int numRecs)
Alocates persistent memory to the requesting algorithm.
Algorithm instance creation parameters.
Definition: ialg.h:176
IRES Interface Definitions - Allows algorithms to request and receive handles representing private lo...
__FAR__ xdc_runtime_IHeap_Handle _DSKT2_heap
__FAR__ xdc_runtime_IHeap_Handle DSKT2_esdataHeap
This header defines all types, constants, and functions defined by XDAIS for algorithms.
__FAR__ Bool ti_sdo_fc_dskt2_DSKT2_disableLazyDeactivate
Set this to TRUE to disable lazy deactivate feature in DSKT2.
IALG_Handle DSKT2_createAlg(Int scratchMutexId, IALG_Fxns *fxns, IALG_Handle parent, IALG_Params *params)
Creates and initializes a XDAIS algorithm instance object.
Bool DSKT2_allocScratch(IALG_Handle alg, Int mutexId, IALG_MemRec *memTab, Int numRecs)
Alocates memory from a DSKT2 shared scratch group buffer.
Defines the fields and methods that must be supplied by all XDAIS algorithms.
Definition: ialg.h:225
IALG_Handle DSKT2_createAlg2(Int scratchMutexId, IALG_Fxns *fxns, IALG_Handle parent, IALG_Params *params, xdc_runtime_IHeap_Handle extHeapId)
Creates and initializes a XDAIS algorithm instance object.
Void(* DSKT2_CacheWBInvFxn)(Ptr blockPtr, size_t byteCnt, Bool wait)
Function prototype of cache writeback function: Writes back the memory within the range of blockPtr a...
Definition: dskt2.h:96
Int DSKT2_controlAlg(IALG_Handle alg, IALG_Cmd cmd, IALG_Status *status)
This is a convenience API to call a XDAIS algorithm instance's algControl function.
__FAR__ xdc_runtime_IHeap_Handle DSKT2_eprogHeap
__FAR__ UInt _DSKT2_DARAM_SCRATCH_SIZES[]
__FAR__ xdc_runtime_IHeap_Handle DSKT2_saram0Heap
__FAR__ xdc_runtime_IHeap_Handle DSKT2_daram0Heap
__FAR__ xdc_runtime_IHeap_Handle DSKT2_saram2Heap
Specifies the algorithm specific handles and context save & restore function pointers and arguments t...
Definition: ires.h:84
Void * IRES_YieldArgs
Definition: ires.h:140
Void DSKT2_deactivateAlg(Int scratchMutexId, IALG_Handle alg)
Prepares a XDAIS algorithm instance object to give up using its scratch memory.
Int DSKT2_getScratchId(IALG_Handle alg)
__FAR__ UInt _DSKT2_SARAM_SCRATCH_SIZES[]
unsigned int IALG_Cmd
Algorithm specific command.
Definition: ialg.h:199
IRES_YieldResourceType
Definition: ires.h:60