blob: 22270de0a702e2c7b06067379b8f33bf1616f151 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2008-2011, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef DIAGCHAR_SHARED
14#define DIAGCHAR_SHARED
15
16#define MSG_MASKS_TYPE 1
17#define LOG_MASKS_TYPE 2
18#define EVENT_MASKS_TYPE 4
19#define PKT_TYPE 8
20#define DEINIT_TYPE 16
21#define MEMORY_DEVICE_LOG_TYPE 32
22#define USB_MODE 1
23#define MEMORY_DEVICE_MODE 2
24#define NO_LOGGING_MODE 3
25
26/* different values that go in for diag_data_type */
27#define DATA_TYPE_EVENT 0
28#define DATA_TYPE_F3 1
29#define DATA_TYPE_LOG 2
30#define DATA_TYPE_RESPONSE 3
31
32/* Different IOCTL values */
33#define DIAG_IOCTL_COMMAND_REG 0
34#define DIAG_IOCTL_SWITCH_LOGGING 7
35#define DIAG_IOCTL_GET_DELAYED_RSP_ID 8
36#define DIAG_IOCTL_LSM_DEINIT 9
37
38/* Machine ID and corresponding PC Tools IDs */
39#define APQ8060_MACHINE_ID 86
40#define AO8960_MACHINE_ID 87
41#define MSM8660_MACHINE_ID 71
42#define APQ8060_TOOLS_ID 4062
43#define AO8960_TOOLS_ID 4064
44
45#define MSG_MASK_0 (0x00000001)
46#define MSG_MASK_1 (0x00000002)
47#define MSG_MASK_2 (0x00000004)
48#define MSG_MASK_3 (0x00000008)
49#define MSG_MASK_4 (0x00000010)
50#define MSG_MASK_5 (0x00000020)
51#define MSG_MASK_6 (0x00000040)
52#define MSG_MASK_7 (0x00000080)
53#define MSG_MASK_8 (0x00000100)
54#define MSG_MASK_9 (0x00000200)
55#define MSG_MASK_10 (0x00000400)
56#define MSG_MASK_11 (0x00000800)
57#define MSG_MASK_12 (0x00001000)
58#define MSG_MASK_13 (0x00002000)
59#define MSG_MASK_14 (0x00004000)
60#define MSG_MASK_15 (0x00008000)
61#define MSG_MASK_16 (0x00010000)
62#define MSG_MASK_17 (0x00020000)
63#define MSG_MASK_18 (0x00040000)
64#define MSG_MASK_19 (0x00080000)
65#define MSG_MASK_20 (0x00100000)
66#define MSG_MASK_21 (0x00200000)
67#define MSG_MASK_22 (0x00400000)
68#define MSG_MASK_23 (0x00800000)
69#define MSG_MASK_24 (0x01000000)
70#define MSG_MASK_25 (0x02000000)
71#define MSG_MASK_26 (0x04000000)
72#define MSG_MASK_27 (0x08000000)
73#define MSG_MASK_28 (0x10000000)
74#define MSG_MASK_29 (0x20000000)
75#define MSG_MASK_30 (0x40000000)
76#define MSG_MASK_31 (0x80000000)
77
78/* These masks are to be used for support of all legacy messages in the sw.
79The user does not need to remember the names as they will be embedded in
80the appropriate macros. */
81#define MSG_LEGACY_LOW MSG_MASK_0
82#define MSG_LEGACY_MED MSG_MASK_1
83#define MSG_LEGACY_HIGH MSG_MASK_2
84#define MSG_LEGACY_ERROR MSG_MASK_3
85#define MSG_LEGACY_FATAL MSG_MASK_4
86
87/* Legacy Message Priorities */
88#define MSG_LVL_FATAL (MSG_LEGACY_FATAL)
89#define MSG_LVL_ERROR (MSG_LEGACY_ERROR | MSG_LVL_FATAL)
90#define MSG_LVL_HIGH (MSG_LEGACY_HIGH | MSG_LVL_ERROR)
91#define MSG_LVL_MED (MSG_LEGACY_MED | MSG_LVL_HIGH)
92#define MSG_LVL_LOW (MSG_LEGACY_LOW | MSG_LVL_MED)
93
94#define MSG_LVL_NONE 0
95
96/* This needs to be modified manually now, when we add
97 a new RANGE of SSIDs to the msg_mask_tbl */
98#define MSG_MASK_TBL_CNT 19
99#define EVENT_LAST_ID 0x083F
100
101#define MSG_SSID_0 0
102#define MSG_SSID_0_LAST 68
103#define MSG_SSID_1 500
104#define MSG_SSID_1_LAST 506
105#define MSG_SSID_2 1000
106#define MSG_SSID_2_LAST 1007
107#define MSG_SSID_3 2000
108#define MSG_SSID_3_LAST 2008
109#define MSG_SSID_4 3000
110#define MSG_SSID_4_LAST 3012
111#define MSG_SSID_5 4000
112#define MSG_SSID_5_LAST 4010
113#define MSG_SSID_6 4500
114#define MSG_SSID_6_LAST 4526
115#define MSG_SSID_7 4600
116#define MSG_SSID_7_LAST 4611
117#define MSG_SSID_8 5000
118#define MSG_SSID_8_LAST 5024
119#define MSG_SSID_9 5500
120#define MSG_SSID_9_LAST 5514
121#define MSG_SSID_10 6000
122#define MSG_SSID_10_LAST 6050
123#define MSG_SSID_11 6500
124#define MSG_SSID_11_LAST 6521
125#define MSG_SSID_12 7000
126#define MSG_SSID_12_LAST 7003
127#define MSG_SSID_13 7100
128#define MSG_SSID_13_LAST 7111
129#define MSG_SSID_14 7200
130#define MSG_SSID_14_LAST 7201
131#define MSG_SSID_15 8000
132#define MSG_SSID_15_LAST 8000
133#define MSG_SSID_16 8500
134#define MSG_SSID_16_LAST 8523
135#define MSG_SSID_17 9000
136#define MSG_SSID_17_LAST 9008
137#define MSG_SSID_18 9500
138#define MSG_SSID_18_LAST 9509
139
140struct diagpkt_delay_params {
141 void *rsp_ptr;
142 int size;
143 int *num_bytes_ptr;
144};
145
146static const uint32_t msg_bld_masks_0[] = {
147 MSG_LVL_LOW,
148 MSG_LVL_MED,
149 MSG_LVL_MED,
150 MSG_LVL_ERROR,
151 MSG_LVL_LOW,
152 MSG_LVL_MED,
153 MSG_LVL_MED,
154 MSG_LVL_HIGH,
155 MSG_LVL_ERROR,
156 MSG_LVL_LOW,
157 MSG_LVL_ERROR,
158 MSG_LVL_ERROR,
159 MSG_LVL_MED,
160 MSG_LVL_MED,
161 MSG_LVL_MED,
162 MSG_LVL_HIGH,
163 MSG_LVL_HIGH,
164 MSG_LVL_HIGH,
165 MSG_LVL_LOW,
166 MSG_LVL_ERROR,
167 MSG_LVL_LOW,
168 MSG_LVL_MED,
169 MSG_LVL_MED,
170 MSG_LVL_MED,
171 MSG_LVL_MED,
172 MSG_LVL_LOW,
173 MSG_LVL_MED,
174 MSG_LVL_MED,
175 MSG_LVL_MED,
176 MSG_LVL_MED,
177 MSG_LVL_MED|MSG_MASK_7 | \
178 MSG_MASK_8|MSG_MASK_9|MSG_MASK_10|MSG_MASK_11|MSG_MASK_12 | \
179 MSG_MASK_13|MSG_MASK_14|MSG_MASK_15|MSG_MASK_16 | \
180 MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20|MSG_MASK_21,
181 MSG_LVL_MED|MSG_MASK_5 | \
182 MSG_MASK_6|MSG_MASK_7|MSG_MASK_8|MSG_MASK_9|MSG_MASK_10| \
183 MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14| \
184 MSG_MASK_15|MSG_MASK_16|MSG_MASK_17,
185 MSG_LVL_MED,
186 MSG_LVL_MED,
187 MSG_LVL_HIGH,
188 MSG_LVL_HIGH,
189 MSG_LVL_HIGH,
190 MSG_LVL_HIGH,
191 MSG_LVL_MED,
192 MSG_LVL_MED,
193 MSG_LVL_MED|MSG_MASK_5 | \
194 MSG_MASK_6|MSG_MASK_7|MSG_MASK_8,
195 MSG_LVL_LOW,
196 MSG_LVL_LOW,
197 MSG_LVL_HIGH,
198 MSG_LVL_HIGH,
199 MSG_LVL_HIGH,
200 MSG_LVL_MED,
201 MSG_LVL_MED|MSG_MASK_5 | \
202 MSG_MASK_6|MSG_MASK_7|MSG_MASK_8|MSG_MASK_9|MSG_MASK_10| \
203 MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14|MSG_MASK_15| \
204 MSG_MASK_16|MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20| \
205 MSG_MASK_21|MSG_MASK_22|MSG_MASK_23|MSG_MASK_24|MSG_MASK_25,
206 MSG_LVL_MED|MSG_MASK_5 | \
207 MSG_MASK_6|MSG_MASK_7|MSG_MASK_8|MSG_MASK_9|MSG_MASK_10,
208 MSG_LVL_MED,
209 MSG_LVL_MED,
210 MSG_LVL_LOW,
211 MSG_LVL_MED,
212 MSG_LVL_LOW,
213 MSG_LVL_LOW,
214 MSG_LVL_LOW,
215 MSG_LVL_HIGH,
216 MSG_LVL_LOW,
217 MSG_LVL_LOW,
218 MSG_LVL_LOW | MSG_MASK_5 | \
219 MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8,
220 MSG_LVL_LOW | MSG_MASK_5 | \
221 MSG_MASK_6,
222 MSG_LVL_MED,
223 MSG_LVL_MED,
224 MSG_LVL_LOW,
225 MSG_LVL_MED | MSG_MASK_5 | \
226 MSG_MASK_6|MSG_MASK_7|MSG_MASK_8|MSG_MASK_9|MSG_MASK_10| \
227 MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14|MSG_MASK_15 | \
228 MSG_MASK_16|MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20,
229 MSG_LVL_LOW,
230 MSG_LVL_MED,
231 MSG_LVL_LOW,
232 MSG_LVL_LOW,
233};
234
235static const uint32_t msg_bld_masks_1[] = {
236 MSG_LVL_MED,
237 MSG_LVL_HIGH,
238 MSG_LVL_HIGH,
239 MSG_LVL_LOW,
240 MSG_LVL_HIGH,
241 MSG_LVL_HIGH,
242 MSG_LVL_HIGH,
243};
244
245static const uint32_t msg_bld_masks_2[] = {
246 MSG_LVL_MED,
247 MSG_LVL_MED,
248 MSG_LVL_MED,
249 MSG_LVL_MED,
250 MSG_LVL_MED,
251 MSG_LVL_MED|MSG_MASK_5,
252 MSG_LVL_MED,
253 MSG_LVL_MED
254};
255
256static const uint32_t msg_bld_masks_3[] = {
257 MSG_LVL_MED,
258 MSG_LVL_MED,
259 MSG_LVL_MED,
260 MSG_LVL_MED,
261 MSG_LVL_MED,
262 MSG_LVL_MED,
263 MSG_LVL_MED,
264 MSG_LVL_MED,
265 MSG_LVL_MED
266};
267
268static const uint32_t msg_bld_masks_4[] = {
269 MSG_LVL_HIGH,
270 MSG_LVL_HIGH,
271 MSG_LVL_HIGH,
272 MSG_LVL_HIGH,
273 MSG_LVL_HIGH,
274 MSG_LVL_HIGH,
275 MSG_LVL_HIGH,
276 MSG_LVL_HIGH,
277 MSG_LVL_HIGH,
278 MSG_LVL_HIGH,
279 MSG_LVL_HIGH,
280 MSG_LVL_HIGH,
281 MSG_LVL_HIGH
282};
283
284static const uint32_t msg_bld_masks_5[] = {
285 MSG_LVL_HIGH,
286 MSG_LVL_MED,
287 MSG_LVL_HIGH,
288 MSG_LVL_MED,
289 MSG_LVL_MED,
290 MSG_LVL_MED,
291 MSG_LVL_MED,
292 MSG_LVL_MED,
293 MSG_LVL_MED,
294 MSG_LVL_MED,
295 MSG_LVL_MED
296};
297
298static const uint32_t msg_bld_masks_6[] = {
299 MSG_LVL_MED,
300 MSG_LVL_MED,
301 MSG_LVL_MED,
302 MSG_LVL_MED,
303 MSG_LVL_MED,
304 MSG_LVL_MED,
305 MSG_LVL_MED,
306 MSG_LVL_LOW,
307 MSG_LVL_LOW,
308 MSG_LVL_LOW,
309 MSG_LVL_LOW,
310 MSG_LVL_LOW,
311 MSG_LVL_LOW,
312 MSG_LVL_LOW,
313 MSG_LVL_LOW,
314 MSG_LVL_LOW,
315 MSG_LVL_LOW,
316 MSG_LVL_LOW,
317 MSG_LVL_LOW,
318 MSG_LVL_LOW,
319 MSG_LVL_LOW,
320 MSG_LVL_LOW,
321 MSG_LVL_LOW,
322 MSG_LVL_LOW,
323 MSG_LVL_LOW,
324 MSG_LVL_LOW,
325 MSG_LVL_LOW
326};
327
328static const uint32_t msg_bld_masks_7[] = {
329 MSG_LVL_MED,
330 MSG_LVL_MED,
331 MSG_LVL_MED,
332 MSG_LVL_MED,
333 MSG_LVL_MED,
334 MSG_LVL_MED,
335 MSG_LVL_MED,
336 MSG_LVL_MED,
337 MSG_LVL_MED,
338 MSG_LVL_MED,
339 MSG_LVL_MED,
340 MSG_LVL_MED,
341};
342
343static const uint32_t msg_bld_masks_8[] = {
344 MSG_LVL_MED,
345 MSG_LVL_MED,
346 MSG_LVL_MED,
347 MSG_LVL_MED,
348 MSG_LVL_MED,
349 MSG_LVL_MED,
350 MSG_LVL_MED,
351 MSG_LVL_MED,
352 MSG_LVL_MED,
353 MSG_LVL_MED,
354 MSG_LVL_MED,
355 MSG_LVL_MED,
356 MSG_LVL_MED,
357 MSG_LVL_MED,
358 MSG_LVL_MED,
359 MSG_LVL_MED,
360 MSG_LVL_LOW,
361 MSG_LVL_LOW,
362 MSG_LVL_LOW,
363 MSG_LVL_MED,
364 MSG_LVL_MED,
365 MSG_LVL_MED,
366 MSG_LVL_MED,
367 MSG_LVL_MED,
368 MSG_LVL_MED,
369};
370
371static const uint32_t msg_bld_masks_9[] = {
372 MSG_LVL_MED|MSG_MASK_5,
373 MSG_LVL_MED|MSG_MASK_5,
374 MSG_LVL_MED|MSG_MASK_5,
375 MSG_LVL_MED|MSG_MASK_5,
376 MSG_LVL_MED|MSG_MASK_5,
377 MSG_LVL_MED|MSG_MASK_5,
378 MSG_LVL_MED|MSG_MASK_5,
379 MSG_LVL_MED|MSG_MASK_5,
380 MSG_LVL_MED|MSG_MASK_5,
381 MSG_LVL_MED|MSG_MASK_5,
382 MSG_LVL_MED|MSG_MASK_5,
383 MSG_LVL_MED|MSG_MASK_5,
384 MSG_LVL_MED|MSG_MASK_5,
385 MSG_LVL_MED|MSG_MASK_5,
386 MSG_LVL_MED|MSG_MASK_5,
387};
388
389static const uint32_t msg_bld_masks_10[] = {
390 MSG_LVL_MED,
391 MSG_LVL_ERROR,
392 MSG_LVL_LOW,
393 MSG_LVL_LOW|MSG_MASK_5 | \
394 MSG_MASK_6|MSG_MASK_7|MSG_MASK_8|MSG_MASK_9|MSG_MASK_10| \
395 MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14|MSG_MASK_15| \
396 MSG_MASK_16|MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20| \
397 MSG_MASK_21|MSG_MASK_22,
398 MSG_LVL_LOW|MSG_MASK_5,
399 MSG_LVL_LOW,
400 MSG_LVL_LOW,
401 MSG_LVL_LOW,
402 MSG_LVL_LOW,
403 MSG_LVL_LOW,
404 MSG_LVL_LOW,
405 MSG_LVL_LOW,
406 MSG_LVL_LOW,
407 MSG_LVL_LOW|MSG_MASK_5,
408 MSG_LVL_LOW|MSG_MASK_5,
409 MSG_LVL_LOW|MSG_MASK_5,
410 MSG_LVL_LOW|MSG_MASK_5,
411 MSG_LVL_LOW|MSG_MASK_5,
412 MSG_LVL_LOW|MSG_MASK_5,
413 MSG_LVL_LOW|MSG_MASK_5,
414 MSG_LVL_LOW|MSG_MASK_5,
415 MSG_LVL_LOW|MSG_MASK_5,
416 MSG_LVL_LOW|MSG_MASK_5,
417 MSG_LVL_LOW|MSG_MASK_5,
418 MSG_LVL_LOW|MSG_MASK_5,
419 MSG_LVL_LOW|MSG_MASK_5,
420 MSG_LVL_LOW|MSG_MASK_5,
421 MSG_LVL_LOW|MSG_MASK_5,
422 MSG_LVL_LOW|MSG_MASK_5,
423 MSG_LVL_LOW|MSG_MASK_5,
424 MSG_LVL_LOW|MSG_MASK_5,
425 MSG_LVL_LOW|MSG_MASK_5,
426 MSG_LVL_LOW,
427 MSG_LVL_MED,
428 MSG_LVL_HIGH,
429 MSG_LVL_LOW,
430 MSG_LVL_LOW,
431 MSG_LVL_LOW|MSG_MASK_5,
432 MSG_LVL_LOW|MSG_MASK_0 | MSG_MASK_1 | MSG_MASK_2 | \
433 MSG_MASK_3 | MSG_MASK_4 | MSG_MASK_5 | MSG_MASK_6,
434 MSG_LVL_HIGH,
435 MSG_LVL_LOW,
436 MSG_LVL_LOW,
437 MSG_LVL_LOW,
438 MSG_LVL_LOW,
439 MSG_LVL_LOW,
440 MSG_LVL_LOW,
441 MSG_LVL_LOW,
442 MSG_LVL_LOW,
443 MSG_LVL_LOW,
444 MSG_LVL_LOW,
445 MSG_LVL_LOW,
446};
447
448static const uint32_t msg_bld_masks_11[] = {
449 MSG_LVL_LOW,
450 MSG_LVL_LOW,
451 MSG_LVL_LOW,
452 MSG_LVL_LOW,
453 MSG_LVL_LOW,
454 MSG_LVL_LOW,
455 MSG_LVL_LOW,
456 MSG_LVL_LOW,
457 MSG_LVL_LOW,
458 MSG_LVL_LOW,
459 MSG_LVL_LOW,
460 MSG_LVL_LOW,
461 MSG_LVL_LOW,
462 MSG_LVL_LOW,
463 MSG_LVL_LOW,
464 MSG_LVL_LOW,
465 MSG_LVL_LOW,
466 MSG_LVL_LOW,
467 MSG_LVL_LOW,
468 MSG_LVL_LOW,
469 MSG_LVL_LOW,
470 MSG_LVL_LOW,
471};
472
473static const uint32_t msg_bld_masks_12[] = {
474 MSG_LVL_MED,
475 MSG_LVL_MED,
476 MSG_LVL_MED,
477 MSG_LVL_MED,
478};
479
480static const uint32_t msg_bld_masks_13[] = {
481 MSG_LVL_MED,
482 MSG_LVL_MED,
483 MSG_LVL_MED,
484 MSG_LVL_MED,
485 MSG_LVL_MED,
486 MSG_LVL_MED,
487 MSG_LVL_MED,
488 MSG_LVL_MED,
489 MSG_LVL_MED,
490 MSG_LVL_MED,
491 MSG_LVL_MED,
492 MSG_LVL_MED,
493};
494
495static const uint32_t msg_bld_masks_14[] = {
496 MSG_LVL_MED,
497 MSG_LVL_MED,
498};
499
500static const uint32_t msg_bld_masks_15[] = {
501 MSG_LVL_MED
502};
503
504static const uint32_t msg_bld_masks_16[] = {
505 MSG_LVL_LOW,
506 MSG_LVL_LOW,
507 MSG_LVL_LOW,
508 MSG_LVL_LOW,
509 MSG_LVL_LOW,
510 MSG_LVL_LOW,
511 MSG_LVL_LOW,
512 MSG_LVL_LOW,
513 MSG_LVL_LOW,
514 MSG_LVL_LOW,
515 MSG_LVL_LOW,
516 MSG_LVL_LOW,
517 MSG_LVL_LOW,
518 MSG_LVL_LOW,
519 MSG_LVL_LOW,
520 MSG_LVL_LOW,
521 MSG_LVL_LOW,
522 MSG_LVL_LOW,
523 MSG_LVL_LOW,
524 MSG_LVL_LOW,
525 MSG_LVL_LOW,
526 MSG_LVL_LOW,
527 MSG_LVL_LOW,
528 MSG_LVL_LOW,
529};
530
531static const uint32_t msg_bld_masks_17[] = {
532 MSG_LVL_MED,
533 MSG_LVL_MED,
534 MSG_LVL_MED,
535 MSG_LVL_MED | MSG_MASK_6 | \
536 MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9,
537 MSG_LVL_MED | MSG_MASK_5 | \
538 MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9 | \
539 MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 | MSG_MASK_13 | \
540 MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 | MSG_MASK_17,
541 MSG_LVL_MED,
542 MSG_LVL_MED | MSG_MASK_5 | \
543 MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9 | \
544 MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 | MSG_MASK_13 | \
545 MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 | MSG_MASK_17 | \
546 MSG_MASK_18 | MSG_MASK_19 | MSG_MASK_20 | MSG_MASK_21 | \
547 MSG_MASK_22,
548 MSG_LVL_MED,
549 MSG_LVL_MED,
550};
551
552static const uint32_t msg_bld_masks_18[] = {
553 MSG_LVL_LOW,
554 MSG_LVL_LOW | MSG_MASK_8 | MSG_MASK_9 | MSG_MASK_10 | \
555 MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14|MSG_MASK_15 | \
556 MSG_MASK_16|MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20,
557 MSG_LVL_LOW | MSG_MASK_5 | MSG_MASK_6,
558 MSG_LVL_LOW | MSG_MASK_5,
559 MSG_LVL_LOW | MSG_MASK_5 | MSG_MASK_6,
560 MSG_LVL_LOW,
561 MSG_LVL_LOW | MSG_MASK_5 | \
562 MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9,
563 MSG_LVL_LOW,
564 MSG_LVL_LOW,
565 MSG_LVL_LOW
566};
567
568/* LOG CODES */
569
570#define LOG_0 0x0
571#define LOG_1 0x1520
572#define LOG_2 0x0
573#define LOG_3 0x0
574#define LOG_4 0x4910
575#define LOG_5 0x5420
576#define LOG_6 0x0
577#define LOG_7 0x74FF
578#define LOG_8 0x0
579#define LOG_9 0x0
580#define LOG_10 0xA38A
581#define LOG_11 0xB201
582#define LOG_12 0x0
583#define LOG_13 0x0
584#define LOG_14 0x0
585#define LOG_15 0x0
586
587#define LOG_GET_ITEM_NUM(xx_code) (xx_code & 0x0FFF)
588
589#endif