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