source: G950FXXS5DSI1
[GitHub/exynos8895/android_kernel_samsung_universal8895.git] / drivers / net / wireless / bcmdhd4361 / include / event_log_set.h
1 /*
2 * EVENT_LOG system definitions
3 *
4 * Copyright (C) 1999-2019, Broadcom.
5 *
6 * Unless you and Broadcom execute a separate written software license
7 * agreement governing use of this software, this software is licensed to you
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
10 * following added to such license:
11 *
12 * As a special exception, the copyright holders of this software give you
13 * permission to link this software with independent modules, and to copy and
14 * distribute the resulting executable under terms of your choice, provided that
15 * you also meet, for each linked independent module, the terms and conditions of
16 * the license of that module. An independent module is a module which is not
17 * derived from this software. The special exception does not apply to any
18 * modifications of the software.
19 *
20 * Notwithstanding the above, under no circumstances may you combine this
21 * software in any way with any other Broadcom software provided under a license
22 * other than the GPL, without Broadcom's express prior written consent.
23 *
24 *
25 * <<Broadcom-WL-IPTag/Open:>>
26 *
27 * $Id: event_log_set.h 771154 2018-07-09 05:46:33Z $
28 */
29
30 #ifndef _EVENT_LOG_SET_H_
31 #define _EVENT_LOG_SET_H_
32
33 #ifndef NUM_EVENT_LOG_SETS
34 /* Set a maximum number of sets here. It is not dynamic for
35 * efficiency of the EVENT_LOG calls. Old branches could define
36 * this to an appropriat enumber in their makefiles to reduce
37 * ROM invalidation
38 */
39 #define NUM_EVENT_LOG_SETS (24)
40 #endif // endif
41
42 /* Set assignments */
43 #define EVENT_LOG_SET_BUS (0u)
44 #define EVENT_LOG_SET_WL (1u)
45 #define EVENT_LOG_SET_PSM (2u)
46 #define EVENT_LOG_SET_ERROR (3u)
47
48 /* MSCH logging */
49 #define EVENT_LOG_SET_MSCH_PROFILER (4u)
50
51 #define EVENT_LOG_SET_5 (5u)
52 #define EVENT_LOG_SET_ECOUNTERS (EVENT_LOG_SET_5)
53 #define EVENT_LOG_SET_6 (6u)
54 #define EVENT_LOG_SET_7 (7u)
55
56 #define EVENT_LOG_SET_8 (8u)
57 #define EVENT_LOG_SET_PRSRV (EVENT_LOG_SET_8)
58
59 #define EVENT_LOG_SET_9 (9u)
60 /* General purpose preserve chatty.
61 * EVENT_LOG_SET_PRSRV_CHATTY log set should not be used by FW as it is
62 * used by customer host. FW should use EVENT_LOG_SET_GP_PRSRV_CHATTY
63 * for general purpose preserve chatty logs.
64 */
65 #define EVENT_LOG_SET_GP_PRSRV_CHATTY (EVENT_LOG_SET_9)
66 #define EVENT_LOG_SET_PRSRV_CHATTY (EVENT_LOG_SET_6)
67
68 /* BUS preserve */
69 #define EVENT_LOG_SET_PRSRV_BUS (10u)
70
71 /* WL preserve */
72 #define EVENT_LOG_SET_PRSRV_WL (11u)
73
74 /* Slotted BSS set */
75 #define EVENT_LOG_SET_WL_SLOTTED_BSS (12u)
76
77 /* PHY entity logging */
78 #define EVENT_LOG_SET_PHY (13u)
79
80 /* PHY preserve */
81 #define EVENT_LOG_SET_PRSRV_PHY (14u)
82
83 /* RTE entity */
84 #define EVENT_LOG_SET_RTE (15u)
85
86 /* Malloc and free logging */
87 #define EVENT_LOG_SET_MEM_API (16u)
88
89 /* Console buffer */
90 #define EVENT_LOG_SET_RTE_CONS_BUF (17u)
91
92 /* three log sets for general debug purposes */
93 #define EVENT_LOG_SET_GENERAL_DBG_1 (18u)
94 #define EVENT_LOG_SET_GENERAL_DBG_2 (19u)
95 #define EVENT_LOG_SET_GENERAL_DBG_3 (20u)
96
97 /* Log sets for capturing power related logs. Note that these sets
98 * are to be used across entire system and not just WL.
99 */
100 #define EVENT_LOG_SET_POWER_1 (21u)
101 #define EVENT_LOG_SET_POWER_2 (22u)
102
103 /* Used for timestamp plotting, TS_LOG() */
104 #define EVENT_LOG_SET_TS_LOG (23u)
105
106 /* send delayed logs when >= 50% of buffer is full */
107 #ifndef ECOUNTERS_DELAYED_FLUSH_PERCENTAGE
108 #define ECOUNTERS_DELAYED_FLUSH_PERCENTAGE (50)
109 #endif // endif
110
111 #endif /* _EVENT_LOG_SET_H_ */