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
vicp
ires_vicp.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_vicp_IRES_VICP_
54
#define ti_sdo_fc_ires_vicp_IRES_VICP_
55
58
59
60
#ifdef __cplusplus
61
extern
"C"
{
62
#endif
63
64
#include <
ti/xdais/ires_common.h
>
65
66
/*
67
* @brief Maximum number of VICP resources(components) to be managed
68
*/
69
#define IRES_VICP_MAXRESOURCES 1
70
74
#define IRES_VICP_PROTOCOLNAME "ti.sdo.fc.ires.vicp"
75
84
#define VICP_MODNAME "ti.sdo.fc.ires.vicp"
85
86
/*
87
* Note, we wrap the PROTOCOLVERSION in an ifdef so the
88
* resource managers and algs get this version data placed in their object
89
* files. Apps, which include rman.h, will have this 'NOPROTOCOLREV' defined.
90
*/
91
#ifndef ti_sdo_fc_ires_NOPROTOCOLREV
92
96
static
IRES_ProtocolRevision
IRES_VICP_PROTOCOLREVISION = {1, 0, 0};
97
98
#endif
99
103
typedef
struct
IRES_VICP_Obj
*
IRES_VICP_Handle
;
104
108
typedef
struct
IRES_VICP_ProtocolArgs
{
109
110
int
size
;
111
IRES_RequestMode
mode
;
/* persistent or scratch resource requested */
112
short
requestIMX
;
/* value of 1 to indicate resource requested,
113
0 otherwise */
114
short
requestVLCD
;
115
short
requestSEQ
;
116
117
}
IRES_VICP_ProtocolArgs
;
118
124
typedef
struct
IRES_VICP_Obj
{
125
126
IRES_Obj
ires
;
127
short
assignedIMX
;
128
short
assignedVLCD
;
129
short
assignedSEQ
;
130
131
}
IRES_VICP_Obj
;
132
133
134
/*
135
* @brief VICP Register Layout
136
*/
137
typedef
struct
IRES_VICP_Registers
{
138
139
int
size
;
141
unsigned
char
*
vicp_umap1_base
;
142
unsigned
char
*
vicp_cfg_base
;
143
144
unsigned
char
*
imgBuf_base
;
145
unsigned
char
*
imgBufA_base
;
146
unsigned
char
*
imgBufB_base
;
147
unsigned
char
*
imxCoeffBuff_base
;
148
unsigned
char
*
imxCmdBuf_base
;
149
unsigned
char
*
vlcdDataBuf_base
;
150
unsigned
char
*
qiqBuf_base
;
151
unsigned
char
*
vlcdBuf_base
;
152
unsigned
char
*
seqProgMem_base
;
153
unsigned
char
*
seqDataMem_base
;
154
155
unsigned
int
imgBuf_length
;
156
unsigned
int
imgBufA_length
;
157
unsigned
int
imgBufB_length
;
158
unsigned
int
imxCoeffBuff_length
;
159
unsigned
int
imxCmdBuf_length
;
160
unsigned
int
vlcdDataBuf_length
;
161
unsigned
int
qiqBuf_length
;
162
unsigned
int
vlcdBuf_length
;
163
unsigned
int
seqProgMem_length
;
164
unsigned
int
seqDataMem_length
;
165
166
/* . . . */
167
168
}
IRES_VICP_Registers
;
169
170
171
/*
172
* @brief Static Resource Properties
173
*/
174
typedef
struct
IRES_VICP_Properties
{
175
176
int
size
;
177
178
IRES_VICP_Registers
*
globalRegs
;
179
180
}
IRES_VICP_Properties
;
181
182
183
#ifdef __cplusplus
184
}
185
#endif
/* extern "C" */
186
187
190
#endif
191
/*
192
* @(#) ti.sdo.fc.ires.vicp; 1, 0, 1,; 10-29-2013 18:39:13; /db/atree/library/trees/fc/fc-t15/src/ xlibrary
193
194
*/
195
Copyright 2013, Texas Instruments Incorporated