dskt2.h

Go to the documentation of this file.
00001 /* 
00002  * Copyright (c) 2010, Texas Instruments Incorporated
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  *
00009  * *  Redistributions of source code must retain the above copyright
00010  *    notice, this list of conditions and the following disclaimer.
00011  *
00012  * *  Redistributions in binary form must reproduce the above copyright
00013  *    notice, this list of conditions and the following disclaimer in the
00014  *    documentation and/or other materials provided with the distribution.
00015  *
00016  * *  Neither the name of Texas Instruments Incorporated nor the names of
00017  *    its contributors may be used to endorse or promote products derived
00018  *    from this software without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00021  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00022  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00023  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
00024  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00025  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00026  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
00027  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00028  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
00029  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
00030  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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 /* NOTE: DO NOT Change NUM_SHAREDHEAPS*/
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 /* extern "C" */
00620 
00621 #endif  /* DSKT2_ */
00622 
00623 /*
00624  *  @(#) ti.sdo.fc.dskt2; 1, 0, 4,300; 12-1-2010 17:24:35; /db/atree/library/trees/fc/fc-p01x/src/ xlibrary
00625 
00626  */
00627 

Copyright 2010, Texas Instruments Incorporated