dskt2.h File Reference


Detailed Description

Provides services to support xDAIS algorithm instance objects.

#include <ti/xdais/ialg.h>
#include <stddef.h>
Include dependency graph for dskt2.h:

Go to the source code of this file.

Defines

#define DSKT2_GTNAME   "ti.sdo.fc.dskt2"
#define DSKT2_NUM_SCRATCH_GROUPS   20
#define DSKT2_MAX_MEM_ALLOCATION_SIZE   0xFFFF
#define DSKT2_NUM_SHAREDHEAPS   2

Typedefs

typedef 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 and blockPtr + byteCnt.

Functions

Void DSKT2_activateAlg (Int scratchMutexId, IALG_Handle alg)
 Prepares a xDAIS algorithm instance object to start using its scratch memory.
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.
IALG_Handle DSKT2_createAlg (Int scratchMutexId, IALG_Fxns *fxns, IALG_Handle parent, IALG_Params *params)
 Creates and initializes a xDAIS algorithm instance object.
IALG_Handle DSKT2_createAlg2 (Int scratchMutexId, IALG_Fxns *fxns, IALG_Handle parent, IALG_Params *params, Int extHeapId)
 Creates and initializes a xDAIS algorithm instance object.
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 external memory.
Void DSKT2_deactivateAlg (Int scratchMutexId, IALG_Handle alg)
 Prepares a xDAIS algorithm instance object to give up using its scratch memory.
Int DSKT2_deactivateAll ()
 All algorithms that have been deactivated lazily are now really deactivate. Any algorithms that are still currently active will be left as is. The number of algorithms that are still active will be returned from this call.
Bool DSKT2_freeAlg (Int scratchMutexId, IALG_Handle alg)
 Deletes a xDAIS algorithm instance object and frees all persistent memory allocated for the instance object.
Bool DSKT2_allocScratch (IALG_Handle alg, Int mutexId, IALG_MemRec *memTab, Int numRecs)
 Alocates memory from a DSKT2 shared scratch group buffer.
Void DSKT2_freeScratch (Int mutexId, Void *addr, Uns size)
 Alocates memory from a DSKT2 shared scratch group buffer.
Bool DSKT2_allocPersistent (IALG_MemRec *memTab, Int numRecs)
 Alocates persistent memory to the requesting algorithm.
Void DSKT2_freePersistent (IALG_MemRec *memTab, Int numRecs)
 Frees persistent memory from the requesting algorithm.

Copyright 2009, Texas Instruments Incorporated