comparison chipsetsw/services/etm/etm_messages_i.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_message_i.h
4 *
5 * Data structures that ETM SWE can receive.
6 *
7 * These messages are send by the bridge function. There are not available
8 * out of the SWE - Internaly messages.
9 *
10 * @author Kim T. Peteren (ktp@ti.com)
11 * @version 0.1
12 *
13
14 *
15 * History:
16 *
17 * Date Modification
18 * ------------------------------------
19 * 16/06/2003 Creation
20 *
21 * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved
22 *********************************************************************************/
23
24
25 #ifndef _ETM_MESSAGES_I_H_
26 #define _ETM_MESSAGES_I_H_
27
28 #include "rv/rv_general.h"
29 #include "rvm/rvm_use_id_list.h"
30
31
32 typedef int (*ETM_CALLBACK_FUNC)(uint8*, int);
33
34
35 /******************************************************************************
36 * Constants
37 *****************************************************************************/
38
39 #define ETM_NAME_MAX_LEN 10
40
41 #define ETM_MESSAGES_OFFSET BUILD_MESSAGE_OFFSET(ETM_USE_ID)
42
43
44 /******************************************************************************
45 * Internal messages
46 *****************************************************************************/
47
48 /**
49 * @name ETM_REGISTER_REQ
50 *
51 * Internal message.
52 *
53 * Message issued by TMETM to ETM task.
54 * This message is used to ...
55 */
56 /*@{*/
57 /** Message ID. */
58 #define ETM_REGISTER_REQ (ETM_MESSAGES_OFFSET | 0x001)
59
60 /** Message structure. */
61 typedef struct
62 {
63 /** Message header. */
64 T_RV_HDR header;
65
66 /** Magic key sequence informations. */
67 char name[ETM_NAME_MAX_LEN];
68 int mid;
69 int task_id;
70 T_RVF_ADDR_ID addr_id;
71 ETM_CALLBACK_FUNC rx_callback_func;
72
73 } T_ETM_REGISTER_REQ;
74 /*@}*/
75
76
77 /**
78 * @name ETM_UNREGISTER
79 *
80 * Internal message.
81 *
82 * Message issued by TMETM to ETM task.
83 * This message is used to ...
84 */
85 /*@{*/
86 /** Message ID. */
87 #define ETM_UNREGISTER (ETM_MESSAGES_OFFSET | 0x002)
88
89 /** Message structure. */
90 typedef struct
91 {
92 /** Message header. */
93 T_RV_HDR header;
94 /** Magic key sequence informations. */
95 char name[ETM_NAME_MAX_LEN];
96 int mid;
97 int task_id;
98 T_RVF_ADDR_ID addr_id;
99 ETM_CALLBACK_FUNC rx_callback_func;
100
101 } T_ETM_UNREGISTER;
102 /*@}*/
103
104
105 /**
106 * @name ETM_DATA_FWR
107 *
108 * Internal message.
109 *
110 * Message issued by TMETM to ETM task.
111 * This message is used to ...
112 */
113 /*@{*/
114 /** Message ID. */
115 #define ETM_DATA_FWR (ETM_MESSAGES_OFFSET | 0x003)
116
117 /** Message structure. */
118 typedef struct
119 {
120 /** Message header. */
121 T_RV_HDR header;
122
123 /** Magic key sequence informations. */
124 int size;
125 char mid;
126 uint8 data[255];
127 T_RV_RETURN return_path;
128
129 } T_ETM_DATA_FWR;
130 /*@}*/
131
132 /**
133 * @name TM3_DATA_FWR
134 *
135 * Internal message.
136 *
137 * Message issued by TMETM to ETM task.
138 * This message is used to ...
139 */
140 /*@{*/
141 /** Message ID. */
142 #define ETM_TM3_DATA_FWR (ETM_MESSAGES_OFFSET | 0x004)
143
144 /** Message structure. */
145 typedef struct
146 {
147 /** Message header. */
148 T_RV_HDR header;
149 /** Magic key sequence informations. */
150 int size;
151 char cid;
152 uint8 data[255];
153 T_RV_RETURN return_path;
154
155 } T_ETM_TM3_DATA_FWR;
156 /*@}*/
157
158
159
160 #endif /* _ETM_MESSAGES_I_H_ */