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_addrspace_IRES_ADDRSPACE_ 00042 #define ti_sdo_fc_ires_addrspace_IRES_ADDRSPACE_ 00043 00046 00047 00048 #ifdef __cplusplus 00049 extern "C" { 00050 #endif 00051 00052 #include <ti/xdais/ires.h> 00053 00057 #define IRES_ADDRSPACE_PROTOCOLNAME \ 00058 "ti.sdo.fc.ires.addrspace" 00059 00063 #define ADDRSPACE_GTNAME "ti.sdo.fc.ires.addrspace" 00064 00065 /* 00066 * Note, we wrap the PROTOCOLVERSION in an ifdef so the 00067 * resource managers and algs get this version data placed in their object 00068 * files. Apps, which include rman.h, will have this 'NOPROTOCOLREV' defined. 00069 */ 00070 #ifndef ti_sdo_fc_ires_NOPROTOCOLREV 00071 00075 static IRES_ProtocolRevision IRES_ADDRSPACE_PROTOCOLREVISION = {1, 0, 0}; 00076 00077 #endif 00078 00082 typedef struct IRES_ADDRSPACE_Obj *IRES_ADDRSPACE_Handle; 00083 00084 00089 typedef enum IRES_ADDRSPACE_AccessType { 00090 IRES_ADDRSPACE_READ = 1, 00091 IRES_ADDRSPACE_WRITE = 2, 00092 IRES_ADDRSPACE_EXEC = 4, 00093 IRES_ADDRSPACE_NONE = 8 00094 } IRES_ADDRSPACE_AccessType; 00095 00099 typedef struct IRES_ADDRSPACE_ProtocolArgs { 00100 00101 IRES_ProtocolArgs base; 00102 Void * addr; 00103 unsigned int len; 00104 IRES_ADDRSPACE_AccessType 00105 attrib; 00107 } IRES_ADDRSPACE_ProtocolArgs; 00108 00114 typedef struct IRES_ADDRSPACE_Obj { 00115 IRES_Obj ires; 00116 Void * addr; 00117 unsigned int len; 00118 } IRES_ADDRSPACE_Obj; 00119 00120 /* 00121 * @brief Static Resource Properties 00122 */ 00123 typedef struct IRES_ADDRSPACE_Properties { 00124 int size; 00125 } IRES_ADDRSPACE_Properties; 00126 00130 #ifdef __cplusplus 00131 } 00132 #endif /* extern "C" */ 00133 00134 00135 #endif 00136 /* 00137 * @(#) ti.sdo.fc.ires.addrspace; 1, 0, 0,61; 12-1-2010 17:24:55; /db/atree/library/trees/fc/fc-p01x/src/ xlibrary 00138 00139 */ 00140