FreeCalypso > hg > fc-selenite
comparison src/g23m-fad/tcpip/include/rvm_use_id_list.h @ 1:d393cd9bb723
src/g23m-*: initial import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Jul 2018 04:40:46 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:b6a5e36de839 | 1:d393cd9bb723 |
---|---|
1 /** | |
2 * @file rvm_use_id_list.h | |
3 * | |
4 * List of common SWE USE IDs. | |
5 * | |
6 * Note on USE ID management: | |
7 * This file should only contain USE ID of SWE part of the standard TI releases. | |
8 * Development SWE as well as customer SWE should use the rvm_ext_use_id_list.h | |
9 * file for their USE IDs. | |
10 * | |
11 * @author David Lamy-Charrier (d-lamy@ti.com) | |
12 * @version 0.1 | |
13 */ | |
14 | |
15 /* | |
16 * Revision History: | |
17 * | |
18 * Date Author Modification | |
19 * ------------------------------------------------------------------- | |
20 * 10/25/2001 David Lamy-Charrier Create. | |
21 * 11/20/2001 Vincent Oberle Added BUILD_MESSAGE_OFFSET. | |
22 * | |
23 * (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved | |
24 */ | |
25 | |
26 #ifndef __RVM_USE_ID_LIST_H_ | |
27 #define __RVM_USE_ID_LIST_H_ | |
28 | |
29 /** | |
30 * Macro used to build the use_id from the cust, offset and mask parameters. | |
31 * | |
32 * IMPORTANT: The mask parameter must a 16-bit unsigned integer with only one | |
33 * bit at 1 and others at 0. | |
34 * E.g. possible values are 0x0001, 0x0002, 0x0004, 0x0008, 0x0010... 0x8000. | |
35 */ | |
36 #define BUILD_USE_ID(cust, cluster, mask) ( (cust<<31) | ( (cluster & 0x7FFF) <<16) | (mask & 0xFFFF) ) | |
37 | |
38 /** | |
39 * Macro for building the message offset from the USE ID. | |
40 */ | |
41 #define BUILD_MESSAGE_OFFSET(useid) ( (useid & 0xFFFF0000) + \ | |
42 ((((useid & 0xAAAA) ? 1 : 0) + \ | |
43 ((useid & 0xCCCC) ? 2 : 0) + \ | |
44 ((useid & 0xF0F0) ? 4 : 0) + \ | |
45 ((useid & 0xFF00) ? 8 : 0)) << 12) ) | |
46 | |
47 #define RIVIERA_USE_ID_CLUSTER_1 (1) | |
48 | |
49 #define DRIVERS_USE_ID_CLUSTER_1 (10) | |
50 | |
51 #define BLUETOOTH_USE_ID_CLUSTER_1 (20) | |
52 | |
53 #define SERVICES_USE_ID_CLUSTER_1 (30) | |
54 #define SERVICES_USE_ID_CLUSTER_2 (31) | |
55 | |
56 #define TEST_USE_ID_CLUSTER_1 (40) | |
57 | |
58 #define CONDAT_USE_ID_CLUSTER_1 (80) | |
59 | |
60 #define JAVA_USE_ID_CLUSTER_1 (50) | |
61 | |
62 #define DEV_USE_ID_CLUSTER_1 (60) | |
63 | |
64 #define TCPIP_USE_ID_CLUSTER_1 (70) | |
65 | |
66 #define OBIGO_USE_ID_CLUSTER_1 (100) | |
67 #define OBIGO_USE_ID_CLUSTER_2 (110) | |
68 | |
69 /** | |
70 * @name Riviera cluster | |
71 * | |
72 * Riviera insfrastructure | |
73 */ | |
74 /*@{*/ | |
75 | |
76 /* this one is only used for trace purpose */ | |
77 #define RVM_USE_ID BUILD_USE_ID( 0, RIVIERA_USE_ID_CLUSTER_1, 0x0001) | |
78 | |
79 #define RVT_USE_ID BUILD_USE_ID( 0, RIVIERA_USE_ID_CLUSTER_1, 0x0002) | |
80 | |
81 #define TI_PRF_USE_ID BUILD_USE_ID( 0, RIVIERA_USE_ID_CLUSTER_1, 0x0004) | |
82 | |
83 /*@}*/ | |
84 | |
85 /** | |
86 * @name Driver cluster | |
87 * | |
88 * Drivers | |
89 */ | |
90 /*@{*/ | |
91 | |
92 #define R2D_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0001) | |
93 | |
94 #define RTC_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0002) | |
95 | |
96 #define FFS_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0004) | |
97 | |
98 #define KPD_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0008) | |
99 | |
100 #define SPI_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0010) | |
101 | |
102 #define PWR_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0020) | |
103 | |
104 #define RGUI_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0040) | |
105 | |
106 /*@}*/ | |
107 | |
108 /** | |
109 * @name Bluetooth cluster | |
110 * | |
111 * Bluetooth related SWE | |
112 */ | |
113 /*@{*/ | |
114 | |
115 #define HCI_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0001) | |
116 | |
117 #define L2CAP_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0002) | |
118 | |
119 #define BTCTRL_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0004) | |
120 | |
121 #define RFC_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0008) | |
122 | |
123 #define SPP_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0010) | |
124 | |
125 #define HS_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0020) | |
126 | |
127 #define HSG_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0040) | |
128 | |
129 #define SDP_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0080) | |
130 | |
131 #define DUN_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0100) | |
132 | |
133 #define FAX_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0200) | |
134 | |
135 #define OBX_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0400) | |
136 | |
137 #define OPP_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0800) | |
138 | |
139 #define FTP_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x1000) | |
140 | |
141 #define SYN_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x2000) | |
142 | |
143 /*@}*/ | |
144 | |
145 /** | |
146 * @name Services cluster | |
147 * | |
148 * Services | |
149 */ | |
150 /*@{*/ | |
151 | |
152 #define EXPL_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0001) | |
153 | |
154 #define AUDIO_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0010) | |
155 | |
156 #define ETM_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0020) | |
157 | |
158 #define DAR_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0040) | |
159 | |
160 #define MKS_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0080) | |
161 | |
162 #define MPM_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0100) | |
163 | |
164 #define LLS_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0200) | |
165 | |
166 #define ATP_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0400) | |
167 | |
168 #define ATP_UART_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0800) | |
169 | |
170 #define MDC_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x2000) | |
171 | |
172 #define TTY_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x4000) | |
173 | |
174 #define DCM_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x8000) | |
175 | |
176 /*@}*/ | |
177 | |
178 /** | |
179 * @name Services cluster - 2 | |
180 * | |
181 * Services | |
182 */ | |
183 /*@{*/ | |
184 | |
185 #define MFW_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_2, 0x0001) | |
186 | |
187 #define SMBS_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_2, 0x0002) | |
188 | |
189 #define AUDIO_BGD_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_2, 0x0004) | |
190 | |
191 /*@}*/ | |
192 | |
193 /** | |
194 * @name Test cluster | |
195 * | |
196 * Tests related SWEs | |
197 */ | |
198 /*@{*/ | |
199 | |
200 #define RTEST_USE_ID BUILD_USE_ID( 0, TEST_USE_ID_CLUSTER_1, 0x0001) | |
201 | |
202 /* maybe put in another cluster */ | |
203 #define TUT_USE_ID BUILD_USE_ID( 0, TEST_USE_ID_CLUSTER_1, 0x0002) | |
204 | |
205 /*@}*/ | |
206 | |
207 /** | |
208 * @name Dev cluster | |
209 * | |
210 * Developpment SWEs | |
211 */ | |
212 /*@{*/ | |
213 | |
214 #define DEV1_USE_ID BUILD_USE_ID( 0, DEV_USE_ID_CLUSTER_1, 0x0001) | |
215 | |
216 #define DEV2_USE_ID BUILD_USE_ID( 0, DEV_USE_ID_CLUSTER_1, 0x0002) | |
217 | |
218 #define DEV3_USE_ID BUILD_USE_ID( 0, DEV_USE_ID_CLUSTER_1, 0x0004) | |
219 | |
220 /*@}*/ | |
221 | |
222 /** | |
223 * @name J2ME cluster | |
224 * | |
225 * Java related SWEs | |
226 */ | |
227 /*@{*/ | |
228 | |
229 #define KIL_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0001) | |
230 | |
231 #define KGC_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0002) | |
232 | |
233 #define KCL_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0004) | |
234 | |
235 #define KMM_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0008) | |
236 | |
237 #define KNM_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0010) | |
238 | |
239 #define UVM_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0020) | |
240 | |
241 #define KZP_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0040) | |
242 | |
243 #define KPG_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0080) | |
244 | |
245 #define JTM_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0100) | |
246 | |
247 /*@}*/ | |
248 | |
249 /** | |
250 * @name Stack TCP/IP cluster | |
251 * | |
252 * Stack TCP/IP. | |
253 */ | |
254 /*@{*/ | |
255 #define RNET_USE_ID BUILD_USE_ID( 0, TCPIP_USE_ID_CLUSTER_1, 0x0001) | |
256 | |
257 #define RNET_WS_USE_ID BUILD_USE_ID( 0, TCPIP_USE_ID_CLUSTER_1, 0x0002) | |
258 | |
259 #define RNET_RT_USE_ID BUILD_USE_ID( 0, TCPIP_USE_ID_CLUSTER_1, 0x0004) | |
260 | |
261 #define RNET_BR_USE_ID BUILD_USE_ID( 0, TCPIP_USE_ID_CLUSTER_1, 0x0008) | |
262 | |
263 /*@}*/ | |
264 | |
265 /** | |
266 * @name Condat cluster | |
267 * | |
268 * Condat related SWEs | |
269 */ | |
270 /*@{*/ | |
271 | |
272 #define CONDAT_FRM_USE_ID BUILD_USE_ID( 0, CONDAT_USE_ID_CLUSTER_1, 0x0001) | |
273 | |
274 /*@}*/ | |
275 | |
276 /** | |
277 * @name Obigo cluster | |
278 * | |
279 * Obigo (Teleca SW) related SWEs. | |
280 * Note that there are two clusters. | |
281 */ | |
282 /*@{*/ | |
283 | |
284 #define MSME_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0001) | |
285 | |
286 #define MSFE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0002) | |
287 | |
288 #define STKE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0004) | |
289 | |
290 #define BRSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0008) | |
291 | |
292 #define BRAE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0010) | |
293 | |
294 #define PHSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0020) | |
295 | |
296 #define IBSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0040) | |
297 | |
298 #define MMSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0080) | |
299 | |
300 #define SLSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0100) | |
301 | |
302 #define SMAE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0200) | |
303 | |
304 #define MEAE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0400) | |
305 | |
306 #define SECE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0800) | |
307 | |
308 #define SELE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x1000) | |
309 | |
310 #define PRSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x2000) | |
311 | |
312 #define JAAE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x4000) | |
313 | |
314 #define JASE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x8000) | |
315 | |
316 /* In Test cluster?? */ | |
317 #define IT1E_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_2, 0x0001) | |
318 | |
319 #define IT2E_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_2, 0x0002) | |
320 | |
321 #define IT0E_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_2, 0x0004) | |
322 | |
323 /*@}*/ | |
324 | |
325 #endif /* __RVM_USE_ID_LIST_H_ */ | |
326 |