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 #include <xdc/std.h>
00059 #include <xdc/runtime/IHeap.h>
00060
00061 #include <ti/xdais/ialg.h>
00062 #include <ti/xdais/ires.h>
00063 #include <stddef.h>
00064
00065 #define DSKT2_NUM_SCRATCH_GROUPS 20
00069 #define DSKT2_MAX_MEM_ALLOCATION_SIZE 0xFFFF
00073
00074 #define DSKT2_NUM_SHAREDHEAPS 2
00075
00084 #define DSKT2_MODNAME "ti.sdo.fc.dskt2"
00085
00093 typedef Void (*DSKT2_CacheWBInvFxn)(Ptr blockPtr, size_t byteCnt, Bool wait);
00094
00159 extern Void DSKT2_activateAlg(Int scratchMutexId, IALG_Handle alg);
00160
00161
00194 extern Int DSKT2_controlAlg(IALG_Handle alg, IALG_Cmd cmd,
00195 IALG_Status *status);
00196
00197
00276 extern IALG_Handle DSKT2_createAlg(Int scratchMutexId, IALG_Fxns * fxns,
00277 IALG_Handle parent, IALG_Params * params);
00278
00279
00373 extern IALG_Handle DSKT2_createAlg2(Int scratchMutexId, IALG_Fxns * fxns,
00374 IALG_Handle parent, IALG_Params * params,
00375 xdc_runtime_IHeap_Handle extHeapId);
00376
00377
00453 IALG_Handle DSKT2_createAlgExt(Int scratchId, IALG_Fxns * fxns,
00454 IALG_Handle parent, IALG_Params * params);
00455
00508 extern Void DSKT2_deactivateAlg(Int scratchMutexId, IALG_Handle alg);
00509
00521 extern Int DSKT2_deactivateAll();
00522
00557 extern Bool DSKT2_freeAlg(Int scratchMutexId, IALG_Handle alg);
00558
00588 extern Bool DSKT2_allocScratch(IALG_Handle alg,Int mutexId, IALG_MemRec *memTab,
00589 Int numRecs);
00613 extern Void DSKT2_freeScratch(Int mutexId, Void *addr, UInt size);
00614
00627 extern Bool DSKT2_allocPersistent(IALG_MemRec *memTab, Int numRecs);
00628
00641 extern Void DSKT2_freePersistent(IALG_MemRec *memTab, Int numRecs);
00642
00643
00644
00645
00646
00654 Void DSKT2_yield(IRES_YieldResourceType resource,
00655 IRES_YieldContextHandle algYieldContext, IRES_YieldArgs yieldArgs);
00656
00661 IRES_YieldArgs DSKT2_getYieldArgs(Int scratchId);
00662
00667 IRES_YieldArgs DSKT2_setYieldArgs(Int scratchId, Bool yieldFlag);
00668
00672
00673 #ifdef __cplusplus
00674 }
00675 #endif
00676
00677 #endif
00678
00679
00680
00681
00682
00683