Framework Components Application Programming Interface (API)
fc-t15
Main Page
Modules
Data Structures
Files
Related Pages
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
packages
ti
sdo
fc
ires
tiledmemory
ires_tiledmemory.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
*/
53
#ifndef ti_sdo_fc_ires_tiledmemory_IRES_TILEDMEMORY_
54
#define ti_sdo_fc_ires_tiledmemory_IRES_TILEDMEMORY_
55
58
59
60
#ifdef __cplusplus
61
extern
"C"
{
62
#endif
63
64
#include <
ti/xdais/xdas.h
>
65
#include <
ti/xdais/ires_common.h
>
66
#include <
ti/xdais/ires.h
>
67
71
#define IRES_TILEDMEMORY_PROTOCOLNAME "ti.sdo.fc.ires.tiledmemory"
72
81
#define TILEDMEMORY_MODNAME "ti.sdo.fc.ires.tiledmemory"
82
83
/*
84
* Note, we wrap the PROTOCOLVERSION in an ifdef so the
85
* resource managers and algs get this version data placed in their object
86
* files. Apps, which include rman.h, will have this 'NOPROTOCOLREV' defined.
87
*/
88
#ifndef ti_sdo_fc_ires_NOPROTOCOLREV
89
93
static
IRES_ProtocolRevision
IRES_TILEDMEMORY_PROTOCOLREVISION = {1, 0, 0};
94
95
#endif
96
100
typedef
struct
IRES_TILEDMEMORY_Obj
*
IRES_TILEDMEMORY_Handle
;
101
107
typedef
enum
IRES_TILEDMEMORY_AccessDimension
{
108
IRES_TILEDMEMORY_1D
= 0,
109
IRES_TILEDMEMORY_2D
= 1
110
}
IRES_TILEDMEMORY_AccessDimension
;
111
112
118
typedef
enum
IRES_TILEDMEMORY_AccessUnit
{
119
120
IRES_TILEDMEMORY_RAW
= 0,
122
IRES_TILEDMEMORY_PAGE
= 1,
123
IRES_TILEDMEMORY_8BIT
= 2,
124
IRES_TILEDMEMORY_16BIT
= 3,
125
IRES_TILEDMEMORY_32BIT
= 4
127
}
IRES_TILEDMEMORY_AccessUnit
;
128
132
typedef
struct
IRES_TILEDMEMORY_ProtocolArgs
{
133
134
IRES_ProtocolArgs
base
;
135
136
XDAS_UInt32
accessDimension
;
139
XDAS_UInt32
accessUnit
;
143
int
sizeDim0
;
144
146
int
sizeDim1
;
147
149
int
alignment
;
150
151
}
IRES_TILEDMEMORY_ProtocolArgs
;
152
158
typedef
struct
IRES_TILEDMEMORY_Obj
{
159
160
IRES_Obj
ires
;
161
XDAS_Void
*
info
;
162
XDAS_Void
*
memoryBaseAddress
;
166
XDAS_UInt32
isTiledMemory
;
177
XDAS_UInt32
accessUnit
;
188
XDAS_Void
*
tilerBaseAddress
;
189
XDAS_Void
*
systemSpaceBaseAddress
;
193
}
IRES_TILEDMEMORY_Obj
;
194
198
typedef
struct
IRES_TILEDMEMORY_RegisterLayer
{
199
200
int
size
;
201
/* TBD */
202
}
IRES_TILEDMEMORY_RegisterLayer
;
203
207
typedef
struct
IRES_TILEDMEMORY_Properties
{
208
209
int
size
;
210
}
IRES_TILEDMEMORY_Properties
;
211
212
#ifdef __cplusplus
213
}
214
#endif
/* extern "C" */
215
218
#endif
219
/*
220
* @(#) ti.sdo.fc.ires.tiledmemory; 1, 0, 0,; 10-29-2013 18:39:10; /db/atree/library/trees/fc/fc-t15/src/ xlibrary
221
222
*/
223
Copyright 2013, Texas Instruments Incorporated