adt3-S dhd_driver source code [1/1]
[GitHub/LineageOS/G12/android_hardware_amlogic_kernel-modules_dhd-driver.git] / bcmdhd.1.579.77.41.1.cn / include / event_log_tag.h
1 /*
2 * EVENT_LOG system definitions
3 *
4 * Copyright (C) 1999-2017, Broadcom Corporation
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_tag.h 700681 2017-05-20 16:37:38Z $
28 */
29
30 #ifndef _EVENT_LOG_TAG_H_
31 #define _EVENT_LOG_TAG_H_
32
33 #include <typedefs.h>
34
35 /* Define new event log tags here */
36 #define EVENT_LOG_TAG_NULL 0 /* Special null tag */
37 #define EVENT_LOG_TAG_TS 1 /* Special timestamp tag */
38 #define EVENT_LOG_TAG_BUS_OOB 2
39 #define EVENT_LOG_TAG_BUS_STATE 3
40 #define EVENT_LOG_TAG_BUS_PROTO 4
41 #define EVENT_LOG_TAG_BUS_CTL 5
42 #define EVENT_LOG_TAG_BUS_EVENT 6
43 #define EVENT_LOG_TAG_BUS_PKT 7
44 #define EVENT_LOG_TAG_BUS_FRAME 8
45 #define EVENT_LOG_TAG_BUS_DESC 9
46 #define EVENT_LOG_TAG_BUS_SETUP 10
47 #define EVENT_LOG_TAG_BUS_MISC 11
48 #define EVENT_LOG_TAG_SRSCAN 22
49 #define EVENT_LOG_TAG_PWRSTATS_INFO 23
50 #define EVENT_LOG_TAG_UCODE_WATCHDOG 26
51 #define EVENT_LOG_TAG_UCODE_FIFO 27
52 #define EVENT_LOG_TAG_SCAN_TRACE_LOW 28
53 #define EVENT_LOG_TAG_SCAN_TRACE_HIGH 29
54 #define EVENT_LOG_TAG_SCAN_ERROR 30
55 #define EVENT_LOG_TAG_SCAN_WARN 31
56 #define EVENT_LOG_TAG_MPF_ERR 32
57 #define EVENT_LOG_TAG_MPF_WARN 33
58 #define EVENT_LOG_TAG_MPF_INFO 34
59 #define EVENT_LOG_TAG_MPF_DEBUG 35
60 #define EVENT_LOG_TAG_EVENT_INFO 36
61 #define EVENT_LOG_TAG_EVENT_ERR 37
62 #define EVENT_LOG_TAG_PWRSTATS_ERROR 38
63 #define EVENT_LOG_TAG_EXCESS_PM_ERROR 39
64 #define EVENT_LOG_TAG_IOCTL_LOG 40
65 #define EVENT_LOG_TAG_PFN_ERR 41
66 #define EVENT_LOG_TAG_PFN_WARN 42
67 #define EVENT_LOG_TAG_PFN_INFO 43
68 #define EVENT_LOG_TAG_PFN_DEBUG 44
69 #define EVENT_LOG_TAG_BEACON_LOG 45
70 #define EVENT_LOG_TAG_WNM_BSSTRANS_INFO 46
71 #define EVENT_LOG_TAG_TRACE_CHANSW 47
72 #define EVENT_LOG_TAG_PCI_ERROR 48
73 #define EVENT_LOG_TAG_PCI_TRACE 49
74 #define EVENT_LOG_TAG_PCI_WARN 50
75 #define EVENT_LOG_TAG_PCI_INFO 51
76 #define EVENT_LOG_TAG_PCI_DBG 52
77 #define EVENT_LOG_TAG_PCI_DATA 53
78 #define EVENT_LOG_TAG_PCI_RING 54
79 /* EVENT_LOG_TAG_AWDL_TRACE_RANGING will be removed after wlc_ranging merge from IGUANA
80 * keeping it here to avoid compilation error on trunk
81 */
82 #define EVENT_LOG_TAG_AWDL_TRACE_RANGING 55
83 #define EVENT_LOG_TAG_RANGING_TRACE 55
84 #define EVENT_LOG_TAG_WL_ERROR 56
85 #define EVENT_LOG_TAG_PHY_ERROR 57
86 #define EVENT_LOG_TAG_OTP_ERROR 58
87 #define EVENT_LOG_TAG_NOTIF_ERROR 59
88 #define EVENT_LOG_TAG_MPOOL_ERROR 60
89 #define EVENT_LOG_TAG_OBJR_ERROR 61
90 #define EVENT_LOG_TAG_DMA_ERROR 62
91 #define EVENT_LOG_TAG_PMU_ERROR 63
92 #define EVENT_LOG_TAG_BSROM_ERROR 64
93 #define EVENT_LOG_TAG_SI_ERROR 65
94 #define EVENT_LOG_TAG_ROM_PRINTF 66
95 #define EVENT_LOG_TAG_RATE_CNT 67
96 #define EVENT_LOG_TAG_CTL_MGT_CNT 68
97 #define EVENT_LOG_TAG_AMPDU_DUMP 69
98 #define EVENT_LOG_TAG_MEM_ALLOC_SUCC 70
99 #define EVENT_LOG_TAG_MEM_ALLOC_FAIL 71
100 #define EVENT_LOG_TAG_MEM_FREE 72
101 #define EVENT_LOG_TAG_WL_ASSOC_LOG 73
102 #define EVENT_LOG_TAG_WL_PS_LOG 74
103 #define EVENT_LOG_TAG_WL_ROAM_LOG 75
104 #define EVENT_LOG_TAG_WL_MPC_LOG 76
105 #define EVENT_LOG_TAG_WL_WSEC_LOG 77
106 #define EVENT_LOG_TAG_WL_WSEC_DUMP 78
107 #define EVENT_LOG_TAG_WL_MCNX_LOG 79
108 #define EVENT_LOG_TAG_HEALTH_CHECK_ERROR 80
109 #define EVENT_LOG_TAG_HNDRTE_EVENT_ERROR 81
110 #define EVENT_LOG_TAG_ECOUNTERS_ERROR 82
111 #define EVENT_LOG_TAG_WL_COUNTERS 83
112 #define EVENT_LOG_TAG_ECOUNTERS_IPCSTATS 84
113 #define EVENT_LOG_TAG_WL_P2P_LOG 85
114 #define EVENT_LOG_TAG_SDIO_ERROR 86
115 #define EVENT_LOG_TAG_SDIO_TRACE 87
116 #define EVENT_LOG_TAG_SDIO_DBG 88
117 #define EVENT_LOG_TAG_SDIO_PRHDRS 89
118 #define EVENT_LOG_TAG_SDIO_PRPKT 90
119 #define EVENT_LOG_TAG_SDIO_INFORM 91
120 #define EVENT_LOG_TAG_MIMO_PS_ERROR 92
121 #define EVENT_LOG_TAG_MIMO_PS_TRACE 93
122 #define EVENT_LOG_TAG_MIMO_PS_INFO 94
123 #define EVENT_LOG_TAG_BTCX_STATS 95
124 #define EVENT_LOG_TAG_LEAKY_AP_STATS 96
125 #define EVENT_LOG_TAG_AWDL_TRACE_ELECTION 97
126 #define EVENT_LOG_TAG_MIMO_PS_STATS 98
127 #define EVENT_LOG_TAG_PWRSTATS_PHY 99
128 #define EVENT_LOG_TAG_PWRSTATS_SCAN 100
129 #define EVENT_LOG_TAG_PWRSTATS_AWDL 101
130 #define EVENT_LOG_TAG_PWRSTATS_WAKE_V2 102
131 #define EVENT_LOG_TAG_LQM 103
132 #define EVENT_LOG_TAG_TRACE_WL_INFO 104
133 #define EVENT_LOG_TAG_TRACE_BTCOEX_INFO 105
134 #define EVENT_LOG_TAG_ECOUNTERS_TIME_DATA 106
135 #define EVENT_LOG_TAG_NAN_ERROR 107
136 #define EVENT_LOG_TAG_NAN_INFO 108
137 #define EVENT_LOG_TAG_NAN_DBG 109
138 #define EVENT_LOG_TAG_STF_ARBITRATOR_ERROR 110
139 #define EVENT_LOG_TAG_STF_ARBITRATOR_TRACE 111
140 #define EVENT_LOG_TAG_STF_ARBITRATOR_WARN 112
141 #define EVENT_LOG_TAG_SCAN_SUMMARY 113
142 #define EVENT_LOG_TAG_PROXD_SAMPLE_COLLECT 114
143 #define EVENT_LOG_TAG_OCL_INFO 115
144 #define EVENT_LOG_TAG_RSDB_PMGR_DEBUG 116
145 #define EVENT_LOG_TAG_RSDB_PMGR_ERR 117
146 #define EVENT_LOG_TAG_NAT_ERR 118
147 #define EVENT_LOG_TAG_NAT_WARN 119
148 #define EVENT_LOG_TAG_NAT_INFO 120
149 #define EVENT_LOG_TAG_NAT_DEBUG 121
150 #define EVENT_LOG_TAG_STA_INFO 122
151 #define EVENT_LOG_TAG_PROXD_ERROR 123
152 #define EVENT_LOG_TAG_PROXD_TRACE 124
153 #define EVENT_LOG_TAG_PROXD_INFO 125
154 #define EVENT_LOG_TAG_IE_ERROR 126
155 #define EVENT_LOG_TAG_ASSOC_ERROR 127
156 #define EVENT_LOG_TAG_SCAN_ERR 128
157 #define EVENT_LOG_TAG_AMSDU_ERROR 129
158 #define EVENT_LOG_TAG_AMPDU_ERROR 130
159 #define EVENT_LOG_TAG_KM_ERROR 131
160 #define EVENT_LOG_TAG_DFS 132
161 #define EVENT_LOG_TAG_REGULATORY 133
162 #define EVENT_LOG_TAG_CSA 134
163 #define EVENT_LOG_TAG_WNM_BSSTRANS_ERR 135
164 #define EVENT_LOG_TAG_SUP_INFO 136
165 #define EVENT_LOG_TAG_SUP_ERROR 137
166 #define EVENT_LOG_TAG_CHANCTXT_TRACE 138
167 #define EVENT_LOG_TAG_CHANCTXT_INFO 139
168 #define EVENT_LOG_TAG_CHANCTXT_ERROR 140
169 #define EVENT_LOG_TAG_CHANCTXT_WARN 141
170 #define EVENT_LOG_TAG_MSCHPROFILE 142
171 #define EVENT_LOG_TAG_4WAYHANDSHAKE 143
172 #define EVENT_LOG_TAG_MSCHPROFILE_TLV 144
173 #define EVENT_LOG_TAG_ADPS 145
174 #define EVENT_LOG_TAG_MBO_DBG 146
175 #define EVENT_LOG_TAG_MBO_INFO 147
176 #define EVENT_LOG_TAG_MBO_ERR 148
177 #define EVENT_LOG_TAG_TXDELAY 149
178 #define EVENT_LOG_TAG_BCNTRIM_INFO 150
179 #define EVENT_LOG_TAG_BCNTRIM_TRACE 151
180 #define EVENT_LOG_TAG_OPS_INFO 152
181 #define EVENT_LOG_TAG_STATS 153
182 #define EVENT_LOG_TAG_BAM 154
183 #define EVENT_LOG_TAG_TXFAIL 155
184 #define EVENT_LOG_TAG_AWDL_CONFIG_DBG 156
185 #define EVENT_LOG_TAG_AWDL_SYNC_DBG 157
186 #define EVENT_LOG_TAG_AWDL_PEER_DBG 158
187 #define EVENT_LOG_TAG_RANDMAC_INFO 159
188 #define EVENT_LOG_TAG_RANDMAC_DBG 160
189 #define EVENT_LOG_TAG_RANDMAC_ERR 161
190 #define EVENT_LOG_TAG_AWDL_DFSP_DBG 162
191 #define EVENT_LOG_TAG_TPA_ERR 163
192 #define EVENT_LOG_TAG_TPA_INFO 164
193
194 /* EVENT_LOG_TAG_MAX = Set to the same value of last tag, not last tag + 1 */
195 #define EVENT_LOG_TAG_MAX 164
196 /* Note: New event should be added/reserved in trunk before adding it to branches */
197
198
199 #define SD_PRHDRS(i, s, h, p, n, l)
200 #define SD_PRPKT(m, b, n)
201 #define SD_INFORM(args)
202
203 /* Flags for tag control */
204 #define EVENT_LOG_TAG_FLAG_NONE 0
205 #define EVENT_LOG_TAG_FLAG_LOG 0x80
206 #define EVENT_LOG_TAG_FLAG_PRINT 0x40
207 #define EVENT_LOG_TAG_FLAG_SET_MASK 0x3f
208
209 /* Each event log entry has a type. The type is the LAST word of the
210 * event log. The printing code walks the event entries in reverse
211 * order to find the first entry.
212 */
213 typedef union event_log_hdr {
214 struct {
215 uint8 tag; /* Event_log entry tag */
216 uint8 count; /* Count of 4-byte entries */
217 uint16 fmt_num; /* Format number */
218 };
219 uint32 t; /* Type cheat */
220 } event_log_hdr_t;
221
222 #endif /* _EVENT_LOG_TAG_H_ */