00001 /* 00002 * Copyright (c) 2011, 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 ti_sdo_fc_ires_tiledmemory_IRES_TILEDMEMORY_ 00049 #define ti_sdo_fc_ires_tiledmemory_IRES_TILEDMEMORY_ 00050 00053 00054 00055 #ifdef __cplusplus 00056 extern "C" { 00057 #endif 00058 00059 #include <ti/xdais/xdas.h> 00060 #include <ti/xdais/ires_common.h> 00061 #include <ti/xdais/ires.h> 00062 00066 #define IRES_TILEDMEMORY_PROTOCOLNAME "ti.sdo.fc.ires.tiledmemory" 00067 00076 #define TILEDMEMORY_MODNAME "ti.sdo.fc.ires.tiledmemory" 00077 00078 /* 00079 * Note, we wrap the PROTOCOLVERSION in an ifdef so the 00080 * resource managers and algs get this version data placed in their object 00081 * files. Apps, which include rman.h, will have this 'NOPROTOCOLREV' defined. 00082 */ 00083 #ifndef ti_sdo_fc_ires_NOPROTOCOLREV 00084 00088 static IRES_ProtocolRevision IRES_TILEDMEMORY_PROTOCOLREVISION = {1, 0, 0}; 00089 00090 #endif 00091 00095 typedef struct IRES_TILEDMEMORY_Obj *IRES_TILEDMEMORY_Handle; 00096 00102 typedef enum IRES_TILEDMEMORY_AccessDimension { 00103 IRES_TILEDMEMORY_1D = 0, 00104 IRES_TILEDMEMORY_2D = 1 00105 } IRES_TILEDMEMORY_AccessDimension; 00106 00107 00113 typedef enum IRES_TILEDMEMORY_AccessUnit { 00114 00115 IRES_TILEDMEMORY_RAW = 0, 00117 IRES_TILEDMEMORY_PAGE = 1, 00118 IRES_TILEDMEMORY_8BIT = 2, 00119 IRES_TILEDMEMORY_16BIT = 3, 00120 IRES_TILEDMEMORY_32BIT = 4 00122 } IRES_TILEDMEMORY_AccessUnit; 00123 00127 typedef struct IRES_TILEDMEMORY_ProtocolArgs { 00128 00129 IRES_ProtocolArgs base; 00130 00131 XDAS_UInt32 accessDimension; 00134 XDAS_UInt32 accessUnit; 00138 int sizeDim0; 00139 00141 int sizeDim1; 00142 00144 int alignment; 00145 00146 } IRES_TILEDMEMORY_ProtocolArgs; 00147 00153 typedef struct IRES_TILEDMEMORY_Obj { 00154 00155 IRES_Obj ires; 00156 XDAS_Void * info ; 00157 XDAS_Void * memoryBaseAddress; 00161 XDAS_UInt32 isTiledMemory; 00172 XDAS_UInt32 accessUnit; 00183 XDAS_Void * tilerBaseAddress; 00184 XDAS_Void * systemSpaceBaseAddress; 00188 } IRES_TILEDMEMORY_Obj; 00189 00193 typedef struct IRES_TILEDMEMORY_RegisterLayer { 00194 00195 int size; 00196 /* TBD */ 00197 } IRES_TILEDMEMORY_RegisterLayer; 00198 00202 typedef struct IRES_TILEDMEMORY_Properties { 00203 00204 int size; 00205 } IRES_TILEDMEMORY_Properties; 00206 00207 #ifdef __cplusplus 00208 } 00209 #endif /* extern "C" */ 00210 00213 #endif 00214 /* 00215 * @(#) ti.sdo.fc.ires.tiledmemory; 1, 0, 0,5; 8-10-2011 14:00:39; /db/atree/library/trees/fc/fc-o25/src/ xlibrary 00216 00217 */ 00218