FreeCalypso > hg > fc-selenite
comparison src/cs/riviera/rvm/rvm_use_id_list.h @ 0:b6a5e36de839
src/cs: initial import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Jul 2018 04:39:26 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b6a5e36de839 |
---|---|
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 | |
27 #ifndef __RVM_USE_ID_LIST_H_ | |
28 #define __RVM_USE_ID_LIST_H_ | |
29 | |
30 | |
31 /** | |
32 * Macro used to build the use_id from the cust, offset and mask parameters. | |
33 * | |
34 * IMPORTANT: The mask parameter must a 16-bit unsigned integer with only one | |
35 * bit at 1 and others at 0. | |
36 * E.g. possible values are 0x0001, 0x0002, 0x0004, 0x0008, 0x0010... 0x8000. | |
37 */ | |
38 #define BUILD_USE_ID(cust, cluster, mask) ( (cust<<31) | ( (cluster & 0x7FFF) <<16) | (mask & 0xFFFF) ) | |
39 | |
40 /** | |
41 * Macro for building the message offset from the USE ID. | |
42 */ | |
43 #define BUILD_MESSAGE_OFFSET(useid) ( (useid & 0xFFFF0000) + \ | |
44 ((((useid & 0xAAAA) ? 1 : 0) + \ | |
45 ((useid & 0xCCCC) ? 2 : 0) + \ | |
46 ((useid & 0xF0F0) ? 4 : 0) + \ | |
47 ((useid & 0xFF00) ? 8 : 0)) << 12) ) | |
48 | |
49 | |
50 #define RIVIERA_USE_ID_CLUSTER_1 (1) | |
51 | |
52 #define DRIVERS_USE_ID_CLUSTER_1 (10) | |
53 | |
54 #define BLUETOOTH_USE_ID_CLUSTER_1 (20) | |
55 | |
56 #define SERVICES_USE_ID_CLUSTER_1 (30) | |
57 #define SERVICES_USE_ID_CLUSTER_2 (31) | |
58 | |
59 #define TEST_USE_ID_CLUSTER_1 (40) | |
60 | |
61 #define CONDAT_USE_ID_CLUSTER_1 (50) | |
62 | |
63 #define JAVA_USE_ID_CLUSTER_1 (60) | |
64 | |
65 #define TCPIP_USE_ID_CLUSTER_1 (70) | |
66 | |
67 #define OBIGO_USE_ID_CLUSTER_1 (80) | |
68 #define OBIGO_USE_ID_CLUSTER_2 (81) | |
69 | |
70 #define WIDCOMM_BT_USE_ID_CLUSTER_1 (90) | |
71 | |
72 /** | |
73 * @name Widcomm cluster | |
74 * | |
75 * Riviera insfrastructure | |
76 */ | |
77 /*@{*/ | |
78 | |
79 | |
80 #define BTU_USE_ID BUILD_USE_ID( 0, WIDCOMM_BT_USE_ID_CLUSTER_1, 0x0002) | |
81 #define GKI_USE_ID BUILD_USE_ID( 0, WIDCOMM_BT_USE_ID_CLUSTER_1, 0x0004) | |
82 #define BTH_USE_ID BUILD_USE_ID( 0, WIDCOMM_BT_USE_ID_CLUSTER_1, 0x0008) | |
83 #define BTUI_USE_ID BUILD_USE_ID( 0, WIDCOMM_BT_USE_ID_CLUSTER_1, 0x0010) | |
84 #define RPC_USE_ID BUILD_USE_ID( 0, WIDCOMM_BT_USE_ID_CLUSTER_1, 0x0020) | |
85 /** | |
86 * @name Riviera cluster | |
87 * | |
88 * Riviera insfrastructure | |
89 */ | |
90 /*@{*/ | |
91 | |
92 /* this one is only used for trace purpose */ | |
93 #define RVM_USE_ID BUILD_USE_ID( 0, RIVIERA_USE_ID_CLUSTER_1, 0x0001) | |
94 | |
95 #define RVT_USE_ID BUILD_USE_ID( 0, RIVIERA_USE_ID_CLUSTER_1, 0x0002) | |
96 | |
97 #define TI_PRF_USE_ID BUILD_USE_ID( 0, RIVIERA_USE_ID_CLUSTER_1, 0x0004) | |
98 | |
99 /*@}*/ | |
100 | |
101 | |
102 | |
103 /** | |
104 * @name Driver cluster | |
105 * | |
106 * Drivers | |
107 */ | |
108 /*@{*/ | |
109 | |
110 #define R2D_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0001) | |
111 | |
112 #define RTC_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0002) | |
113 | |
114 #define FFS_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0004) | |
115 | |
116 #define KPD_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0008) | |
117 | |
118 #define SPI_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0010) | |
119 | |
120 #define PWR_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0020) | |
121 | |
122 /* Overloading PWR_USE_ID */ | |
123 #define LCC_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0020) | |
124 | |
125 /* Yet another version of PWR SWE */ | |
126 #define FCHG_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0020) | |
127 | |
128 | |
129 #define RGUI_USE_ID BUILD_USE_ID( 0, DRIVERS_USE_ID_CLUSTER_1, 0x0040) | |
130 | |
131 /*@}*/ | |
132 | |
133 | |
134 | |
135 | |
136 /** | |
137 * @name Bluetooth cluster | |
138 * | |
139 * Bluetooth related SWE | |
140 */ | |
141 /*@{*/ | |
142 | |
143 #define HCI_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0001) | |
144 | |
145 #define L2CAP_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0002) | |
146 | |
147 #define BTCTRL_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0004) | |
148 | |
149 #define RFC_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0008) | |
150 | |
151 #define SPP_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0010) | |
152 | |
153 #define HS_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0020) | |
154 | |
155 #define HSG_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0040) | |
156 | |
157 #define SDP_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0080) | |
158 | |
159 #define DUN_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0100) | |
160 | |
161 #define FAX_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0200) | |
162 | |
163 #define OBX_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0400) | |
164 | |
165 #define OPP_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x0800) | |
166 | |
167 #define FTP_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x1000) | |
168 | |
169 #define SYN_USE_ID BUILD_USE_ID( 0, BLUETOOTH_USE_ID_CLUSTER_1, 0x2000) | |
170 | |
171 /*@}*/ | |
172 | |
173 | |
174 | |
175 /** | |
176 * @name Services cluster | |
177 * | |
178 * Services | |
179 */ | |
180 /*@{*/ | |
181 | |
182 #define EXPL_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0001) | |
183 | |
184 #define AUDIO_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0002) | |
185 | |
186 #define ETM_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0004) | |
187 | |
188 #define DAR_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0008) | |
189 | |
190 #define MKS_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0010) | |
191 | |
192 #define MPM_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0020) | |
193 | |
194 #define LLS_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0040) | |
195 | |
196 #define ATP_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0080) | |
197 | |
198 #define ATP_UART_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0100) | |
199 | |
200 #define MDC_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0200) | |
201 | |
202 #define TTY_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0400) | |
203 | |
204 #define DCM_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x0800) | |
205 | |
206 #define DCFG_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x1000) | |
207 | |
208 #define MMS_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_1, 0x1000) | |
209 /*@}*/ | |
210 | |
211 | |
212 /** | |
213 * @name Services cluster - 2 | |
214 * | |
215 * Services | |
216 */ | |
217 /*@{*/ | |
218 | |
219 #define MFW_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_2, 0x0001) | |
220 | |
221 #define SMBS_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_2, 0x0002) | |
222 | |
223 #define AUDIO_BGD_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_2, 0x0004) | |
224 | |
225 #define IMG_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_2, 0x0008) | |
226 | |
227 #define MDL_USE_ID BUILD_USE_ID( 0, SERVICES_USE_ID_CLUSTER_2, 0x0010) | |
228 | |
229 /*@}*/ | |
230 | |
231 | |
232 /** | |
233 * @name Test cluster | |
234 * | |
235 * Tests related SWEs | |
236 */ | |
237 /*@{*/ | |
238 | |
239 #define RTEST_USE_ID BUILD_USE_ID( 0, TEST_USE_ID_CLUSTER_1, 0x0001) | |
240 | |
241 /* maybe put in another cluster */ | |
242 #define TUT_USE_ID BUILD_USE_ID( 0, TEST_USE_ID_CLUSTER_1, 0x0002) | |
243 | |
244 /*@}*/ | |
245 | |
246 | |
247 /** | |
248 * @name J2ME cluster | |
249 * | |
250 * Java related SWEs | |
251 */ | |
252 /*@{*/ | |
253 | |
254 #define KIL_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0001) | |
255 | |
256 #define KGC_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0002) | |
257 | |
258 #define KCL_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0004) | |
259 | |
260 #define KMM_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0008) | |
261 | |
262 #define KNM_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0010) | |
263 | |
264 #define UVM_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0020) | |
265 | |
266 #define KZP_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0040) | |
267 | |
268 #define KPG_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0080) | |
269 | |
270 #define JTM_USE_ID BUILD_USE_ID( 0, JAVA_USE_ID_CLUSTER_1, 0x0100) | |
271 | |
272 /*@}*/ | |
273 | |
274 | |
275 | |
276 /** | |
277 * @name Stack TCP/IP cluster | |
278 * | |
279 * Stack TCP/IP. | |
280 */ | |
281 /*@{*/ | |
282 #define RNET_USE_ID BUILD_USE_ID( 0, TCPIP_USE_ID_CLUSTER_1, 0x0001) | |
283 | |
284 #define RNET_WS_USE_ID BUILD_USE_ID( 0, TCPIP_USE_ID_CLUSTER_1, 0x0002) | |
285 | |
286 #define RNET_RT_USE_ID BUILD_USE_ID( 0, TCPIP_USE_ID_CLUSTER_1, 0x0004) | |
287 | |
288 #define RNET_BR_USE_ID BUILD_USE_ID( 0, TCPIP_USE_ID_CLUSTER_1, 0x0008) | |
289 | |
290 /*@}*/ | |
291 | |
292 | |
293 /** | |
294 * @name Condat cluster | |
295 * | |
296 * Condat related SWEs | |
297 */ | |
298 /*@{*/ | |
299 | |
300 #define CONDAT_FRM_USE_ID BUILD_USE_ID( 0, CONDAT_USE_ID_CLUSTER_1, 0x0001) | |
301 | |
302 | |
303 /*@}*/ | |
304 | |
305 | |
306 | |
307 /** | |
308 * @name Obigo cluster | |
309 * | |
310 * Obigo related SWE's | |
311 */ | |
312 /*@{*/ | |
313 #define MSME_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0001) | |
314 | |
315 #define MSFE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0002) | |
316 | |
317 #define STKE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0004) | |
318 | |
319 #define BRSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0008) | |
320 | |
321 #define BRAE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0010) | |
322 | |
323 #define PHSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0020) | |
324 | |
325 #define MMSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0040) | |
326 | |
327 #define SLSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0080) | |
328 | |
329 #define SMAE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0100) | |
330 | |
331 #define MEAE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0200) | |
332 | |
333 #define SECE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0400) | |
334 | |
335 #define SELE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x0800) | |
336 | |
337 #define PRSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x1000) | |
338 | |
339 #define JAAE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x2000) | |
340 | |
341 #define JASE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_1, 0x4000) | |
342 /*@{*/ | |
343 | |
344 | |
345 /** | |
346 * @name Obigo second cluster | |
347 * | |
348 * Obigo related test SWE's | |
349 */ | |
350 #define EMAE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_2, 0x0001) | |
351 | |
352 #define EMSE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_2, 0x0002) | |
353 | |
354 #define IT1E_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_2, 0x0004) | |
355 | |
356 #define IT2E_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_2, 0x0008) | |
357 | |
358 #define IT0E_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_2, 0x0010) | |
359 | |
360 #define UISE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_2, 0x0020) | |
361 | |
362 #define UIAE_USE_ID BUILD_USE_ID( 0, OBIGO_USE_ID_CLUSTER_2, 0x0040) | |
363 /*@{*/ | |
364 | |
365 | |
366 #endif /* __RVM_USE_ID_LIST_H_ */ | |
367 |