diff options
-rw-r--r-- | README | 14 | ||||
-rw-r--r-- | packages/framework_components/ti/sdo/fc/ires/hdvicp/ires_hdvicp2.h | 242 | ||||
-rw-r--r-- | packages/xdctools/xdc/std.h | 34 |
3 files changed, 148 insertions, 142 deletions
@@ -411,17 +411,17 @@ If (BUILDOS_LINUX) { | |||
411 | ************ Version Info of Headers included in packages folder *********** | 411 | ************ Version Info of Headers included in packages folder *********** |
412 | ******** Version might not match due to no change in the interfaces ******** | 412 | ******** Version might not match due to no change in the interfaces ******** |
413 | Tools: | 413 | Tools: |
414 | XDC version : xdctools_3_30_06_67_core | 414 | XDC version : xdctools_3_50_03_33_core |
415 | CE version : codec_engine_3_24_00_08 | 415 | CE version : codec_engine_3_24_00_08 |
416 | XDAIS version: xdais_7_24_00_04 | 416 | XDAIS version: xdais_7_24_00_04 |
417 | FC version: framework_components_3_40_01_04 | 417 | FC version: framework_components_3_40_02_07 |
418 | 418 | ||
419 | IVAHD_Codecs: | 419 | IVAHD_Codecs: |
420 | H.264 Enc : 02.00.09.01 | 420 | H.264 Enc : 02.00.09.01 |
421 | MPEG-4 Enc : 01.00.02.01 | 421 | MPEG-4 Enc : 01.00.02.01 |
422 | H.264 Dec : 02.00.17.01 | ||
423 | MPEG-4 Dec : 01.00.15.01 | ||
424 | MPEG-2 Dec : 01.00.14.01 | ||
425 | VC-1 Dec : 01.00.02.00 | ||
426 | MJPEG Dec : 01.00.13.01 | ||
427 | MJPEG Enc : 01.00.17.01 | 422 | MJPEG Enc : 01.00.17.01 |
423 | H.264 Dec : 02.00.21.01 | ||
424 | MPEG-4 Dec : 01.00.15.01 | ||
425 | MPEG-2 Dec : 01.00.17.01 | ||
426 | VC-1 Dec : 01.00.02.05 | ||
427 | MJPEG Dec : 01.00.16.01 | ||
diff --git a/packages/framework_components/ti/sdo/fc/ires/hdvicp/ires_hdvicp2.h b/packages/framework_components/ti/sdo/fc/ires/hdvicp/ires_hdvicp2.h index c2b0ada..f3e863d 100644 --- a/packages/framework_components/ti/sdo/fc/ires/hdvicp/ires_hdvicp2.h +++ b/packages/framework_components/ti/sdo/fc/ires/hdvicp/ires_hdvicp2.h | |||
@@ -1,9 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright 2013 by Texas Instruments Incorporated. | ||
3 | * | ||
4 | */ | ||
5 | |||
6 | /* | ||
7 | * Copyright (c) 2012 - 2013, Texas Instruments Incorporated | 2 | * Copyright (c) 2012 - 2013, Texas Instruments Incorporated |
8 | * All rights reserved. | 3 | * All rights reserved. |
9 | * | 4 | * |
@@ -137,7 +132,7 @@ extern "C" { | |||
137 | /** | 132 | /** |
138 | * @brief Protocol Revision for this resource | 133 | * @brief Protocol Revision for this resource |
139 | */ | 134 | */ |
140 | static IRES_ProtocolRevision IRES_HDVICP2_PROTOCOLREVISION = { 1, 0, 0 }; | 135 | static IRES_ProtocolRevision IRES_HDVICP2_PROTOCOLREVISION = {1, 0, 0}; |
141 | 136 | ||
142 | #endif | 137 | #endif |
143 | 138 | ||
@@ -151,20 +146,20 @@ typedef struct IRES_HDVICP2_Obj *IRES_HDVICP2_Handle; | |||
151 | * @brief Timeout value to be used by implementation of | 146 | * @brief Timeout value to be used by implementation of |
152 | * IRES_HDVICP2_Handle:wait function | 147 | * IRES_HDVICP2_Handle:wait function |
153 | */ | 148 | */ |
154 | extern unsigned int ti_sdo_fc_ires_hdvicp_HDVICP2_timeoutVal; | 149 | extern unsigned int ti_sdo_fc_ires_hdvicp_HDVICP2_timeoutVal; |
155 | 150 | ||
156 | /** | 151 | /** |
157 | * @brief | 152 | * @brief |
158 | */ | 153 | */ |
159 | typedef IRES_YieldArgs (*ti_sdo_fc_ires_hdvicp_HDVICP2_GetYieldArgsFxn) | 154 | typedef IRES_YieldArgs (* ti_sdo_fc_ires_hdvicp_HDVICP2_GetYieldArgsFxn) |
160 | (Int scratchId); | 155 | (Int scratchId); |
161 | 156 | ||
162 | /** | 157 | /** |
163 | * @brief | 158 | * @brief |
164 | */ | 159 | */ |
165 | typedef Void (*ti_sdo_fc_ires_hdvicp_HDVICP2_YieldFxn) | 160 | typedef Void (* ti_sdo_fc_ires_hdvicp_HDVICP2_YieldFxn) |
166 | (IRES_YieldResourceType resource, IRES_YieldContextHandle ctxt, | 161 | (IRES_YieldResourceType resource, IRES_YieldContextHandle ctxt, |
167 | IRES_YieldArgs args); | 162 | IRES_YieldArgs args); |
168 | 163 | ||
169 | 164 | ||
170 | 165 | ||
@@ -174,7 +169,7 @@ typedef Void (*ti_sdo_fc_ires_hdvicp_HDVICP2_YieldFxn) | |||
174 | typedef struct IRES_HDVICP2_ProtocolArgs { | 169 | typedef struct IRES_HDVICP2_ProtocolArgs { |
175 | 170 | ||
176 | IRES_ProtocolArgs base; /**< Base protocol Args */ | 171 | IRES_ProtocolArgs base; /**< Base protocol Args */ |
177 | XDAS_Int32 id; /**< HDVICP2 resource being requested. | 172 | XDAS_Int32 id; /**< HDVICP2 resource being requested. |
178 | * | 173 | * |
179 | * @remarks Could be 0, 1, 2, | 174 | * @remarks Could be 0, 1, 2, |
180 | * IRES_HDVICP2_ID_ANY or | 175 | * IRES_HDVICP2_ID_ANY or |
@@ -186,7 +181,7 @@ typedef struct IRES_HDVICP2_ProtocolArgs { | |||
186 | * @brief Callback function signature, used by the IRES_HDVICP2_ | 181 | * @brief Callback function signature, used by the IRES_HDVICP2_ |
187 | * Handle's configure function | 182 | * Handle's configure function |
188 | */ | 183 | */ |
189 | typedef void (*IRES_HDVICP2_CallbackFxn)(IALG_Handle handle, Void *args); | 184 | typedef void (*IRES_HDVICP2_CallbackFxn)(IALG_Handle handle, Void * args); |
190 | 185 | ||
191 | /** | 186 | /** |
192 | * @brief Describes the status/history of the HDVICP2 unit that is | 187 | * @brief Describes the status/history of the HDVICP2 unit that is |
@@ -211,8 +206,8 @@ typedef enum IRES_HDVICP2_Status { | |||
211 | */ | 206 | */ |
212 | typedef struct IRES_HDVICP2_Obj { | 207 | typedef struct IRES_HDVICP2_Obj { |
213 | 208 | ||
214 | IRES_Obj ires; /**< Base IRES_Obj struct */ | 209 | IRES_Obj ires; /**< Base IRES_Obj struct */ |
215 | Void *info; /**< Reserved for future use */ | 210 | Void *info; /**< Reserved for future use */ |
216 | XDAS_Int32 id; /**< HDVICP2 id granted | 211 | XDAS_Int32 id; /**< HDVICP2 id granted |
217 | * | 212 | * |
218 | * @remark Could be 0, 1, 2, or | 213 | * @remark Could be 0, 1, 2, or |
@@ -230,114 +225,114 @@ typedef struct IRES_HDVICP2_Obj { | |||
230 | * bit 1 -> ICONT2 reset | 225 | * bit 1 -> ICONT2 reset |
231 | */ | 226 | */ |
232 | 227 | ||
233 | /** | 228 | /** |
234 | * @brief Acquire the HDVICP2 resource. | 229 | * @brief Acquire the HDVICP2 resource. |
235 | * | 230 | * |
236 | * @remarks This call acquires the HDVICP resource which the alg may | 231 | * @remarks This call acquires the HDVICP resource which the alg may |
237 | * (or may not) have specifically requested. | 232 | * (or may not) have specifically requested. |
238 | * | 233 | * |
239 | * @remarks The returned @c hdvicp2Status indicates the status of | 234 | * @remarks The returned @c hdvicp2Status indicates the status of |
240 | * the particular HDVICP2 unit that is returned. | 235 | * the particular HDVICP2 unit that is returned. |
241 | * @sa IRES_HDVICP2_Status | 236 | * @sa IRES_HDVICP2_Status |
242 | * | 237 | * |
243 | * @remarks The @c configurationId argument is a codec specified | 238 | * @remarks The @c configurationId argument is a codec specified |
244 | * parameter that is both an input and output parameter. It | 239 | * parameter that is both an input and output parameter. It |
245 | * specifies the mode in which this particular HDVICP2 was | 240 | * specifies the mode in which this particular HDVICP2 was |
246 | * used last time, and the mode in which it will be | 241 | * used last time, and the mode in which it will be |
247 | * used this time. | 242 | * used this time. |
248 | * | 243 | * |
249 | * @remarks This API takes a @c yieldContext as argument, as it may | 244 | * @remarks This API takes a @c yieldContext as argument, as it may |
250 | * yield the processor to higher priority codecs in the | 245 | * yield the processor to higher priority codecs in the |
251 | * system. | 246 | * system. |
252 | * | 247 | * |
253 | * @remarks @c lateAcquireId is an optionally framework supplied | 248 | * @remarks @c lateAcquireId is an optionally framework supplied |
254 | * parameter (sometimes provided via an XDM control() call | 249 | * parameter (sometimes provided via an XDM control() call |
255 | * setting the XDM_SETLATEACQUIREARG. If not supplied, the | 250 | * setting the XDM_SETLATEACQUIREARG. If not supplied, the |
256 | * codec should pass the value | 251 | * codec should pass the value |
257 | * #IRES_HDVICP2_UNKNOWNLATEACQUIREARG. | 252 | * #IRES_HDVICP2_UNKNOWNLATEACQUIREARG. |
258 | * | 253 | * |
259 | * @sa IRES_HDVICP2_UNKNOWNLATEACQUIREARG | 254 | * @sa IRES_HDVICP2_UNKNOWNLATEACQUIREARG |
260 | */ | 255 | */ |
261 | XDAS_Void (*acquire)(IALG_Handle algHandle, | 256 | XDAS_Void (*acquire)(IALG_Handle algHandle, |
262 | struct IRES_HDVICP2_Obj *hdvicpHandle, | 257 | struct IRES_HDVICP2_Obj * hdvicpHandle, |
263 | IRES_YieldContext *yieldCtxt, XDAS_UInt32 *hdvicp2Status, | 258 | IRES_YieldContext * yieldCtxt, XDAS_UInt32 * hdvicp2Status, |
264 | XDAS_UInt32 *configurationId, XDAS_Int32 lateAcquireArg); | 259 | XDAS_UInt32 *configurationId, XDAS_Int32 lateAcquireArg); |
265 | 260 | ||
266 | /** | 261 | /** |
267 | * @brief Release the HDVICP2 resource. | 262 | * @brief Release the HDVICP2 resource. |
268 | * | 263 | * |
269 | * @remarks This makes the resource available for use by other algorithms. | 264 | * @remarks This makes the resource available for use by other algorithms. |
270 | */ | 265 | */ |
271 | XDAS_Void (*release)(IALG_Handle algHandle, | 266 | XDAS_Void (*release)(IALG_Handle algHandle, |
272 | struct IRES_HDVICP2_Obj *hdvicpHandle); | 267 | struct IRES_HDVICP2_Obj * hdvicpHandle); |
273 | 268 | ||
274 | /** | 269 | /** |
275 | * @brief Reacquire the HDVICP2 resource recent released. | 270 | * @brief Reacquire the HDVICP2 resource recent released. |
276 | * | 271 | * |
277 | * @returns XDAS_TRUE The resource was not yet acquired by another | 272 | * @returns XDAS_TRUE The resource was not yet acquired by another |
278 | * algorithm, and the resource handle is still | 273 | * algorithm, and the resource handle is still |
279 | * valid. | 274 | * valid. |
280 | * @returns XDAS_FALSE The resource is no longer available and has been | 275 | * @returns XDAS_FALSE The resource is no longer available and has been |
281 | * deactivated. | 276 | * deactivated. |
282 | */ | 277 | */ |
283 | XDAS_UInt32 (*reacquireIfOwner)(IALG_Handle algHandle, | 278 | XDAS_UInt32 (*reacquireIfOwner)(IALG_Handle algHandle, |
284 | struct IRES_HDVICP2_Obj *hdvicpHandle); | 279 | struct IRES_HDVICP2_Obj * hdvicpHandle); |
285 | 280 | ||
286 | /** | 281 | /** |
287 | * @brief Register a callback function with a HDVICP2 instance. | 282 | * @brief Register a callback function with a HDVICP2 instance. |
288 | * | 283 | * |
289 | * @remarks The callback is invoked when an interrupt fires after | 284 | * @remarks The callback is invoked when an interrupt fires after |
290 | * processing data. | 285 | * processing data. |
291 | * | 286 | * |
292 | * @remarks It is the algorithm's responsibility to configure the HDVICP2 | 287 | * @remarks It is the algorithm's responsibility to configure the HDVICP2 |
293 | * to process data and fire the interrupt when done. | 288 | * to process data and fire the interrupt when done. |
294 | */ | 289 | */ |
295 | XDAS_Void (*configure)(IALG_Handle algHandle, | 290 | XDAS_Void (*configure)(IALG_Handle algHandle, |
296 | struct IRES_HDVICP2_Obj *hdvicpHandle, | 291 | struct IRES_HDVICP2_Obj * hdvicpHandle, |
297 | IRES_HDVICP2_CallbackFxn cbFunctionPtr, XDAS_Void *cbArgs); | 292 | IRES_HDVICP2_CallbackFxn cbFunctionPtr, XDAS_Void * cbArgs); |
298 | 293 | ||
299 | /** | 294 | /** |
300 | * @brief Wait until the HDVICP2 is done processing and then return. | 295 | * @brief Wait until the HDVICP2 is done processing and then return. |
301 | * | 296 | * |
302 | * @remarks This is a blocking call, unless a positive timeout value | 297 | * @remarks This is a blocking call, unless a positive timeout value |
303 | * is configured, inwhich case the call returns after timeout. | 298 | * is configured, inwhich case the call returns after timeout. |
304 | * | 299 | * |
305 | * @remarks This function is passed a yieldContext, and will relinquish | 300 | * @remarks This function is passed a yieldContext, and will relinquish |
306 | * the processor while it waits for the HDVICP2 to finish the | 301 | * the processor while it waits for the HDVICP2 to finish the |
307 | * processing and return from wait. | 302 | * processing and return from wait. |
308 | * | 303 | * |
309 | * @returns XDAS_TRUE Success | 304 | * @returns XDAS_TRUE Success |
310 | * @returns XDAS_FALSE Failure/Timeout | 305 | * @returns XDAS_FALSE Failure/Timeout |
311 | */ | 306 | */ |
312 | XDAS_UInt32 (*wait)(IALG_Handle algHandle, | 307 | XDAS_UInt32 (*wait)(IALG_Handle algHandle, |
313 | struct IRES_HDVICP2_Obj *hdvicpHandle, | 308 | struct IRES_HDVICP2_Obj *hdvicpHandle, |
314 | IRES_YieldContext *yieldCtxt); | 309 | IRES_YieldContext * yieldCtxt); |
315 | 310 | ||
316 | /** | 311 | /** |
317 | * @brief Processing has completed. | 312 | * @brief Processing has completed. |
318 | * | 313 | * |
319 | * @remarks This is called from within the interrupt handler function when | 314 | * @remarks This is called from within the interrupt handler function when |
320 | * processing completes, and is used to unblock the wait() API. | 315 | * processing completes, and is used to unblock the wait() API. |
321 | * | 316 | * |
322 | * @remarks Typically, this is called from within the algortihm's callback | 317 | * @remarks Typically, this is called from within the algortihm's callback |
323 | * function (see acquire() call). | 318 | * function (see acquire() call). |
324 | */ | 319 | */ |
325 | XDAS_Void (*done)(IALG_Handle algHandle, | 320 | XDAS_Void (*done) (IALG_Handle algHandle, |
326 | struct IRES_HDVICP2_Obj *hdvicpHandle); | 321 | struct IRES_HDVICP2_Obj *hdvicpHandle); |
327 | /** | 322 | /** |
328 | * @brief Reset the HDVICP2. | 323 | * @brief Reset the HDVICP2. |
329 | * | 324 | * |
330 | * @remarks This can be called by the algorithm to "reset" the HDVICP2, and | 325 | * @remarks This can be called by the algorithm to "reset" the HDVICP2, and |
331 | * is usually called when an acquired HDVICP2 is "dirty", i.e, it | 326 | * is usually called when an acquired HDVICP2 is "dirty", i.e, it |
332 | * requires both program/data reload. | 327 | * requires both program/data reload. |
333 | * | 328 | * |
334 | * @remarks It works off a configured maximum reset cycle delay. | 329 | * @remarks It works off a configured maximum reset cycle delay. |
335 | * | 330 | * |
336 | * @returns XDAS_TRUE Success | 331 | * @returns XDAS_TRUE Success |
337 | * @returns XDAS_FALSE Failure | 332 | * @returns XDAS_FALSE Failure |
338 | */ | 333 | */ |
339 | XDAS_UInt32 (*reset)(IALG_Handle algHandle, | 334 | XDAS_UInt32 (*reset)(IALG_Handle algHandle, |
340 | struct IRES_HDVICP2_Obj *hdvicpHandle); | 335 | struct IRES_HDVICP2_Obj *hdvicpHandle); |
341 | 336 | ||
342 | } IRES_HDVICP2_Obj; | 337 | } IRES_HDVICP2_Obj; |
343 | 338 | ||
@@ -356,15 +351,15 @@ typedef struct IRES_HDVICP2_RegisterLayer { | |||
356 | */ | 351 | */ |
357 | typedef struct IRES_HDVICP2_Properties { | 352 | typedef struct IRES_HDVICP2_Properties { |
358 | 353 | ||
359 | int size; | 354 | int size; |
360 | IRES_HDVICP2_RegisterLayer *globalRegs; /* Register layer of HDVICP2 */ | 355 | IRES_HDVICP2_RegisterLayer *globalRegs; /* Register layer of HDVICP2 */ |
361 | } IRES_HDVICP2_Properties; | 356 | } IRES_HDVICP2_Properties; |
362 | 357 | ||
363 | typedef IRES_Status (*ti_sdo_fc_ires_hdvicp_HDVICP2_GetHdvicp2Fxn) | 358 | typedef IRES_Status (*ti_sdo_fc_ires_hdvicp_HDVICP2_GetHdvicp2Fxn) |
364 | (XDAS_Int32 *Id, IALG_Handle alg, IRES_HDVICP2_Handle handle); | 359 | (XDAS_Int32 *Id, IALG_Handle alg, IRES_HDVICP2_Handle handle); |
365 | 360 | ||
366 | typedef IRES_Status (*ti_sdo_fc_ires_hdvicp_HDVICP2_FreeHdvicp2Fxn) | 361 | typedef IRES_Status (*ti_sdo_fc_ires_hdvicp_HDVICP2_FreeHdvicp2Fxn) |
367 | (XDAS_Int32 Id, IALG_Handle alg, IRES_HDVICP2_Handle handle); | 362 | (XDAS_Int32 Id, IALG_Handle alg, IRES_HDVICP2_Handle handle); |
368 | 363 | ||
369 | #ifdef __cplusplus | 364 | #ifdef __cplusplus |
370 | } | 365 | } |
@@ -373,8 +368,3 @@ typedef IRES_Status (*ti_sdo_fc_ires_hdvicp_HDVICP2_FreeHdvicp2Fxn) | |||
373 | /*@}*/ | 368 | /*@}*/ |
374 | 369 | ||
375 | #endif | 370 | #endif |
376 | /* | ||
377 | * @(#) ti.sdo.fc.ires.hdvicp; 1, 0, 1,1; 6-12-2013 19:57:33; /db/atree/library/trees/fc/fc-t09/src/ xlibrary | ||
378 | |||
379 | */ | ||
380 | |||
diff --git a/packages/xdctools/xdc/std.h b/packages/xdctools/xdc/std.h index 848c527..e743765 100644 --- a/packages/xdctools/xdc/std.h +++ b/packages/xdctools/xdc/std.h | |||
@@ -1,10 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2008 Texas Instruments. All rights reserved. | 2 | * Copyright (c) 2008-2016 Texas Instruments. All rights reserved. |
3 | * This program and the accompanying materials are made available under the | 3 | * This program and the accompanying materials are made available under the |
4 | * terms of the Eclipse Public License v1.0 and Eclipse Distribution License | 4 | * terms of the Eclipse Public License v1.0 and Eclipse Distribution License |
5 | * v. 1.0 which accompanies this distribution. The Eclipse Public License is | 5 | * v. 1.0 which accompanies this distribution. The Eclipse Public License is |
6 | * available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse | 6 | * available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse |
7 | * Distribution License is available at | 7 | * Distribution License is available at |
8 | * http://www.eclipse.org/org/documents/edl-v10.php. | 8 | * http://www.eclipse.org/org/documents/edl-v10.php. |
9 | * | 9 | * |
10 | * Contributors: | 10 | * Contributors: |
@@ -60,6 +60,7 @@ typedef const char *xdc_CString; /* null terminated immutable string */ | |||
60 | #ifdef __GNUC__ | 60 | #ifdef __GNUC__ |
61 | #if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 6)) | 61 | #if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 6)) |
62 | #pragma GCC diagnostic push | 62 | #pragma GCC diagnostic push |
63 | #pragma GCC diagnostic ignored "-Wpragmas" | ||
63 | #pragma GCC diagnostic ignored "-Wstrict-prototypes" | 64 | #pragma GCC diagnostic ignored "-Wstrict-prototypes" |
64 | typedef int (*xdc_Fxn)(); /* function pointer */ | 65 | typedef int (*xdc_Fxn)(); /* function pointer */ |
65 | #pragma GCC diagnostic pop | 66 | #pragma GCC diagnostic pop |
@@ -84,6 +85,10 @@ typedef const char *xdc_CString; /* null terminated immutable string */ | |||
84 | */ | 85 | */ |
85 | #ifdef __TI_COMPILER_VERSION__ | 86 | #ifdef __TI_COMPILER_VERSION__ |
86 | #include <ti/targets/select.h> | 87 | #include <ti/targets/select.h> |
88 | #elif defined(__IAR_SYSTEMS_ICC__) | ||
89 | #include <iar/targets/select.h> | ||
90 | #elif defined(__GNUC__) | ||
91 | #include <gnu/targets/select.h> | ||
87 | #else | 92 | #else |
88 | /* | 93 | /* |
89 | * 'xdc_target_types__' must be defined to name a target-specific header | 94 | * 'xdc_target_types__' must be defined to name a target-specific header |
@@ -111,7 +116,7 @@ typedef unsigned int xdc_UInt32; | |||
111 | #endif | 116 | #endif |
112 | #endif | 117 | #endif |
113 | 118 | ||
114 | /* Each modules' internal header file defines 'module' as | 119 | /* Each modules' internal header file defines 'module' as |
115 | * xdc__MODOBJADDR__(Module__state__V), where Module__state__V is the actual | 120 | * xdc__MODOBJADDR__(Module__state__V), where Module__state__V is the actual |
116 | * object where the module state is kept. For most targets, the default macro | 121 | * object where the module state is kept. For most targets, the default macro |
117 | * given here results in the construct '(&Module__state__V)->field', when the | 122 | * given here results in the construct '(&Module__state__V)->field', when the |
@@ -152,11 +157,17 @@ typedef unsigned long xdc_ULLong; | |||
152 | * for example. | 157 | * for example. |
153 | */ | 158 | */ |
154 | #ifndef xdc__ARGTOPTR | 159 | #ifndef xdc__ARGTOPTR |
160 | static xdc_Ptr xdc_iargToPtr(xdc_IArg a); | ||
161 | static xdc_Ptr xdc_uargToPtr(xdc_UArg a); | ||
162 | |||
155 | static inline xdc_Ptr xdc_iargToPtr(xdc_IArg a) { return ((xdc_Ptr)a); } | 163 | static inline xdc_Ptr xdc_iargToPtr(xdc_IArg a) { return ((xdc_Ptr)a); } |
156 | static inline xdc_Ptr xdc_uargToPtr(xdc_UArg a) { return ((xdc_Ptr)a); } | 164 | static inline xdc_Ptr xdc_uargToPtr(xdc_UArg a) { return ((xdc_Ptr)a); } |
157 | #endif | 165 | #endif |
158 | 166 | ||
159 | #ifndef xdc__ARGTOFXN | 167 | #ifndef xdc__ARGTOFXN |
168 | static xdc_Fxn xdc_iargToFxn(xdc_IArg a); | ||
169 | static xdc_Fxn xdc_uargToFxn(xdc_UArg a); | ||
170 | |||
160 | static inline xdc_Fxn xdc_iargToFxn(xdc_IArg a) { return ((xdc_Fxn)a); } | 171 | static inline xdc_Fxn xdc_iargToFxn(xdc_IArg a) { return ((xdc_Fxn)a); } |
161 | static inline xdc_Fxn xdc_uargToFxn(xdc_UArg a) { return ((xdc_Fxn)a); } | 172 | static inline xdc_Fxn xdc_uargToFxn(xdc_UArg a) { return ((xdc_Fxn)a); } |
162 | #endif | 173 | #endif |
@@ -165,7 +176,7 @@ static inline xdc_Fxn xdc_uargToFxn(xdc_UArg a) { return ((xdc_Fxn)a); } | |||
165 | /* | 176 | /* |
166 | * functions to efficiently convert a single precision float to an IArg | 177 | * functions to efficiently convert a single precision float to an IArg |
167 | * and vice-versa while maintaining client type safety | 178 | * and vice-versa while maintaining client type safety |
168 | * | 179 | * |
169 | * Here the assumption is that sizeof(Float) <= sizeof(IArg); | 180 | * Here the assumption is that sizeof(Float) <= sizeof(IArg); |
170 | */ | 181 | */ |
171 | typedef union { | 182 | typedef union { |
@@ -173,6 +184,7 @@ typedef union { | |||
173 | xdc_IArg a; | 184 | xdc_IArg a; |
174 | } xdc_FloatData; | 185 | } xdc_FloatData; |
175 | 186 | ||
187 | static xdc_IArg xdc_floatToArg(xdc_Float f); | ||
176 | static inline xdc_IArg xdc_floatToArg(xdc_Float f) | 188 | static inline xdc_IArg xdc_floatToArg(xdc_Float f) |
177 | { | 189 | { |
178 | xdc_FloatData u; | 190 | xdc_FloatData u; |
@@ -181,6 +193,7 @@ static inline xdc_IArg xdc_floatToArg(xdc_Float f) | |||
181 | return (u.a); | 193 | return (u.a); |
182 | } | 194 | } |
183 | 195 | ||
196 | static xdc_Float xdc_argToFloat(xdc_IArg a); | ||
184 | static inline xdc_Float xdc_argToFloat(xdc_IArg a) | 197 | static inline xdc_Float xdc_argToFloat(xdc_IArg a) |
185 | { | 198 | { |
186 | xdc_FloatData u; | 199 | xdc_FloatData u; |
@@ -232,7 +245,10 @@ typedef xdc_Int16 Int16; | |||
232 | typedef xdc_Int32 Int32; | 245 | typedef xdc_Int32 Int32; |
233 | typedef xdc_Fxn Fxn; | 246 | typedef xdc_Fxn Fxn; |
234 | typedef xdc_Ptr Ptr; | 247 | typedef xdc_Ptr Ptr; |
248 | typedef xdc_CPtr CPtr; | ||
249 | #ifndef xdc__nolocalstring | ||
235 | typedef xdc_String String; | 250 | typedef xdc_String String; |
251 | #endif | ||
236 | typedef xdc_CString CString; | 252 | typedef xdc_CString CString; |
237 | 253 | ||
238 | typedef xdc_UInt8 UInt8; | 254 | typedef xdc_UInt8 UInt8; |
@@ -324,7 +340,7 @@ typedef xdc_Bits64 Bits64; | |||
324 | * related functions into a single named sub-section (e.g., | 340 | * related functions into a single named sub-section (e.g., |
325 | * "init-code") If this macro is not defined by the target, an | 341 | * "init-code") If this macro is not defined by the target, an |
326 | * empty definition is used instead. | 342 | * empty definition is used instead. |
327 | */ | 343 | */ |
328 | #ifndef xdc__CODESECT | 344 | #ifndef xdc__CODESECT |
329 | #define xdc__CODESECT(fn, sn) | 345 | #define xdc__CODESECT(fn, sn) |
330 | #endif | 346 | #endif |
@@ -344,11 +360,11 @@ typedef xdc_Bits64 Bits64; | |||
344 | * as string constant in the current file. | 360 | * as string constant in the current file. |
345 | */ | 361 | */ |
346 | #ifndef xdc__META | 362 | #ifndef xdc__META |
347 | #define xdc__META(n,s) __FAR__ const char (n)[] = {s} | 363 | #define xdc__META(n,s) __FAR__ const char (n)[] = {(s)} |
348 | #endif | 364 | #endif |
349 | 365 | ||
350 | #endif /* xdc_std__include */ | 366 | #endif /* xdc_std__include */ |
351 | /* | 367 | /* |
352 | * @(#) xdc; 1, 1, 1,476; 3-20-2014 17:05:02; /db/ztree/library/trees/xdc/xdc-A32x/src/packages/ | 368 | * @(#) xdc; 1, 1, 1,0; 8-8-2017 17:29:31; /db/ztree/library/trees/xdc/xdc-D20/src/packages/ |
353 | */ | 369 | */ |
354 | 370 | ||