Framework Components Application Programming Interface (API)
fc-u06
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 (c) 2012, Texas Instruments Incorporated
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* * Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
*
12
* * Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
*
16
* * Neither the name of Texas Instruments Incorporated nor the names of
17
* its contributors may be used to endorse or promote products derived
18
* from this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*
32
*/
48
#ifndef ti_sdo_fc_ires_tiledmemory_IRES_TILEDMEMORY_
49
#define ti_sdo_fc_ires_tiledmemory_IRES_TILEDMEMORY_
50
53
54
55
#ifdef __cplusplus
56
extern
"C"
{
57
#endif
58
59
#include <
ti/xdais/xdas.h
>
60
#include <
ti/xdais/ires_common.h
>
61
#include <
ti/xdais/ires.h
>
62
66
#define IRES_TILEDMEMORY_PROTOCOLNAME "ti.sdo.fc.ires.tiledmemory"
67
76
#define TILEDMEMORY_MODNAME "ti.sdo.fc.ires.tiledmemory"
77
78
/*
79
* Note, we wrap the PROTOCOLVERSION in an ifdef so the
80
* resource managers and algs get this version data placed in their object
81
* files. Apps, which include rman.h, will have this 'NOPROTOCOLREV' defined.
82
*/
83
#ifndef ti_sdo_fc_ires_NOPROTOCOLREV
84
88
static
IRES_ProtocolRevision
IRES_TILEDMEMORY_PROTOCOLREVISION = {1, 0, 0};
89
90
#endif
91
95
typedef
struct
IRES_TILEDMEMORY_Obj
*
IRES_TILEDMEMORY_Handle
;
96
102
typedef
enum
IRES_TILEDMEMORY_AccessDimension
{
103
IRES_TILEDMEMORY_1D
= 0,
104
IRES_TILEDMEMORY_2D
= 1
105
}
IRES_TILEDMEMORY_AccessDimension
;
106
107
113
typedef
enum
IRES_TILEDMEMORY_AccessUnit
{
114
115
IRES_TILEDMEMORY_RAW
= 0,
117
IRES_TILEDMEMORY_PAGE
= 1,
118
IRES_TILEDMEMORY_8BIT
= 2,
119
IRES_TILEDMEMORY_16BIT
= 3,
120
IRES_TILEDMEMORY_32BIT
= 4
122
}
IRES_TILEDMEMORY_AccessUnit
;
123
127
typedef
struct
IRES_TILEDMEMORY_ProtocolArgs
{
128
129
IRES_ProtocolArgs
base
;
130
131
XDAS_UInt32
accessDimension
;
134
XDAS_UInt32
accessUnit
;
138
int
sizeDim0
;
139
141
int
sizeDim1
;
142
144
int
alignment
;
145
146
}
IRES_TILEDMEMORY_ProtocolArgs
;
147
153
typedef
struct
IRES_TILEDMEMORY_Obj
{
154
155
IRES_Obj
ires
;
156
XDAS_Void
*
info
;
157
XDAS_Void
*
memoryBaseAddress
;
161
XDAS_UInt32
isTiledMemory
;
172
XDAS_UInt32
accessUnit
;
183
XDAS_Void
*
tilerBaseAddress
;
184
XDAS_Void
*
systemSpaceBaseAddress
;
188
}
IRES_TILEDMEMORY_Obj
;
189
193
typedef
struct
IRES_TILEDMEMORY_RegisterLayer
{
194
195
int
size
;
196
/* TBD */
197
}
IRES_TILEDMEMORY_RegisterLayer
;
198
202
typedef
struct
IRES_TILEDMEMORY_Properties
{
203
204
int
size
;
205
}
IRES_TILEDMEMORY_Properties
;
206
207
#ifdef __cplusplus
208
}
209
#endif
/* extern "C" */
210
213
#endif
Copyright 2014, Texas Instruments Incorporated