1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * EVENT_LOG system definitions 4 * 5 * Copyright (C) 1999-2019, Broadcom. 6 * 7 * Unless you and Broadcom execute a separate written software license 8 * agreement governing use of this software, this software is licensed to you 9 * under the terms of the GNU General Public License version 2 (the "GPL"), 10 * available at http://www.broadcom.com/licenses/GPLv2.php, with the 11 * following added to such license: 12 * 13 * As a special exception, the copyright holders of this software give you 14 * permission to link this software with independent modules, and to copy and 15 * distribute the resulting executable under terms of your choice, provided that 16 * you also meet, for each linked independent module, the terms and conditions of 17 * the license of that module. An independent module is a module which is not 18 * derived from this software. The special exception does not apply to any 19 * modifications of the software. 20 * 21 * Notwithstanding the above, under no circumstances may you combine this 22 * software in any way with any other Broadcom software provided under a license 23 * other than the GPL, without Broadcom's express prior written consent. 24 * 25 * 26 * <<Broadcom-WL-IPTag/Open:>> 27 * 28 * $Id: event_log_tag.h 820429 2019-05-17 22:30:04Z $ 29 */ 30 31 #ifndef _EVENT_LOG_TAG_H_ 32 #define _EVENT_LOG_TAG_H_ 33 34 #include <typedefs.h> 35 36 /* Define new event log tags here */ 37 #define EVENT_LOG_TAG_NULL 0 /* Special null tag */ 38 #define EVENT_LOG_TAG_TS 1 /* Special timestamp tag */ 39 40 /* HSIC Legacy support */ 41 /* Possible candidates for reuse */ 42 #define EVENT_LOG_TAG_BUS_OOB 2 43 #define EVENT_LOG_TAG_BUS_STATE 3 44 #define EVENT_LOG_TAG_BUS_PROTO 4 45 #define EVENT_LOG_TAG_BUS_CTL 5 46 #define EVENT_LOG_TAG_BUS_EVENT 6 47 #define EVENT_LOG_TAG_BUS_PKT 7 48 #define EVENT_LOG_TAG_BUS_FRAME 8 49 #define EVENT_LOG_TAG_BUS_DESC 9 50 #define EVENT_LOG_TAG_BUS_SETUP 10 51 #define EVENT_LOG_TAG_BUS_MISC 11 52 53 #define EVENT_LOG_TAG_SRSCAN 22 54 #define EVENT_LOG_TAG_PWRSTATS_INFO 23 55 56 /* Timestamp logging for plotting. */ 57 #define EVENT_LOG_TAG_TSLOG 26 58 59 /* Possible candidates for reuse */ 60 #define EVENT_LOG_TAG_UCODE_FIFO 27 61 62 #define EVENT_LOG_TAG_SCAN_TRACE_LOW 28 63 #define EVENT_LOG_TAG_SCAN_TRACE_HIGH 29 64 #define EVENT_LOG_TAG_SCAN_ERROR 30 65 #define EVENT_LOG_TAG_SCAN_WARN 31 66 #define EVENT_LOG_TAG_MPF_ERR 32 67 #define EVENT_LOG_TAG_MPF_WARN 33 68 #define EVENT_LOG_TAG_MPF_INFO 34 69 #define EVENT_LOG_TAG_MPF_DEBUG 35 70 #define EVENT_LOG_TAG_EVENT_INFO 36 71 #define EVENT_LOG_TAG_EVENT_ERR 37 72 #define EVENT_LOG_TAG_PWRSTATS_ERROR 38 73 #define EVENT_LOG_TAG_EXCESS_PM_ERROR 39 74 #define EVENT_LOG_TAG_IOCTL_LOG 40 75 #define EVENT_LOG_TAG_PFN_ERR 41 76 #define EVENT_LOG_TAG_PFN_WARN 42 77 #define EVENT_LOG_TAG_PFN_INFO 43 78 #define EVENT_LOG_TAG_PFN_DEBUG 44 79 #define EVENT_LOG_TAG_BEACON_LOG 45 80 #define EVENT_LOG_TAG_WNM_BSSTRANS_INFO 46 81 #define EVENT_LOG_TAG_TRACE_CHANSW 47 82 #define EVENT_LOG_TAG_PCI_ERROR 48 83 #define EVENT_LOG_TAG_PCI_TRACE 49 84 #define EVENT_LOG_TAG_PCI_WARN 50 85 #define EVENT_LOG_TAG_PCI_INFO 51 86 #define EVENT_LOG_TAG_PCI_DBG 52 87 #define EVENT_LOG_TAG_PCI_DATA 53 88 #define EVENT_LOG_TAG_PCI_RING 54 89 #define EVENT_LOG_TAG_RANGING_TRACE 55 90 #define EVENT_LOG_TAG_WL_ERROR 56 91 #define EVENT_LOG_TAG_PHY_ERROR 57 92 #define EVENT_LOG_TAG_OTP_ERROR 58 93 #define EVENT_LOG_TAG_NOTIF_ERROR 59 94 #define EVENT_LOG_TAG_MPOOL_ERROR 60 95 #define EVENT_LOG_TAG_OBJR_ERROR 61 96 #define EVENT_LOG_TAG_DMA_ERROR 62 97 #define EVENT_LOG_TAG_PMU_ERROR 63 98 #define EVENT_LOG_TAG_BSROM_ERROR 64 99 #define EVENT_LOG_TAG_SI_ERROR 65 100 #define EVENT_LOG_TAG_ROM_PRINTF 66 101 #define EVENT_LOG_TAG_RATE_CNT 67 102 #define EVENT_LOG_TAG_CTL_MGT_CNT 68 103 #define EVENT_LOG_TAG_AMPDU_DUMP 69 104 #define EVENT_LOG_TAG_MEM_ALLOC_SUCC 70 105 #define EVENT_LOG_TAG_MEM_ALLOC_FAIL 71 106 #define EVENT_LOG_TAG_MEM_FREE 72 107 #define EVENT_LOG_TAG_WL_ASSOC_LOG 73 108 #define EVENT_LOG_TAG_WL_PS_LOG 74 109 #define EVENT_LOG_TAG_WL_ROAM_LOG 75 110 #define EVENT_LOG_TAG_WL_MPC_LOG 76 111 #define EVENT_LOG_TAG_WL_WSEC_LOG 77 112 #define EVENT_LOG_TAG_WL_WSEC_DUMP 78 113 #define EVENT_LOG_TAG_WL_MCNX_LOG 79 114 #define EVENT_LOG_TAG_HEALTH_CHECK_ERROR 80 115 #define EVENT_LOG_TAG_HNDRTE_EVENT_ERROR 81 116 #define EVENT_LOG_TAG_ECOUNTERS_ERROR 82 117 #define EVENT_LOG_TAG_WL_COUNTERS 83 118 #define EVENT_LOG_TAG_ECOUNTERS_IPCSTATS 84 119 #define EVENT_LOG_TAG_WL_P2P_LOG 85 120 #define EVENT_LOG_TAG_SDIO_ERROR 86 121 #define EVENT_LOG_TAG_SDIO_TRACE 87 122 #define EVENT_LOG_TAG_SDIO_DBG 88 123 #define EVENT_LOG_TAG_SDIO_PRHDRS 89 124 #define EVENT_LOG_TAG_SDIO_PRPKT 90 125 #define EVENT_LOG_TAG_SDIO_INFORM 91 126 #define EVENT_LOG_TAG_MIMO_PS_ERROR 92 127 #define EVENT_LOG_TAG_MIMO_PS_TRACE 93 128 #define EVENT_LOG_TAG_MIMO_PS_INFO 94 129 #define EVENT_LOG_TAG_BTCX_STATS 95 130 #define EVENT_LOG_TAG_LEAKY_AP_STATS 96 131 #define EVENT_LOG_TAG_MIMO_PS_STATS 98 132 #define EVENT_LOG_TAG_PWRSTATS_PHY 99 133 #define EVENT_LOG_TAG_PWRSTATS_SCAN 100 134 #define EVENT_LOG_TAG_PWRSTATS_WAKE_V2 102 135 #define EVENT_LOG_TAG_LQM 103 136 #define EVENT_LOG_TAG_TRACE_WL_INFO 104 137 #define EVENT_LOG_TAG_TRACE_BTCOEX_INFO 105 138 #define EVENT_LOG_TAG_ECOUNTERS_TIME_DATA 106 139 #define EVENT_LOG_TAG_NAN_ERROR 107 140 #define EVENT_LOG_TAG_NAN_INFO 108 141 #define EVENT_LOG_TAG_NAN_DBG 109 142 #define EVENT_LOG_TAG_STF_ARBITRATOR_ERROR 110 143 #define EVENT_LOG_TAG_STF_ARBITRATOR_TRACE 111 144 #define EVENT_LOG_TAG_STF_ARBITRATOR_WARN 112 145 #define EVENT_LOG_TAG_SCAN_SUMMARY 113 146 #define EVENT_LOG_TAG_PROXD_SAMPLE_COLLECT 114 147 #define EVENT_LOG_TAG_OCL_INFO 115 148 #define EVENT_LOG_TAG_RSDB_PMGR_DEBUG 116 149 #define EVENT_LOG_TAG_RSDB_PMGR_ERR 117 150 #define EVENT_LOG_TAG_NAT_ERR 118 151 #define EVENT_LOG_TAG_NAT_WARN 119 152 #define EVENT_LOG_TAG_NAT_INFO 120 153 #define EVENT_LOG_TAG_NAT_DEBUG 121 154 #define EVENT_LOG_TAG_STA_INFO 122 155 #define EVENT_LOG_TAG_PROXD_ERROR 123 156 #define EVENT_LOG_TAG_PROXD_TRACE 124 157 #define EVENT_LOG_TAG_PROXD_INFO 125 158 #define EVENT_LOG_TAG_IE_ERROR 126 159 #define EVENT_LOG_TAG_ASSOC_ERROR 127 160 #define EVENT_LOG_TAG_SCAN_ERR 128 161 #define EVENT_LOG_TAG_AMSDU_ERROR 129 162 #define EVENT_LOG_TAG_AMPDU_ERROR 130 163 #define EVENT_LOG_TAG_KM_ERROR 131 164 #define EVENT_LOG_TAG_DFS 132 165 #define EVENT_LOG_TAG_REGULATORY 133 166 #define EVENT_LOG_TAG_CSA 134 167 #define EVENT_LOG_TAG_WNM_BSSTRANS_ERR 135 168 #define EVENT_LOG_TAG_SUP_INFO 136 169 #define EVENT_LOG_TAG_SUP_ERROR 137 170 #define EVENT_LOG_TAG_CHANCTXT_TRACE 138 171 #define EVENT_LOG_TAG_CHANCTXT_INFO 139 172 #define EVENT_LOG_TAG_CHANCTXT_ERROR 140 173 #define EVENT_LOG_TAG_CHANCTXT_WARN 141 174 #define EVENT_LOG_TAG_MSCHPROFILE 142 175 #define EVENT_LOG_TAG_4WAYHANDSHAKE 143 176 #define EVENT_LOG_TAG_MSCHPROFILE_TLV 144 177 #define EVENT_LOG_TAG_ADPS 145 178 #define EVENT_LOG_TAG_MBO_DBG 146 179 #define EVENT_LOG_TAG_MBO_INFO 147 180 #define EVENT_LOG_TAG_MBO_ERR 148 181 #define EVENT_LOG_TAG_TXDELAY 149 182 #define EVENT_LOG_TAG_BCNTRIM_INFO 150 183 #define EVENT_LOG_TAG_BCNTRIM_TRACE 151 184 #define EVENT_LOG_TAG_OPS_INFO 152 185 #define EVENT_LOG_TAG_STATS 153 186 #define EVENT_LOG_TAG_BAM 154 187 #define EVENT_LOG_TAG_TXFAIL 155 188 #define EVENT_LOG_TAG_RANDMAC_INFO 159 189 #define EVENT_LOG_TAG_RANDMAC_DBG 160 190 #define EVENT_LOG_TAG_RANDMAC_ERR 161 191 #define EVENT_LOG_TAG_MSCH_CAL 163 192 #define EVENT_LOG_TAG_MSCH_OPP_CAL 164 193 #define EVENT_LOG_TAG_MSCH 165 194 #define EVENT_LOG_TAG_NAN_SYNC 166 195 #define EVENT_LOG_TAG_NAN_DPE 167 196 #define EVENT_LOG_TAG_NAN_SCHED 168 197 #define EVENT_LOG_TAG_NAN_RNG 169 198 #define EVENT_LOG_TAG_NAN_DAM 170 199 #define EVENT_LOG_TAG_NAN_NA 171 200 #define EVENT_LOG_TAG_NAN_NDL 172 201 #define EVENT_LOG_TAG_NAN_NDP 173 202 #define EVENT_LOG_TAG_NAN_SEC 174 203 #define EVENT_LOG_TAG_NAN_MAC 175 204 #define EVENT_LOG_TAG_NAN_FSM 176 205 206 #define EVENT_LOG_TAG_TPA_ERR 192 207 #define EVENT_LOG_TAG_TPA_INFO 193 208 #define EVENT_LOG_TAG_OCE_DBG 194 209 #define EVENT_LOG_TAG_OCE_INFO 195 210 #define EVENT_LOG_TAG_OCE_ERR 196 211 #define EVENT_LOG_TAG_WL_WARN 197 212 #define EVENT_LOG_TAG_SB_ERR 198 213 #define EVENT_LOG_TAG_SB_INFO 199 214 #define EVENT_LOG_TAG_SB_SCHED 200 215 #define EVENT_LOG_TAG_ADPS_INFO 201 216 #define EVENT_LOG_TAG_SB_CMN_SYNC_INFO 202 217 #define EVENT_LOG_TAG_PHY_CAL_INFO 203 /* PHY CALs scheduler info */ 218 #define EVENT_LOG_TAG_EVT_NOTIF_INFO 204 219 #define EVENT_LOG_TAG_PHY_HC_ERROR 205 220 #define EVENT_LOG_TAG_PHY_TXPWR_WARN 206 221 #define EVENT_LOG_TAG_PHY_TXPWR_INFO 207 222 #define EVENT_LOG_TAG_PHY_ACI_INFO 208 223 #define EVENT_LOG_TAG_WL_COUNTERS_AUX 209 224 #define EVENT_LOG_TAG_AMPDU_DUMP_AUX 210 225 #define EVENT_LOG_TAG_PWRSTATS_PHY_AUX 212 226 #define EVENT_LOG_TAG_PWRSTATS_SCAN_AUX 213 227 #define EVENT_LOG_TAG_PWRSTATS_WAKE_V2_AUX 214 228 #define EVENT_LOG_TAG_SVT_TESTING 215 /* SVT testing/verification */ 229 #define EVENT_LOG_TAG_HND_SMD_ERROR 216 230 #define EVENT_LOG_TAG_PSBW_INFO 217 231 #define EVENT_LOG_TAG_PHY_CAL_DBG 218 232 #define EVENT_LOG_TAG_FILS_DBG 219 233 #define EVENT_LOG_TAG_FILS_INFO 220 234 #define EVENT_LOG_TAG_FILS_ERROR 221 235 #define EVENT_LOG_TAG_HWA_TXPOST 222 236 #define EVENT_LOG_TAG_HWA_TXDMA 223 237 #define EVENT_LOG_TAG_PPR_ERROR 224 238 239 /* Arbitrator callback log tags */ 240 #define EVENT_LOG_TAG_STF_ARB_CB_TRACE 224 241 #define EVENT_LOG_TAG_STF_ARB_CB_ERROR 225 242 #define EVENT_LOG_TAG_PHY_PERIODIC_SEC 226 243 #define EVENT_LOG_TAG_RTE_ERROR 227 244 #define EVENT_LOG_TAG_CPLT_ERROR 228 245 #define EVENT_LOG_TAG_DNGL_ERROR 229 246 #define EVENT_LOG_TAG_NVRAM_ERROR 230 247 #define EVENT_LOG_TAG_NAC 231 248 #define EVENT_LOG_TAG_HP2P_ERR 232 249 #define EVENT_LOG_TAG_SB_SCHED_DBG_SYNC 233 250 #define EVENT_LOG_TAG_ENHANCED_TS 234 251 252 /* Available space for new tags for Dingo, Iguana and branches 253 * prior to Koala only. From Koala onwards, new tags must be greater 254 * than 255. If a tag is required for Koala and legacy productization branches, 255 * add that tag here. Tags > 255 will generate extended header. Legacy code 256 * does not understand extended header. 257 */ 258 259 /* Debug tags for making debug builds */ 260 #define EVENT_LOG_TAG_DBG1 251 261 #define EVENT_LOG_TAG_DBG2 252 262 #define EVENT_LOG_TAG_DBG3 253 263 #define EVENT_LOG_TAG_DBG4 254 264 #define EVENT_LOG_TAG_DBG5 255 265 266 /* Insert new tags here for Koala onwards */ 267 268 /* NAN INFO/ERR evnt tags */ 269 #define EVENT_LOG_TAG_NAN_SYNC_INFO 256 270 #define EVENT_LOG_TAG_NAN_DPE_INFO 257 271 #define EVENT_LOG_TAG_NAN_SCHED_INFO 258 272 #define EVENT_LOG_TAG_NAN_RNG_INFO 259 273 #define EVENT_LOG_TAG_NAN_DAM_INFO 260 274 #define EVENT_LOG_TAG_NAN_NA_INFO 261 275 #define EVENT_LOG_TAG_NAN_NDL_INFO 262 276 #define EVENT_LOG_TAG_NAN_NDP_INFO 263 277 #define EVENT_LOG_TAG_NAN_SEC_INFO 264 278 #define EVENT_LOG_TAG_NAN_MAC_INFO 265 279 #define EVENT_LOG_TAG_NAN_FSM_INFO 266 280 #define EVENT_LOG_TAG_NAN_PEER_INFO 267 281 #define EVENT_LOG_TAG_NAN_AVAIL_INFO 268 282 #define EVENT_LOG_TAG_NAN_CMN_INFO 269 283 #define EVENT_LOG_TAG_NAN_SYNC_ERR 270 284 #define EVENT_LOG_TAG_NAN_DPE_ERR 271 285 #define EVENT_LOG_TAG_NAN_SCHED_ERR 272 286 #define EVENT_LOG_TAG_NAN_RNG_ERR 273 287 #define EVENT_LOG_TAG_NAN_DAM_ERR 274 288 #define EVENT_LOG_TAG_NAN_NA_ERR 275 289 #define EVENT_LOG_TAG_NAN_NDL_ERR 276 290 #define EVENT_LOG_TAG_NAN_NDP_ERR 277 291 #define EVENT_LOG_TAG_NAN_SEC_ERR 278 292 #define EVENT_LOG_TAG_NAN_MAC_ERR 279 293 #define EVENT_LOG_TAG_NAN_FSM_ERR 280 294 #define EVENT_LOG_TAG_NAN_PEER_ERR 281 295 #define EVENT_LOG_TAG_NAN_AVAIL_ERR 282 296 #define EVENT_LOG_TAG_NAN_CMN_ERR 283 297 298 /* More NAN DBG evt Tags */ 299 #define EVENT_LOG_TAG_NAN_PEER 284 300 #define EVENT_LOG_TAG_NAN_AVAIL 285 301 #define EVENT_LOG_TAG_NAN_CMN 286 302 303 #define EVENT_LOG_TAG_SAE_ERROR 287 304 #define EVENT_LOG_TAG_SAE_INFO 288 305 306 /* rxsig module logging */ 307 #define EVENT_LOG_TAG_RXSIG_ERROR 289 308 #define EVENT_LOG_TAG_RXSIG_DEBUG 290 309 #define EVENT_LOG_TAG_RXSIG_INFO 291 310 311 /* HE TWT HEB EVEVNT_LOG_TAG */ 312 #define EVENT_LOG_TAG_WL_HE_INFO 292 313 #define EVENT_LOG_TAG_WL_HE_TRACE 293 314 #define EVENT_LOG_TAG_WL_HE_WARN 294 315 #define EVENT_LOG_TAG_WL_HE_ERROR 295 316 #define EVENT_LOG_TAG_WL_TWT_INFO 296 317 #define EVENT_LOG_TAG_WL_TWT_TRACE 297 318 #define EVENT_LOG_TAG_WL_TWT_WARN 298 319 #define EVENT_LOG_TAG_WL_TWT_ERROR 299 320 #define EVENT_LOG_TAG_WL_HEB_ERROR 300 321 #define EVENT_LOG_TAG_WL_HEB_TRACE 301 322 323 /* RRM EVENT_LOG_TAG */ 324 #define EVENT_LOG_TAG_RRM_DBG 302 325 #define EVENT_LOG_TAG_RRM_INFO 303 326 #define EVENT_LOG_TAG_RRM_ERR 304 327 328 /* scan core */ 329 #define EVENT_LOG_TAG_SC 305 330 331 #define EVENT_LOG_TAG_ESP_DBG 306 332 #define EVENT_LOG_TAG_ESP_INFO 307 333 #define EVENT_LOG_TAG_ESP_ERR 308 334 335 /* SDC */ 336 #define EVENT_LOG_TAG_SDC_DBG 309 337 #define EVENT_LOG_TAG_SDC_INFO 310 338 #define EVENT_LOG_TAG_SDC_ERR 311 339 340 /* RTE */ 341 #define EVENT_LOG_TAG_RTE_ERR 312 342 343 /* TX FIFO */ 344 #define EVENT_LOG_TAG_FIFO_INFO 313 345 346 /* PKTTS */ 347 #define EVENT_LOG_TAG_LATENCY_INFO 314 348 349 /* TDLS */ 350 #define EVENT_LOG_TAG_WL_TDLS_INFO 315 351 #define EVENT_LOG_TAG_WL_TDLS_DBG 316 352 #define EVENT_LOG_TAG_WL_TDLS_ERR 317 353 354 /* MSCH messages */ 355 #define EVENT_LOG_TAG_MSCH_DATASTRUCT 319 356 #define EVENT_LOG_TAG_MSCH_REGISTER 320 357 #define EVENT_LOG_TAG_MSCH_CALLBACK 321 358 #define EVENT_LOG_TAG_MSCH_ERROR 322 359 #define EVENT_LOG_TAG_MSCH_DEBUG 323 360 #define EVENT_LOG_TAG_MSCH_INFORM 324 361 #define EVENT_LOG_TAG_MSCH_TRACE 325 362 363 /* bus low power related info messages */ 364 #define EVENT_LOG_TAG_WL_BUS_LP_INFO 326 365 #define EVENT_LOG_TAG_PCI_LP_INFO 327 366 367 /* SBSS BT-Coex */ 368 #define EVENT_LOG_TAG_SB_BTCX_INFO 328 369 370 /* wbus */ 371 #define EVENT_LOG_TAG_WBUS_ERR 329 372 #define EVENT_LOG_TAG_WBUS_INFO 330 373 #define EVENT_LOG_TAG_WBUS_SCHED 331 374 375 /* MODESW */ 376 #define EVENT_LOG_TAG_MODESW_ERR 332 377 378 /* LPHS */ 379 #define EVENT_LOG_TAG_LPHS_ERR 333 380 381 /* CPU statistics */ 382 #define EVENT_LOG_TAG_ARM_STAT 334 383 384 /* Event log tags for SOE */ 385 #define EVENT_LOG_TAG_SOE_ERROR 335 386 #define EVENT_LOG_TAG_SOE_INFO 336 387 388 /* Event log tags for GCI Shared Memory */ 389 #define EVENT_LOG_TAG_GCISHM_ERR 337 390 #define EVENT_LOG_TAG_GCISHM_INFO 338 391 392 /* Eevent log tags for Enhanced Roam Log */ 393 #define EVENT_LOG_TAG_ROAM_ENHANCED_LOG 339 394 395 /* WL BTCEC */ 396 #define EVENT_LOG_TAG_BTCEC_ERR 340 397 #define EVENT_LOG_TAG_BTCEC_INFO 341 398 #define EVENT_LOG_TAG_BTCEC_SCHED 342 399 400 /* EVENT_LOG_TAG_MAX = Set to the same value of last tag, not last tag + 1 */ 401 #define EVENT_LOG_TAG_MAX 342 402 403 typedef enum wl_el_set_type_def { 404 EVENT_LOG_SET_TYPE_DEFAULT = 0, /* flush the log buffer when it is full - Default option */ 405 EVENT_LOG_SET_TYPE_PRSRV = 1, /* flush the log buffer based on fw or host trigger */ 406 EVENT_LOG_SET_TYPE_DFLUSH = 2 /* flush the log buffer once the watermark is reached */ 407 } wl_el_set_type_def_t; 408 409 #define EVENT_LOG_TAG_FLUSH_NONE 0x00 /* No flush */ 410 #define EVENT_LOG_TAG_FLUSH_ALL 0x40 /* Flush all preserved sets */ 411 #define EVENT_LOG_TAG_FLUSH_SETNUM 0x80 /* Flush preserved set */ 412 #define EVENT_LOG_TAG_FLUSH_MASK 0x3f /* SetNum Mask */ 413 414 typedef enum wl_el_flush_type { 415 EL_TAG_PRSRV_FLUSH_NONE = 0, /* No flush of preserve buf on this tag */ 416 EL_TAG_PRSRV_FLUSH_SETNUM, /* Flush the buffer set specifid on this tag */ 417 EL_TAG_PRSRV_FLUSH_ALL /* Flush all preserved buffer set on this tag */ 418 } wl_el_flush_type_t; 419 420 #define EVENT_LOG_FLUSH_CURRENT_VERSION 0 421 typedef struct wl_el_set_flush_prsrv_s { 422 uint16 version; 423 uint16 len; 424 uint16 tag; /* Tag for which preserve flush should be done */ 425 uint8 flush_type; /* Check wl_el_flush_type_t */ 426 uint8 set_num; /* Log set num to flush. Max is NUM_EVENT_LOG_SETS. Valid only when 427 * action is EVENT_LOG_TAG_FLUSH_SETNUM 428 */ 429 } wl_el_set_flush_prsrv_t; 430 431 #define SD_PRHDRS(i, s, h, p, n, l) 432 #define SD_PRPKT(m, b, n) 433 #define SD_INFORM(args) 434 435 /* Flags for tag control */ 436 #define EVENT_LOG_TAG_FLAG_NONE 0 437 #define EVENT_LOG_TAG_FLAG_LOG 0x80 438 #define EVENT_LOG_TAG_FLAG_PRINT 0x40 439 #define EVENT_LOG_TAG_FLAG_SET_MASK 0x3f 440 441 /* Each event log entry has a type. The type is the LAST word of the 442 * event log. The printing code walks the event entries in reverse 443 * order to find the first entry. 444 */ 445 typedef union event_log_hdr { 446 struct { 447 uint8 tag; /* Event_log entry tag */ 448 uint8 count; /* Count of 4-byte entries */ 449 uint16 fmt_num; /* Format number */ 450 }; 451 uint32 t; /* Type cheat */ 452 } event_log_hdr_t; 453 454 /* for internal use - legacy max. tag */ 455 #define EVENT_LOG_TAG_MAX_LEGACY_FORMAT 255 456 457 /* 458 * The position of the extended header in the event log stream will be as follows: 459 * <event log payload><ARM cycle count timestamp><extended header><regular header> 460 * Extended header could be due to count > 255 or tag > 255. 461 * 462 * Extended count: 6 bits long. 8 bits (existing) + 6 bits => 463 * 2^14 words = 65536 bytes payload max 464 * Extended count field is currently reserved 465 * Extended tag: 8 (existing) + 4 bits = 12 bits =>2^12 = 4096 tags 466 * bits[7..4] of extended tags are reserved. 467 * MSB 16 bits of the extended header are reserved for future use. 468 */ 469 470 typedef union event_log_extended_hdr { 471 struct { 472 uint8 extended_tag; /* Extended tag, bits[7..4] are reserved */ 473 uint8 extended_count; /* Extended count. Reserved for now. */ 474 uint16 rsvd; /* Reserved */ 475 }; 476 477 uint32 t; /* Type cheat */ 478 } event_log_extended_hdr_t; 479 #endif /* _EVENT_LOG_TAG_H_ */ 480