ires_tiledmemory.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright 2013 by Texas Instruments Incorporated.
00003  *
00004  */
00005 
00006 /*
00007  * Copyright (c) 2012, Texas Instruments Incorporated
00008  * All rights reserved.
00009  *
00010  * Redistribution and use in source and binary forms, with or without
00011  * modification, are permitted provided that the following conditions
00012  * are met:
00013  *
00014  * *  Redistributions of source code must retain the above copyright
00015  *    notice, this list of conditions and the following disclaimer.
00016  *
00017  * *  Redistributions in binary form must reproduce the above copyright
00018  *    notice, this list of conditions and the following disclaimer in the
00019  *    documentation and/or other materials provided with the distribution.
00020  *
00021  * *  Neither the name of Texas Instruments Incorporated nor the names of
00022  *    its contributors may be used to endorse or promote products derived
00023  *    from this software without specific prior written permission.
00024  *
00025  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00026  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00027  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00028  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
00029  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00030  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00031  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
00032  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00033  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
00034  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
00035  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00036  *
00037  */
00053 #ifndef ti_sdo_fc_ires_tiledmemory_IRES_TILEDMEMORY_
00054 #define ti_sdo_fc_ires_tiledmemory_IRES_TILEDMEMORY_
00055 
00058 
00059 
00060 #ifdef __cplusplus
00061 extern "C" {
00062 #endif
00063 
00064 #include <ti/xdais/xdas.h>
00065 #include <ti/xdais/ires_common.h>
00066 #include <ti/xdais/ires.h>
00067 
00071 #define IRES_TILEDMEMORY_PROTOCOLNAME       "ti.sdo.fc.ires.tiledmemory"
00072 
00081 #define TILEDMEMORY_MODNAME  "ti.sdo.fc.ires.tiledmemory"
00082 
00083 /*
00084  * Note, we wrap the PROTOCOLVERSION in an ifdef so the
00085  * resource managers and algs get this version data placed in their object
00086  * files.  Apps, which include rman.h, will have this 'NOPROTOCOLREV' defined.
00087  */
00088 #ifndef ti_sdo_fc_ires_NOPROTOCOLREV
00089 
00093 static IRES_ProtocolRevision IRES_TILEDMEMORY_PROTOCOLREVISION = {1, 0, 0};
00094 
00095 #endif
00096 
00100 typedef struct IRES_TILEDMEMORY_Obj *IRES_TILEDMEMORY_Handle;
00101 
00107 typedef enum IRES_TILEDMEMORY_AccessDimension {
00108     IRES_TILEDMEMORY_1D = 0,
00109     IRES_TILEDMEMORY_2D = 1
00110 } IRES_TILEDMEMORY_AccessDimension;
00111 
00112 
00118 typedef enum IRES_TILEDMEMORY_AccessUnit {
00119 
00120     IRES_TILEDMEMORY_RAW = 0,                   
00122     IRES_TILEDMEMORY_PAGE = 1,                  
00123     IRES_TILEDMEMORY_8BIT = 2,                  
00124     IRES_TILEDMEMORY_16BIT = 3,                 
00125     IRES_TILEDMEMORY_32BIT = 4                  
00127 } IRES_TILEDMEMORY_AccessUnit;
00128 
00132 typedef struct IRES_TILEDMEMORY_ProtocolArgs {
00133 
00134     IRES_ProtocolArgs base;
00135 
00136     XDAS_UInt32 accessDimension;        
00139     XDAS_UInt32 accessUnit;             
00143     int sizeDim0;
00144 
00146     int sizeDim1;
00147 
00149     int alignment;
00150 
00151 } IRES_TILEDMEMORY_ProtocolArgs;
00152 
00158 typedef struct IRES_TILEDMEMORY_Obj {
00159 
00160     IRES_Obj ires;
00161     XDAS_Void * info ;                  
00162     XDAS_Void * memoryBaseAddress;      
00166     XDAS_UInt32 isTiledMemory;          
00177     XDAS_UInt32 accessUnit;             
00188     XDAS_Void * tilerBaseAddress;       
00189     XDAS_Void * systemSpaceBaseAddress; 
00193 } IRES_TILEDMEMORY_Obj;
00194 
00198 typedef struct IRES_TILEDMEMORY_RegisterLayer {
00199 
00200     int size;
00201     /* TBD */
00202 } IRES_TILEDMEMORY_RegisterLayer;
00203 
00207 typedef struct IRES_TILEDMEMORY_Properties {
00208 
00209     int size;
00210 } IRES_TILEDMEMORY_Properties;
00211 
00212 #ifdef __cplusplus
00213 }
00214 #endif /* extern "C" */
00215 
00218 #endif
00219 /*
00220  *  @(#) ti.sdo.fc.ires.tiledmemory; 1, 0, 0,1; 6-12-2013 19:57:46; /db/atree/library/trees/fc/fc-t09/src/ xlibrary
00221 
00222  */
00223 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2013, Texas Instruments Incorporated