blob: 2ccbda2ea18650784e86d8bb09e1fa8c1662c9d9 [file] [log] [blame]
Manoj Prabhu Bd4016a42020-01-09 15:03:38 +05301/* Copyright (c) 2008-2020, The Linux Foundation. All rights reserved.
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -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 0x00000001
17#define LOG_MASKS_TYPE 0x00000002
18#define EVENT_MASKS_TYPE 0x00000004
19#define PKT_TYPE 0x00000008
20#define DEINIT_TYPE 0x00000010
21#define USER_SPACE_DATA_TYPE 0x00000020
22#define DCI_DATA_TYPE 0x00000040
23#define USER_SPACE_RAW_DATA_TYPE 0x00000080
24#define DCI_LOG_MASKS_TYPE 0x00000100
25#define DCI_EVENT_MASKS_TYPE 0x00000200
26#define DCI_PKT_TYPE 0x00000400
27#define HDLC_SUPPORT_TYPE 0x00001000
28
29#define USB_MODE 1
30#define MEMORY_DEVICE_MODE 2
31#define NO_LOGGING_MODE 3
32#define UART_MODE 4
33#define SOCKET_MODE 5
34#define CALLBACK_MODE 6
Sreelakshmi Gownipalli75c91e12018-10-16 16:54:43 -070035#define PCIE_MODE 7
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -070036
37/* different values that go in for diag_data_type */
38#define DATA_TYPE_EVENT 0
39#define DATA_TYPE_F3 1
40#define DATA_TYPE_LOG 2
41#define DATA_TYPE_RESPONSE 3
42#define DATA_TYPE_DELAYED_RESPONSE 4
43#define DATA_TYPE_DCI_LOG 0x00000100
44#define DATA_TYPE_DCI_EVENT 0x00000200
45
46/* Different IOCTL values */
47#define DIAG_IOCTL_COMMAND_REG 0
48#define DIAG_IOCTL_COMMAND_DEREG 1
49#define DIAG_IOCTL_SWITCH_LOGGING 7
50#define DIAG_IOCTL_GET_DELAYED_RSP_ID 8
51#define DIAG_IOCTL_LSM_DEINIT 9
52#define DIAG_IOCTL_DCI_INIT 20
53#define DIAG_IOCTL_DCI_DEINIT 21
54#define DIAG_IOCTL_DCI_SUPPORT 22
55#define DIAG_IOCTL_DCI_REG 23
56#define DIAG_IOCTL_DCI_STREAM_INIT 24
57#define DIAG_IOCTL_DCI_HEALTH_STATS 25
58#define DIAG_IOCTL_DCI_LOG_STATUS 26
59#define DIAG_IOCTL_DCI_EVENT_STATUS 27
60#define DIAG_IOCTL_DCI_CLEAR_LOGS 28
61#define DIAG_IOCTL_DCI_CLEAR_EVENTS 29
62#define DIAG_IOCTL_REMOTE_DEV 32
63#define DIAG_IOCTL_VOTE_REAL_TIME 33
64#define DIAG_IOCTL_GET_REAL_TIME 34
65#define DIAG_IOCTL_PERIPHERAL_BUF_CONFIG 35
66#define DIAG_IOCTL_PERIPHERAL_BUF_DRAIN 36
67#define DIAG_IOCTL_REGISTER_CALLBACK 37
68#define DIAG_IOCTL_HDLC_TOGGLE 38
Manoj Prabhu B571cf422017-08-08 19:01:41 +053069#define DIAG_IOCTL_QUERY_PD_LOGGING 39
Manoj Prabhu B8b771912018-10-26 11:59:47 +053070#define DIAG_IOCTL_QUERY_MD_PID 41
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -070071
72/* PC Tools IDs */
73#define APQ8060_TOOLS_ID 4062
74#define AO8960_TOOLS_ID 4064
75#define APQ8064_TOOLS_ID 4072
76#define MSM8625_TOOLS_ID 4075
77#define MSM8930_TOOLS_ID 4076
78#define MSM8630_TOOLS_ID 4077
79#define MSM8230_TOOLS_ID 4078
80#define APQ8030_TOOLS_ID 4079
81#define MSM8627_TOOLS_ID 4080
82#define MSM8227_TOOLS_ID 4081
83#define MSM8974_TOOLS_ID 4083
84#define APQ8074_TOOLS_ID 4090
85#define MSM8916_TOOLS_ID 4094
86#define APQ8084_TOOLS_ID 4095
87#define MSM8994_TOOLS_ID 4097
88#define MSM8939_TOOLS_ID 4103
89#define APQ8026_TOOLS_ID 4104
90#define MSM8909_TOOLS_ID 4108
91#define MSM8992_TOOLS_ID 4111
92#define MSM8952_TOOLS_ID 4110
93#define MSM_8996_TOOLS_ID 4112
94
95#define MSG_MASK_0 (0x00000001)
96#define MSG_MASK_1 (0x00000002)
97#define MSG_MASK_2 (0x00000004)
98#define MSG_MASK_3 (0x00000008)
99#define MSG_MASK_4 (0x00000010)
100#define MSG_MASK_5 (0x00000020)
101#define MSG_MASK_6 (0x00000040)
102#define MSG_MASK_7 (0x00000080)
103#define MSG_MASK_8 (0x00000100)
104#define MSG_MASK_9 (0x00000200)
105#define MSG_MASK_10 (0x00000400)
106#define MSG_MASK_11 (0x00000800)
107#define MSG_MASK_12 (0x00001000)
108#define MSG_MASK_13 (0x00002000)
109#define MSG_MASK_14 (0x00004000)
110#define MSG_MASK_15 (0x00008000)
111#define MSG_MASK_16 (0x00010000)
112#define MSG_MASK_17 (0x00020000)
113#define MSG_MASK_18 (0x00040000)
114#define MSG_MASK_19 (0x00080000)
115#define MSG_MASK_20 (0x00100000)
116#define MSG_MASK_21 (0x00200000)
117#define MSG_MASK_22 (0x00400000)
118#define MSG_MASK_23 (0x00800000)
119#define MSG_MASK_24 (0x01000000)
120#define MSG_MASK_25 (0x02000000)
121#define MSG_MASK_26 (0x04000000)
122#define MSG_MASK_27 (0x08000000)
123#define MSG_MASK_28 (0x10000000)
124#define MSG_MASK_29 (0x20000000)
125#define MSG_MASK_30 (0x40000000)
126#define MSG_MASK_31 (0x80000000)
127
128/* These masks are to be used for support of all legacy messages in the sw.
129 * The user does not need to remember the names as they will be embedded in
130 * the appropriate macros.
131 */
132#define MSG_LEGACY_LOW MSG_MASK_0
133#define MSG_LEGACY_MED MSG_MASK_1
134#define MSG_LEGACY_HIGH MSG_MASK_2
135#define MSG_LEGACY_ERROR MSG_MASK_3
136#define MSG_LEGACY_FATAL MSG_MASK_4
137
138/* Legacy Message Priorities */
139#define MSG_LVL_FATAL (MSG_LEGACY_FATAL)
140#define MSG_LVL_ERROR (MSG_LEGACY_ERROR | MSG_LVL_FATAL)
141#define MSG_LVL_HIGH (MSG_LEGACY_HIGH | MSG_LVL_ERROR)
142#define MSG_LVL_MED (MSG_LEGACY_MED | MSG_LVL_HIGH)
143#define MSG_LVL_LOW (MSG_LEGACY_LOW | MSG_LVL_MED)
144
145#define MSG_LVL_NONE 0
146
147/* This needs to be modified manually now, when we add
148 * a new RANGE of SSIDs to the msg_mask_tbl.
149 */
Chris Lewd7316402017-06-19 15:42:50 -0700150#define MSG_MASK_TBL_CNT 26
Manoj Prabhu B835f9b82020-04-20 13:28:52 +0530151#define APPS_EVENT_LAST_ID 0xCC2
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700152
153#define MSG_SSID_0 0
Manoj Prabhu B835f9b82020-04-20 13:28:52 +0530154#define MSG_SSID_0_LAST 134
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700155#define MSG_SSID_1 500
156#define MSG_SSID_1_LAST 506
157#define MSG_SSID_2 1000
158#define MSG_SSID_2_LAST 1007
159#define MSG_SSID_3 2000
160#define MSG_SSID_3_LAST 2008
161#define MSG_SSID_4 3000
162#define MSG_SSID_4_LAST 3014
163#define MSG_SSID_5 4000
164#define MSG_SSID_5_LAST 4010
165#define MSG_SSID_6 4500
Sreelakshmi Gownipalli68ad9cb2018-04-23 13:41:14 -0700166#define MSG_SSID_6_LAST 4584
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700167#define MSG_SSID_7 4600
Sreelakshmi Gownipalli68ad9cb2018-04-23 13:41:14 -0700168#define MSG_SSID_7_LAST 4616
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700169#define MSG_SSID_8 5000
Manoj Prabhu B930150b2018-09-17 15:58:25 +0530170#define MSG_SSID_8_LAST 5036
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700171#define MSG_SSID_9 5500
Manoj Prabhu B1baf6672019-02-01 12:46:51 +0530172#define MSG_SSID_9_LAST 5517
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700173#define MSG_SSID_10 6000
174#define MSG_SSID_10_LAST 6081
175#define MSG_SSID_11 6500
176#define MSG_SSID_11_LAST 6521
177#define MSG_SSID_12 7000
178#define MSG_SSID_12_LAST 7003
179#define MSG_SSID_13 7100
180#define MSG_SSID_13_LAST 7111
181#define MSG_SSID_14 7200
182#define MSG_SSID_14_LAST 7201
183#define MSG_SSID_15 8000
184#define MSG_SSID_15_LAST 8000
185#define MSG_SSID_16 8500
Manoj Prabhu Bebfd4642019-07-11 12:52:51 +0530186#define MSG_SSID_16_LAST 8532
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700187#define MSG_SSID_17 9000
188#define MSG_SSID_17_LAST 9008
189#define MSG_SSID_18 9500
Chris Lew2aaae992017-03-16 17:20:45 -0700190#define MSG_SSID_18_LAST 9521
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700191#define MSG_SSID_19 10200
192#define MSG_SSID_19_LAST 10210
193#define MSG_SSID_20 10251
194#define MSG_SSID_20_LAST 10255
195#define MSG_SSID_21 10300
196#define MSG_SSID_21_LAST 10300
197#define MSG_SSID_22 10350
198#define MSG_SSID_22_LAST 10377
199#define MSG_SSID_23 10400
Chris Lew5b5cd0a2016-10-11 17:47:48 -0700200#define MSG_SSID_23_LAST 10416
Chris Lewd7316402017-06-19 15:42:50 -0700201#define MSG_SSID_24 10500
202#define MSG_SSID_24_LAST 10505
203#define MSG_SSID_25 0xC000
204#define MSG_SSID_25_LAST 0xC063
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700205
206static const uint32_t msg_bld_masks_0[] = {
207 MSG_LVL_LOW,
208 MSG_LVL_MED,
209 MSG_LVL_LOW,
210 MSG_LVL_ERROR,
211 MSG_LVL_LOW,
212 MSG_LVL_LOW,
213 MSG_LVL_MED,
214 MSG_LVL_HIGH,
215 MSG_LVL_ERROR,
216 MSG_LVL_LOW,
217 MSG_LVL_LOW,
218 MSG_LVL_ERROR,
219 MSG_LVL_MED,
220 MSG_LVL_MED,
221 MSG_LVL_MED,
222 MSG_LVL_HIGH,
223 MSG_LVL_HIGH,
Manoj Prabhu B930150b2018-09-17 15:58:25 +0530224 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8,
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700225 MSG_LVL_LOW,
226 MSG_LVL_ERROR,
227 MSG_LVL_LOW,
228 MSG_LVL_MED,
229 MSG_LVL_MED,
230 MSG_LVL_LOW,
231 MSG_LVL_MED,
232 MSG_LVL_LOW,
233 MSG_LVL_MED,
234 MSG_LVL_MED,
235 MSG_LVL_MED,
236 MSG_LVL_MED,
237 MSG_LVL_MED | MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9 | MSG_MASK_10 |
238 MSG_MASK_11 | MSG_MASK_12 | MSG_MASK_13 | MSG_MASK_14 |
239 MSG_MASK_15 | MSG_MASK_16 | MSG_MASK_17 | MSG_MASK_18 |
240 MSG_MASK_19 | MSG_MASK_20 | MSG_MASK_21,
241 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
242 MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 |
243 MSG_MASK_13 | MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 |
244 MSG_MASK_17,
245 MSG_LVL_LOW,
246 MSG_LVL_MED,
247 MSG_LVL_HIGH,
248 MSG_LVL_HIGH,
249 MSG_LVL_HIGH,
250 MSG_LVL_HIGH,
251 MSG_LVL_MED,
252 MSG_LVL_MED,
253 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8,
254 MSG_LVL_LOW,
255 MSG_LVL_LOW,
256 MSG_LVL_HIGH,
257 MSG_LVL_HIGH,
258 MSG_LVL_HIGH,
259 MSG_LVL_MED,
260 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
261 MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 |
262 MSG_MASK_13 | MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 |
263 MSG_MASK_17 | MSG_MASK_18 | MSG_MASK_19 | MSG_MASK_20 |
264 MSG_MASK_21 | MSG_MASK_22 | MSG_MASK_23 | MSG_MASK_24|
265 MSG_MASK_25,
266 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
267 MSG_MASK_9 | MSG_MASK_10,
268 MSG_LVL_MED,
269 MSG_LVL_LOW,
Sreelakshmi Gownipalli68ad9cb2018-04-23 13:41:14 -0700270 MSG_LVL_MED,
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700271 MSG_LVL_MED,
272 MSG_LVL_LOW,
273 MSG_LVL_LOW,
274 MSG_LVL_LOW,
275 MSG_LVL_HIGH,
276 MSG_LVL_LOW,
277 MSG_LVL_LOW,
278 MSG_LVL_LOW | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8,
279 MSG_LVL_LOW | MSG_MASK_5 | MSG_MASK_6,
280 MSG_LVL_MED,
281 MSG_LVL_MED,
282 MSG_LVL_LOW,
283 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
284 MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 |
285 MSG_MASK_13 | MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 |
286 MSG_MASK_17 | MSG_MASK_18 | MSG_MASK_19 | MSG_MASK_20,
287 MSG_LVL_LOW,
288 MSG_LVL_MED,
289 MSG_LVL_LOW,
290 MSG_LVL_LOW,
291 MSG_LVL_LOW,
292 MSG_LVL_HIGH,
293 MSG_LVL_HIGH,
294 MSG_LVL_LOW,
295 MSG_LVL_LOW,
296 MSG_LVL_LOW,
297 MSG_LVL_LOW,
298 MSG_LVL_LOW,
299 MSG_LVL_HIGH | MSG_MASK_21,
300 MSG_LVL_HIGH,
301 MSG_LVL_LOW,
302 MSG_LVL_LOW,
303 MSG_LVL_LOW,
304 MSG_LVL_LOW,
305 MSG_LVL_LOW,
306 MSG_LVL_LOW,
307 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
308 MSG_LVL_FATAL,
309 MSG_LVL_LOW,
310 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
311 MSG_LVL_FATAL,
312 MSG_LVL_LOW,
313 MSG_LVL_MED,
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 | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
321 MSG_LVL_FATAL,
322 MSG_LVL_MED,
323 MSG_LVL_HIGH,
Sreelakshmi Gownipalli68ad9cb2018-04-23 13:41:14 -0700324 MSG_LVL_MED,
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700325 MSG_LVL_HIGH,
326 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
327 MSG_LVL_FATAL,
328 MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR,
329 MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR,
330 MSG_LVL_MED | MSG_LVL_HIGH,
331 MSG_LVL_MED | MSG_LVL_HIGH,
332 MSG_LVL_LOW,
333 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
334 MSG_LVL_FATAL,
335 MSG_LVL_HIGH,
336 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
337 MSG_LVL_FATAL,
338 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
339 MSG_LVL_FATAL,
340 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
341 MSG_LVL_FATAL,
342 MSG_LVL_LOW,
343 MSG_LVL_MED,
344 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
345 MSG_LVL_FATAL,
346 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
347 MSG_LVL_FATAL,
348 MSG_LVL_MED,
349 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
350 MSG_LVL_FATAL,
351 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
352 MSG_LVL_FATAL,
353 MSG_LVL_MED,
354 MSG_LVL_MED,
Chris Leweddcf452016-10-05 15:01:58 -0700355 MSG_LVL_HIGH,
356 MSG_LVL_LOW,
Manoj Prabhu B7bc95452019-12-04 11:36:50 +0530357 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
358 MSG_LVL_FATAL,
Manoj Prabhu B930150b2018-09-17 15:58:25 +0530359 MSG_LVL_HIGH,
360 MSG_LVL_LOW,
361 MSG_LVL_MED,
362 MSG_LVL_MED,
Manoj Prabhu B1baf6672019-02-01 12:46:51 +0530363 MSG_LVL_HIGH,
Manoj Prabhu B7bc95452019-12-04 11:36:50 +0530364 MSG_LVL_HIGH,
Manoj Prabhu Bd4016a42020-01-09 15:03:38 +0530365 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR,
Manoj Prabhu B835f9b82020-04-20 13:28:52 +0530366 MSG_LVL_HIGH,
367 MSG_LVL_LOW,
368 MSG_LVL_LOW
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700369};
370
371static const uint32_t msg_bld_masks_1[] = {
372 MSG_LVL_MED,
373 MSG_LVL_HIGH,
374 MSG_LVL_HIGH,
375 MSG_LVL_LOW,
376 MSG_LVL_HIGH,
377 MSG_LVL_HIGH,
378 MSG_LVL_HIGH
379};
380
381static const uint32_t msg_bld_masks_2[] = {
382 MSG_LVL_MED,
383 MSG_LVL_MED,
384 MSG_LVL_MED,
385 MSG_LVL_MED,
386 MSG_LVL_MED,
387 MSG_LVL_MED | MSG_MASK_5,
388 MSG_LVL_MED,
389 MSG_LVL_MED
390};
391
392static const uint32_t msg_bld_masks_3[] = {
393 MSG_LVL_MED,
394 MSG_LVL_MED,
395 MSG_LVL_MED,
396 MSG_LVL_MED,
397 MSG_LVL_MED,
398 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
399 MSG_MASK_9 | MSG_MASK_10,
400 MSG_LVL_MED,
401 MSG_LVL_MED,
402 MSG_LVL_MED
403};
404
405static const uint32_t msg_bld_masks_4[] = {
406 MSG_LVL_HIGH,
407 MSG_LVL_HIGH,
408 MSG_LVL_HIGH,
409 MSG_LVL_HIGH,
410 MSG_LVL_HIGH,
411 MSG_LVL_HIGH,
412 MSG_LVL_HIGH,
413 MSG_LVL_HIGH,
414 MSG_LVL_HIGH,
415 MSG_LVL_HIGH,
416 MSG_LVL_HIGH,
417 MSG_LVL_HIGH,
418 MSG_LVL_HIGH,
419 MSG_LVL_LOW,
420 MSG_LVL_LOW
421};
422
423static const uint32_t msg_bld_masks_5[] = {
424 MSG_LVL_HIGH,
425 MSG_LVL_MED,
426 MSG_LVL_HIGH,
427 MSG_LVL_MED,
428 MSG_LVL_MED,
429 MSG_LVL_MED,
430 MSG_LVL_MED,
431 MSG_LVL_MED,
432 MSG_LVL_MED,
433 MSG_LVL_MED | MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 |
434 MSG_MASK_8 | MSG_MASK_9,
435 MSG_LVL_MED
436};
437
438static const uint32_t msg_bld_masks_6[] = {
Manoj Prabhu B930150b2018-09-17 15:58:25 +0530439 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 | MSG_MASK_5,
446 MSG_LVL_LOW | MSG_MASK_5,
447 MSG_LVL_LOW | MSG_MASK_5,
448 MSG_LVL_LOW | MSG_MASK_5,
449 MSG_LVL_LOW | MSG_MASK_5,
450 MSG_LVL_LOW | MSG_MASK_5,
451 MSG_LVL_LOW | MSG_MASK_5,
452 MSG_LVL_LOW | MSG_MASK_5,
453 MSG_LVL_LOW | MSG_MASK_5,
454 MSG_LVL_LOW | MSG_MASK_5,
455 MSG_LVL_LOW | MSG_MASK_5,
456 MSG_LVL_LOW | MSG_MASK_5,
457 MSG_LVL_LOW | MSG_MASK_5,
458 MSG_LVL_LOW | MSG_MASK_5,
459 MSG_LVL_LOW | MSG_MASK_5,
460 MSG_LVL_LOW | MSG_MASK_5,
461 MSG_LVL_LOW | MSG_MASK_5,
462 MSG_LVL_LOW | MSG_MASK_5,
463 MSG_LVL_LOW | MSG_MASK_5,
464 MSG_LVL_LOW | MSG_MASK_5,
465 MSG_LVL_LOW | MSG_MASK_5,
466 MSG_LVL_LOW | MSG_MASK_5,
467 MSG_LVL_LOW | MSG_MASK_5,
468 MSG_LVL_LOW | MSG_MASK_5,
469 MSG_LVL_LOW | MSG_MASK_5,
470 MSG_LVL_LOW | MSG_MASK_5,
471 MSG_LVL_LOW | MSG_MASK_5,
472 MSG_LVL_LOW | MSG_MASK_5,
473 MSG_LVL_LOW | MSG_MASK_5,
474 MSG_LVL_LOW | MSG_MASK_5,
475 MSG_LVL_LOW | MSG_MASK_5,
476 MSG_LVL_LOW | MSG_MASK_5,
477 MSG_LVL_LOW | MSG_MASK_5,
478 MSG_LVL_LOW | MSG_MASK_5,
479 MSG_LVL_LOW | MSG_MASK_5,
480 MSG_LVL_LOW | MSG_MASK_5,
481 MSG_LVL_LOW | MSG_MASK_5,
482 MSG_LVL_LOW | MSG_MASK_5,
483 MSG_LVL_LOW | MSG_MASK_5,
484 MSG_LVL_LOW | MSG_MASK_5,
485 MSG_LVL_LOW | MSG_MASK_5,
486 MSG_LVL_LOW | MSG_MASK_5,
487 MSG_LVL_LOW | MSG_MASK_5,
488 MSG_LVL_LOW | MSG_MASK_5,
489 MSG_LVL_LOW | MSG_MASK_5,
490 MSG_LVL_LOW | MSG_MASK_5,
491 MSG_LVL_LOW | MSG_MASK_5,
492 MSG_LVL_LOW | MSG_MASK_5,
493 MSG_LVL_LOW | MSG_MASK_5,
494 MSG_LVL_LOW | MSG_MASK_5,
495 MSG_LVL_LOW | MSG_MASK_5,
496 MSG_LVL_LOW | MSG_MASK_5,
497 MSG_LVL_LOW | MSG_MASK_5,
498 MSG_LVL_LOW | MSG_MASK_5,
499 MSG_LVL_LOW | MSG_MASK_5,
500 MSG_LVL_LOW | MSG_MASK_5,
501 MSG_LVL_LOW | MSG_MASK_5,
502 MSG_LVL_LOW | MSG_MASK_5,
503 MSG_LVL_LOW | MSG_MASK_5,
504 MSG_LVL_LOW | MSG_MASK_5,
505 MSG_LVL_LOW | MSG_MASK_5,
506 MSG_LVL_LOW | MSG_MASK_5,
507 MSG_LVL_LOW | MSG_MASK_5,
508 MSG_LVL_LOW | MSG_MASK_5,
509 MSG_LVL_LOW | MSG_MASK_5,
510 MSG_LVL_LOW | MSG_MASK_5,
511 MSG_LVL_LOW | MSG_MASK_5,
512 MSG_LVL_LOW | MSG_MASK_5,
513 MSG_LVL_LOW | MSG_MASK_5,
514 MSG_LVL_LOW | MSG_MASK_5,
515 MSG_LVL_LOW | MSG_MASK_5,
516 MSG_LVL_LOW | MSG_MASK_5,
517 MSG_LVL_LOW | MSG_MASK_5,
518 MSG_LVL_LOW | MSG_MASK_5,
519 MSG_LVL_LOW | MSG_MASK_5,
520 MSG_LVL_LOW | MSG_MASK_5,
521 MSG_LVL_LOW | MSG_MASK_5,
522 MSG_LVL_LOW | MSG_MASK_5,
523 MSG_LVL_LOW | MSG_MASK_5,
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700524};
525
526static const uint32_t msg_bld_masks_7[] = {
527 MSG_LVL_MED,
528 MSG_LVL_MED,
529 MSG_LVL_MED,
530 MSG_LVL_MED,
531 MSG_LVL_MED,
532 MSG_LVL_MED,
533 MSG_LVL_MED,
534 MSG_LVL_MED,
535 MSG_LVL_MED,
536 MSG_LVL_MED,
537 MSG_LVL_MED,
538 MSG_LVL_MED,
539 MSG_LVL_LOW,
540 MSG_LVL_LOW,
541 MSG_LVL_LOW,
Sreelakshmi Gownipalli68ad9cb2018-04-23 13:41:14 -0700542 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
543 MSG_LVL_FATAL,
544 MSG_LVL_LOW
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700545};
546
547static const uint32_t msg_bld_masks_8[] = {
548 MSG_LVL_MED,
549 MSG_LVL_MED,
550 MSG_LVL_MED,
551 MSG_LVL_MED,
552 MSG_LVL_MED,
553 MSG_LVL_MED,
554 MSG_LVL_MED,
555 MSG_LVL_MED,
556 MSG_LVL_MED,
557 MSG_LVL_MED,
558 MSG_LVL_MED,
559 MSG_LVL_MED,
560 MSG_LVL_MED,
561 MSG_LVL_MED,
562 MSG_LVL_MED,
563 MSG_LVL_MED,
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700564 MSG_LVL_MED,
565 MSG_LVL_MED,
566 MSG_LVL_MED,
567 MSG_LVL_MED,
568 MSG_LVL_MED,
569 MSG_LVL_MED,
570 MSG_LVL_MED,
571 MSG_LVL_MED,
572 MSG_LVL_MED,
573 MSG_LVL_MED,
574 MSG_LVL_MED,
575 MSG_LVL_MED,
576 MSG_LVL_MED,
Chris Leweddcf452016-10-05 15:01:58 -0700577 MSG_LVL_MED,
Sreelakshmi Gownipalli68ad9cb2018-04-23 13:41:14 -0700578 MSG_LVL_MED,
579 MSG_LVL_MED,
580 MSG_LVL_MED,
Manoj Prabhu B930150b2018-09-17 15:58:25 +0530581 MSG_LVL_MED,
582 MSG_LVL_MED,
583 MSG_LVL_MED,
Chris Leweddcf452016-10-05 15:01:58 -0700584 MSG_LVL_HIGH
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700585};
586
587static const uint32_t msg_bld_masks_9[] = {
588 MSG_LVL_MED | MSG_MASK_5,
589 MSG_LVL_MED | MSG_MASK_5,
590 MSG_LVL_MED | MSG_MASK_5,
591 MSG_LVL_MED | MSG_MASK_5,
592 MSG_LVL_MED | MSG_MASK_5,
593 MSG_LVL_MED | MSG_MASK_5,
594 MSG_LVL_MED | MSG_MASK_5,
595 MSG_LVL_MED | MSG_MASK_5,
596 MSG_LVL_MED | MSG_MASK_5,
597 MSG_LVL_MED | MSG_MASK_5,
598 MSG_LVL_MED | MSG_MASK_5,
599 MSG_LVL_MED | MSG_MASK_5,
600 MSG_LVL_MED | MSG_MASK_5,
601 MSG_LVL_MED | MSG_MASK_5,
602 MSG_LVL_MED | MSG_MASK_5,
603 MSG_LVL_MED | MSG_MASK_5,
Manoj Prabhu B1baf6672019-02-01 12:46:51 +0530604 MSG_LVL_MED | MSG_MASK_5,
605 MSG_LVL_LOW
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700606};
607
608static const uint32_t msg_bld_masks_10[] = {
609 MSG_LVL_MED,
610 MSG_LVL_ERROR,
611 MSG_LVL_LOW,
612 MSG_LVL_LOW | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
613 MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 |
614 MSG_MASK_13 | MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 |
615 MSG_MASK_17 | MSG_MASK_18 | MSG_MASK_19 | MSG_MASK_20 |
616 MSG_MASK_21 | MSG_MASK_22,
617 MSG_LVL_LOW | MSG_MASK_5,
618 MSG_LVL_LOW,
619 MSG_LVL_LOW,
620 MSG_LVL_LOW,
621 MSG_LVL_LOW,
622 MSG_LVL_LOW,
623 MSG_LVL_LOW,
624 MSG_LVL_LOW,
625 MSG_LVL_LOW,
626 MSG_LVL_LOW | MSG_MASK_5,
627 MSG_LVL_LOW | MSG_MASK_5,
628 MSG_LVL_LOW | MSG_MASK_5,
629 MSG_LVL_LOW | MSG_MASK_5,
630 MSG_LVL_LOW | MSG_MASK_5,
631 MSG_LVL_LOW | MSG_MASK_5,
632 MSG_LVL_LOW | MSG_MASK_5,
633 MSG_LVL_LOW | MSG_MASK_5,
634 MSG_LVL_LOW | MSG_MASK_5,
635 MSG_LVL_LOW | MSG_MASK_5,
636 MSG_LVL_LOW | MSG_MASK_5,
637 MSG_LVL_LOW | MSG_MASK_5,
638 MSG_LVL_LOW | MSG_MASK_5,
639 MSG_LVL_LOW | MSG_MASK_5,
640 MSG_LVL_LOW | MSG_MASK_5,
641 MSG_LVL_LOW | MSG_MASK_5,
642 MSG_LVL_LOW | MSG_MASK_5,
643 MSG_LVL_LOW | MSG_MASK_5,
644 MSG_LVL_LOW | MSG_MASK_5,
645 MSG_LVL_LOW,
646 MSG_LVL_MED,
647 MSG_LVL_HIGH,
648 MSG_LVL_LOW,
649 MSG_LVL_LOW,
650 MSG_LVL_LOW | MSG_MASK_5,
651 MSG_LVL_LOW|MSG_MASK_0 | MSG_MASK_1 | MSG_MASK_2 | MSG_MASK_3 |
652 MSG_MASK_4 | MSG_MASK_5 | MSG_MASK_6,
653 MSG_LVL_HIGH,
654 MSG_LVL_LOW,
655 MSG_LVL_LOW,
656 MSG_LVL_LOW,
657 MSG_LVL_LOW,
658 MSG_LVL_LOW,
659 MSG_LVL_LOW,
660 MSG_LVL_LOW,
661 MSG_LVL_LOW,
662 MSG_LVL_LOW,
663 MSG_LVL_LOW,
664 MSG_LVL_LOW,
665 MSG_LVL_LOW,
666 MSG_LVL_MED,
667 MSG_LVL_MED,
668 MSG_LVL_MED,
669 MSG_LVL_MED,
670 MSG_LVL_MED,
671 MSG_LVL_MED,
672 MSG_LVL_MED,
673 MSG_LVL_MED,
674 MSG_LVL_MED,
675 MSG_LVL_MED,
676 MSG_LVL_MED,
677 MSG_LVL_MED,
678 MSG_LVL_MED,
679 MSG_LVL_MED,
680 MSG_LVL_MED,
681 MSG_LVL_MED,
682 MSG_LVL_MED,
683 MSG_LVL_MED,
684 MSG_LVL_MED,
685 MSG_LVL_MED,
686 MSG_LVL_LOW,
Sreelakshmi Gownipalli68ad9cb2018-04-23 13:41:14 -0700687 MSG_LVL_MED,
688 MSG_LVL_MED,
689 MSG_LVL_MED,
690 MSG_LVL_MED,
691 MSG_LVL_MED,
692 MSG_LVL_MED,
693 MSG_LVL_MED,
694 MSG_LVL_MED,
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700695 MSG_LVL_MED
696};
697
698static const uint32_t msg_bld_masks_11[] = {
699 MSG_LVL_LOW,
700 MSG_LVL_LOW,
701 MSG_LVL_LOW,
702 MSG_LVL_LOW,
703 MSG_LVL_LOW,
704 MSG_LVL_LOW,
705 MSG_LVL_LOW,
706 MSG_LVL_LOW,
707 MSG_LVL_LOW,
708 MSG_LVL_LOW,
709 MSG_LVL_LOW,
710 MSG_LVL_LOW,
711 MSG_LVL_LOW,
712 MSG_LVL_LOW,
713 MSG_LVL_LOW,
714 MSG_LVL_LOW,
715 MSG_LVL_LOW,
716 MSG_LVL_LOW,
717 MSG_LVL_LOW,
718 MSG_LVL_LOW,
719 MSG_LVL_LOW,
720 MSG_LVL_LOW,
721};
722
723static const uint32_t msg_bld_masks_12[] = {
724 MSG_LVL_MED,
725 MSG_LVL_MED,
726 MSG_LVL_MED,
727 MSG_LVL_MED,
728};
729
730static const uint32_t msg_bld_masks_13[] = {
731 MSG_LVL_MED,
732 MSG_LVL_MED,
733 MSG_LVL_MED,
734 MSG_LVL_MED,
735 MSG_LVL_MED,
736 MSG_LVL_MED,
737 MSG_LVL_MED,
738 MSG_LVL_MED,
739 MSG_LVL_MED,
740 MSG_LVL_MED,
741 MSG_LVL_MED,
742 MSG_LVL_MED,
743};
744
745static const uint32_t msg_bld_masks_14[] = {
746 MSG_LVL_MED,
747 MSG_LVL_MED,
748};
749
750static const uint32_t msg_bld_masks_15[] = {
751 MSG_LVL_MED
752};
753
754static const uint32_t msg_bld_masks_16[] = {
755 MSG_LVL_LOW,
756 MSG_LVL_LOW,
757 MSG_LVL_LOW,
758 MSG_LVL_LOW,
759 MSG_LVL_LOW,
760 MSG_LVL_LOW,
761 MSG_LVL_LOW,
762 MSG_LVL_LOW,
763 MSG_LVL_LOW,
764 MSG_LVL_LOW,
765 MSG_LVL_LOW,
766 MSG_LVL_LOW,
767 MSG_LVL_LOW,
768 MSG_LVL_LOW,
769 MSG_LVL_LOW,
770 MSG_LVL_LOW,
771 MSG_LVL_LOW,
772 MSG_LVL_LOW,
773 MSG_LVL_LOW,
774 MSG_LVL_LOW,
775 MSG_LVL_LOW,
776 MSG_LVL_LOW,
777 MSG_LVL_LOW,
778 MSG_LVL_LOW,
779 MSG_LVL_LOW,
780 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
781 MSG_LVL_FATAL,
782 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
783 MSG_LVL_FATAL,
784 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
785 MSG_LVL_FATAL,
786 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
787 MSG_LVL_FATAL,
788 MSG_LVL_LOW | MSG_LVL_MED | MSG_LVL_HIGH | MSG_LVL_ERROR |
Manoj Prabhu B28cd5f82018-10-26 14:22:46 +0530789 MSG_LVL_FATAL,
790 MSG_LVL_MED,
Manoj Prabhu Bebfd4642019-07-11 12:52:51 +0530791 MSG_LVL_MED,
792 MSG_LVL_LOW
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700793};
794
795static const uint32_t msg_bld_masks_17[] = {
796 MSG_LVL_MED,
797 MSG_LVL_MED,
798 MSG_LVL_MED,
799 MSG_LVL_MED | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9,
800 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
801 MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 |
802 MSG_MASK_13 | MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 |
803 MSG_MASK_17,
804 MSG_LVL_MED,
805 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
806 MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 |
807 MSG_MASK_13 | MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 |
808 MSG_MASK_17 | MSG_MASK_18 | MSG_MASK_19 | MSG_MASK_20 |
809 MSG_MASK_21 | MSG_MASK_22,
810 MSG_LVL_MED,
811 MSG_LVL_MED,
812};
813
814static const uint32_t msg_bld_masks_18[] = {
815 MSG_LVL_LOW,
Manoj Prabhu B930150b2018-09-17 15:58:25 +0530816 MSG_LVL_MED | MSG_MASK_8 | MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 |
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700817 MSG_MASK_12 | MSG_MASK_13 | MSG_MASK_14 | MSG_MASK_15 |
818 MSG_MASK_16 | MSG_MASK_17 | MSG_MASK_18 | MSG_MASK_19 |
819 MSG_MASK_20,
Manoj Prabhu B930150b2018-09-17 15:58:25 +0530820 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6,
821 MSG_LVL_MED | MSG_MASK_5,
822 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6,
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700823 MSG_LVL_LOW,
Manoj Prabhu B930150b2018-09-17 15:58:25 +0530824 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700825 MSG_MASK_9,
826 MSG_LVL_LOW,
827 MSG_LVL_LOW,
Manoj Prabhu B930150b2018-09-17 15:58:25 +0530828 MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
829 MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 |
830 MSG_MASK_13 | MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 |
831 MSG_MASK_20 | MSG_MASK_21 | MSG_MASK_22,
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700832 MSG_LVL_LOW
833};
834
835static const uint32_t msg_bld_masks_19[] = {
836 MSG_LVL_LOW,
837 MSG_LVL_LOW,
838 MSG_LVL_LOW,
839 MSG_LVL_LOW,
840 MSG_LVL_LOW,
841 MSG_LVL_LOW,
842 MSG_LVL_LOW,
843 MSG_LVL_LOW,
844 MSG_LVL_LOW,
845 MSG_LVL_LOW,
846 MSG_LVL_LOW
847};
848
849static const uint32_t msg_bld_masks_20[] = {
Sreelakshmi Gownipalli68ad9cb2018-04-23 13:41:14 -0700850 MSG_LVL_LOW | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 |
851 MSG_MASK_8 | MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 |
852 MSG_MASK_12,
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700853 MSG_LVL_LOW,
854 MSG_LVL_LOW,
855 MSG_LVL_LOW,
856 MSG_LVL_LOW
857};
858
859static const uint32_t msg_bld_masks_21[] = {
860 MSG_LVL_HIGH
861};
862
863static const uint32_t msg_bld_masks_22[] = {
864 MSG_LVL_LOW,
865 MSG_LVL_LOW,
866 MSG_LVL_LOW,
867 MSG_LVL_LOW,
868 MSG_LVL_LOW,
869 MSG_LVL_LOW,
870 MSG_LVL_LOW,
871 MSG_LVL_LOW,
872 MSG_LVL_LOW,
873 MSG_LVL_LOW,
874 MSG_LVL_LOW,
875 MSG_LVL_LOW,
876 MSG_LVL_LOW,
877 MSG_LVL_LOW,
878 MSG_LVL_LOW,
879 MSG_LVL_LOW,
880 MSG_LVL_LOW,
881 MSG_LVL_LOW,
882 MSG_LVL_LOW,
883 MSG_LVL_LOW,
884 MSG_LVL_LOW,
885 MSG_LVL_LOW,
886 MSG_LVL_LOW,
887 MSG_LVL_LOW,
888 MSG_LVL_LOW,
889 MSG_LVL_LOW,
890 MSG_LVL_LOW,
891 MSG_LVL_LOW
892};
893
894static const uint32_t msg_bld_masks_23[] = {
895 MSG_LVL_LOW,
896 MSG_LVL_LOW,
897 MSG_LVL_LOW,
898 MSG_LVL_LOW,
899 MSG_LVL_LOW,
900 MSG_LVL_LOW,
901 MSG_LVL_LOW,
902 MSG_LVL_LOW,
903 MSG_LVL_LOW,
904 MSG_LVL_LOW,
905 MSG_LVL_LOW,
906 MSG_LVL_LOW,
907 MSG_LVL_LOW,
908 MSG_LVL_LOW,
909 MSG_LVL_LOW,
Chris Lew5b5cd0a2016-10-11 17:47:48 -0700910 MSG_LVL_LOW,
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700911 MSG_LVL_LOW
912};
913
Chris Lewd7316402017-06-19 15:42:50 -0700914static const uint32_t msg_bld_masks_24[] = {
915 MSG_LVL_HIGH,
916 MSG_LVL_HIGH,
917 MSG_LVL_HIGH,
918 MSG_LVL_HIGH,
919 MSG_LVL_HIGH,
920 MSG_LVL_HIGH
921};
922
923static const uint32_t msg_bld_masks_25[] = {
924 MSG_LVL_LOW
925};
926
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700927/* LOG CODES */
928static const uint32_t log_code_last_tbl[] = {
929 0x0, /* EQUIP ID 0 */
Manoj Prabhu B835f9b82020-04-20 13:28:52 +0530930 0x1CDD, /* EQUIP ID 1 */
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700931 0x0, /* EQUIP ID 2 */
932 0x0, /* EQUIP ID 3 */
933 0x4910, /* EQUIP ID 4 */
934 0x5420, /* EQUIP ID 5 */
935 0x0, /* EQUIP ID 6 */
936 0x74FF, /* EQUIP ID 7 */
937 0x0, /* EQUIP ID 8 */
938 0x0, /* EQUIP ID 9 */
939 0xA38A, /* EQUIP ID 10 */
Sreelakshmi Gownipalli68ad9cb2018-04-23 13:41:14 -0700940 0xB9FF, /* EQUIP ID 11 */
Sreelakshmi Gownipallicb8893d2016-10-19 16:02:34 -0700941 0x0, /* EQUIP ID 12 */
942 0xD1FF, /* EQUIP ID 13 */
943 0x0, /* EQUIP ID 14 */
944 0x0, /* EQUIP ID 15 */
945};
946
947#define LOG_GET_ITEM_NUM(xx_code) (xx_code & 0x0FFF)
948#define LOG_GET_EQUIP_ID(xx_code) ((xx_code & 0xF000) >> 12)
949#define LOG_ITEMS_TO_SIZE(num_items) ((num_items+7)/8)
950#define LOG_SIZE_TO_ITEMS(size) ((8*size) - 7)
951#define EVENT_COUNT_TO_BYTES(count) ((count/8) + 1)
952
953#endif