dskt2.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00048 #ifndef DSKT2_
00049 #define DSKT2_
00050
00051 #ifdef __cplusplus
00052 extern "C" {
00053 #endif
00054
00057
00058
00059 #include <ti/xdais/ialg.h>
00060 #include <stddef.h>
00061
00062 #define DSKT2_GTNAME "ti.sdo.fc.dskt2"
00066 #define DSKT2_NUM_SCRATCH_GROUPS 20
00070 #define DSKT2_MAX_MEM_ALLOCATION_SIZE 0xFFFF
00074
00075 #define DSKT2_NUM_SHAREDHEAPS 2
00076
00084 typedef Void (*DSKT2_CacheWBInvFxn)(Ptr blockPtr, size_t byteCnt, Bool wait);
00085
00149 extern Void DSKT2_activateAlg(Int scratchMutexId, IALG_Handle alg);
00150
00151
00184 extern Int DSKT2_controlAlg(IALG_Handle alg, IALG_Cmd cmd,
00185 IALG_Status *status);
00186
00187
00261 extern IALG_Handle DSKT2_createAlg(Int scratchMutexId, IALG_Fxns * fxns,
00262 IALG_Handle parent, IALG_Params * params);
00263
00264
00354 extern IALG_Handle DSKT2_createAlg2(Int scratchMutexId, IALG_Fxns * fxns,
00355 IALG_Handle parent, IALG_Params * params, Int extHeapId);
00356
00357
00429 IALG_Handle DSKT2_createAlgExt(Int scratchId, IALG_Fxns * fxns,
00430 IALG_Handle parent, IALG_Params * params);
00431
00484 extern Void DSKT2_deactivateAlg(Int scratchMutexId, IALG_Handle alg);
00485
00497 extern Int DSKT2_deactivateAll();
00498
00529 extern Bool DSKT2_freeAlg(Int scratchMutexId, IALG_Handle alg);
00530
00560 extern Bool DSKT2_allocScratch(IALG_Handle alg,Int mutexId, IALG_MemRec *memTab,
00561 Int numRecs);
00585 extern Void DSKT2_freeScratch(Int mutexId, Void *addr, Uns size);
00586
00599 extern Bool DSKT2_allocPersistent(IALG_MemRec *memTab, Int numRecs);
00600
00613 extern Void DSKT2_freePersistent(IALG_MemRec *memTab, Int numRecs);
00614
00617 #ifdef __cplusplus
00618 }
00619 #endif
00620
00621 #endif
00622
00623
00624
00625
00626