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 */ 00041 #ifndef ti_sdo_fc_ires_memtcm_IRES_MEMTCM_ 00042 #define ti_sdo_fc_ires_memtcm_IRES_MEMTCM_ 00043 00046 00047 00048 #ifdef __cplusplus 00049 extern "C" { 00050 #endif 00051 00052 #include <ti/xdais/ires.h> 00053 00057 #define IRES_MEMTCM_PROTOCOLNAME "ti.sdo.fc.ires.examples.resources.memtcm" 00058 00062 #define MEMTCM_GTNAME "ti.sdo.fc.ires.examples.resources.memtcm" 00063 00064 /* 00065 * Note, we wrap the PROTOCOLVERSION in an ifdef so the 00066 * resource managers and algs get this version data placed in their object 00067 * files. Apps, which include rman.h, will have this 'NOPROTOCOLREV' defined. 00068 */ 00069 #ifndef ti_sdo_fc_ires_NOPROTOCOLREV 00070 00074 static IRES_ProtocolRevision IRES_MEMTCM_PROTOCOLREVISION = {1,0,0}; 00075 00076 #endif 00077 00081 typedef struct IRES_MEMTCM_Obj *IRES_MEMTCM_Handle; 00082 00086 typedef struct IRES_MEMTCM_ProtocolArgs { 00087 00088 IRES_ProtocolArgs base; 00089 00090 unsigned int memSize; /* Size of the requested TCM memory */ 00091 00092 } IRES_MEMTCM_ProtocolArgs; 00093 00099 typedef struct IRES_MEMTCM_Obj { 00100 00101 IRES_Obj ires; 00102 00103 unsigned int memSize; /* Size of the returned TCM memory */ 00104 00105 void * memAddr; /* Base address of the returned TCM mem */ 00106 00107 } IRES_MEMTCM_Obj; 00108 00109 /* 00110 * @brief Static Resource Properties 00111 */ 00112 typedef struct IRES_MEMTCM_Properties { 00113 00114 int size; 00115 00116 } IRES_MEMTCM_Properties; 00117 00121 #ifdef __cplusplus 00122 } 00123 #endif /* extern "C" */ 00124 00125 00126 #endif /* ti_sdo_fc_ires_memtcm_IRES_MEMTCM_ */ 00127 /* 00128 * @(#) ti.sdo.fc.ires.memtcm; 1, 0, 0,33; 7-2-2010 18:59:23; /db/atree/library/trees/fc/fc-l07x/src/ 00129 */ 00130