Framework Components Application Programming Interface (API)  fc-t15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
rman.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013 by Texas Instruments Incorporated.
3  *
4  */
5 
6 /*
7  * Copyright (c) 2012, Texas Instruments Incorporated
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  *
14  * * Redistributions of source code must retain the above copyright
15  * notice, this list of conditions and the following disclaimer.
16  *
17  * * Redistributions in binary form must reproduce the above copyright
18  * notice, this list of conditions and the following disclaimer in the
19  * documentation and/or other materials provided with the distribution.
20  *
21  * * Neither the name of Texas Instruments Incorporated nor the names of
22  * its contributors may be used to endorse or promote products derived
23  * from this software without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
27  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
29  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
32  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
34  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
35  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36  *
37  */
55 #ifndef ti_sdo_fc_rman__RMAN_
56 #define ti_sdo_fc_rman__RMAN_
57 
58 #define ti_sdo_fc_ires_NOPROTOCOLREV
59 
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
63 
66 
67 #include <ti/xdais/ires.h>
68 #include <ti/sdo/fc/ires/iresman.h>
69 
78 #define RMAN_MODNAME "ti.sdo.fc.rman"
79 
83 #define RMAN_GTNAME "ti.sdo.fc.rman"
84 
88 #define RMAN_PROTOCOLNAMESIZE 200
89 
93 typedef struct Sem_Obj * RMAN_SemHandle;
94 
101  (Int scratchId, Bool yieldFlag);
102 
113 typedef struct RMAN_Params {
114 
119 
124 
129 
135 
140 
141 } RMAN_Params;
142 
146 extern __FAR__ RMAN_Params RMAN_PARAMS;
147 
151 extern __FAR__ IRESMAN_Fxns * RMAN_TABLE[];
152 
156 extern __FAR__ short RMAN_FREE_ENTRIES[];
157 
163 extern __FAR__ short RMAN_numRegistryEntries;
164 
170 extern __FAR__ IRESMAN_Fxns ** RMAN_registryEntries;
171 
176 extern __FAR__ IRESMAN_Params ** RMAN_registryResmanArgs;
177 
182 extern __FAR__ unsigned int ** RMAN_iresVTable;
183 
187 extern __FAR__ unsigned int ti_sdo_fc_rman_RMAN_MAXALGS;
188 
192 extern UInt32 ti_sdo_fc_rman_RMAN_ipcKey;
193 
199 
209 IRES_Status RMAN_init(Void);
210 
211 
218 IRES_Status RMAN_exit(Void);
219 
220 
237 IRES_Status RMAN_register(IRESMAN_Fxns * resmanFxns, IRESMAN_Params * initArgs);
238 
239 
251 
276  Int scratchGroupId);
277 
278 
309 IRES_Status RMAN_allocateResources(Int requestId,
310  IRES_ResourceDescriptor * resDesc, Int numResources, Int scratchGroupId);
311 
312 
331 IRES_Status RMAN_freeResources(IALG_Handle algHandle, IRES_Fxns * resFxns, Int
332  scratchGroupId);
333 
359  IRES_ResourceDescriptor *resDesc, Int numResources, Int scratchGroupId);
360 
374  IRES_Handle resourceHandle, IRES_Fxns * resFxns, Int scratchGroupId);
375 
386  IRES_Fxns * resFxns, Int scratchGroupId);
387 
401  IRES_Handle resourceHandle, IRES_Fxns * resFxns, Int scratchGroupId);
402 
414  IRES_Fxns * resFxns, Int scratchGroupId);
415 
416 
436 void RMAN_yield(IRES_YieldResourceType resource,
437  IRES_YieldContextHandle algYieldContext, IRES_YieldArgs yieldArgs);
438 
439 
442 #ifdef __cplusplus
443 }
444 #endif /* extern "C" */
445 
446 #endif
447 /*
448  * @(#) ti.sdo.fc.rman; 2, 0, 0,; 10-29-2013 18:39:28; /db/atree/library/trees/fc/fc-t15/src/ xlibrary
449 
450  */
451 
Copyright 2013, Texas Instruments Incorporated