FreeCalypso > hg > tcs211-c139
comparison chipsetsw/services/etm/etm_misc.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /******************************************************************************** | |
2 * Enhanced TestMode (ETM) | |
3 * @file etm_misc.h | |
4 * | |
5 * @author Kim T. Peteren (ktp@ti.com) | |
6 * @version 0.1 | |
7 * | |
8 | |
9 * | |
10 * History: | |
11 * | |
12 * Date Modification | |
13 * ------------------------------------ | |
14 * 16/06/2003 Creation | |
15 * | |
16 * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved | |
17 *********************************************************************************/ | |
18 | |
19 | |
20 #ifndef _ETM_MISC_H_ | |
21 #define _ETM_MISC_H_ | |
22 | |
23 | |
24 /****************************************************************************** | |
25 * Usefull Header | |
26 *****************************************************************************/ | |
27 | |
28 #ifndef _WINDOWS | |
29 #include "swconfig.cfg" | |
30 #include "sys.cfg" | |
31 #include "chipset.cfg" | |
32 //#include "testmode.cfg" | |
33 #endif | |
34 | |
35 #include "l1_confg.h" | |
36 | |
37 /* Riviera useful header */ | |
38 #include "rv/rv_general.h" | |
39 #include "rvm/rvm_gen.h" | |
40 #include "rvf/rvf_target.h" | |
41 #include "rvf/rvf_api.h" | |
42 #include "rvt/rvt_gen.h" | |
43 | |
44 | |
45 /* include the usefull L1 header */ | |
46 #ifdef _WINDOWS | |
47 #define BOOL_FLAG | |
48 #define CHAR_FLAG | |
49 #endif | |
50 | |
51 #include "l1_types.h" | |
52 #include "l1audio_const.h" | |
53 #include "l1audio_cust.h" | |
54 #include "l1audio_defty.h" | |
55 #include "l1audio_msgty.h" | |
56 #include "l1audio_signa.h" | |
57 | |
58 #if TESTMODE | |
59 #include "l1tm_defty.h" | |
60 #endif | |
61 | |
62 #if (L1_GTT == 1) | |
63 #include "l1gtt_defty.h" | |
64 #endif | |
65 | |
66 #include "l1_const.h" | |
67 #include "l1_defty.h" | |
68 #include "l1_msgty.h" | |
69 #include "l1_signa.h" | |
70 | |
71 #ifdef _WINDOWS | |
72 #define L1_ASYNC_C | |
73 #endif | |
74 | |
75 #include "l1_varex.h" | |
76 | |
77 | |
78 /****************************************************************************** | |
79 * Defines | |
80 *****************************************************************************/ | |
81 | |
82 #define TM3_PACKET_SIZE 128 | |
83 #define ETM_PACEKT_SIZE 256 | |
84 | |
85 // This is the return TM3 packet structure | |
86 // HACK! - taken from l1tm_msgty.h | |
87 typedef struct | |
88 { | |
89 unsigned char cid; | |
90 unsigned char index; | |
91 unsigned char status; | |
92 unsigned char size; // size of result[] array | |
93 unsigned char result[TM3_PACKET_SIZE]; | |
94 } T_TM3_PKT; | |
95 | |
96 | |
97 // This is the new TM packet structure | |
98 typedef struct | |
99 { | |
100 unsigned short size; // size of data[] | |
101 int index; // index into data[] - for put()/get() functions | |
102 unsigned char mid; | |
103 unsigned char status; | |
104 unsigned char data[ETM_PACEKT_SIZE]; // include cksum | |
105 } T_ETM_PKT; | |
106 | |
107 | |
108 #ifndef BASIC_TYPES | |
109 #define BASIC_TYPES | |
110 typedef signed char int8; | |
111 typedef unsigned char uint8; | |
112 typedef signed short int16; | |
113 typedef unsigned short uint16; | |
114 typedef signed int int32; | |
115 typedef unsigned int uint32; | |
116 #endif | |
117 | |
118 /****************************************************************************** | |
119 * Prototypes | |
120 *****************************************************************************/ | |
121 | |
122 void *etm_malloc(int size); | |
123 int etm_free(void *addr); | |
124 | |
125 int etm_at(T_ETM_PKT *pkt, char *buf); | |
126 | |
127 /****************************************************************************** | |
128 * Internal Error codes | |
129 *****************************************************************************/ | |
130 | |
131 enum { | |
132 | |
133 ETM_TASK_REGISTERED = -100, | |
134 ETM_DB_LIMIT = -101 | |
135 | |
136 }; | |
137 | |
138 | |
139 #endif // _ETM_MISC_H_ |