2 * EVENT_LOG system definitions
4 * Copyright (C) 1999-2019, Broadcom.
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:
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.
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.
25 * <<Broadcom-WL-IPTag/Open:>>
27 * $Id: event_log_set.h 771154 2018-07-09 05:46:33Z $
30 #ifndef _EVENT_LOG_SET_H_
31 #define _EVENT_LOG_SET_H_
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
39 #define NUM_EVENT_LOG_SETS (24)
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)
49 #define EVENT_LOG_SET_MSCH_PROFILER (4u)
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)
56 #define EVENT_LOG_SET_8 (8u)
57 #define EVENT_LOG_SET_PRSRV (EVENT_LOG_SET_8)
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.
65 #define EVENT_LOG_SET_GP_PRSRV_CHATTY (EVENT_LOG_SET_9)
66 #define EVENT_LOG_SET_PRSRV_CHATTY (EVENT_LOG_SET_6)
69 #define EVENT_LOG_SET_PRSRV_BUS (10u)
72 #define EVENT_LOG_SET_PRSRV_WL (11u)
75 #define EVENT_LOG_SET_WL_SLOTTED_BSS (12u)
77 /* PHY entity logging */
78 #define EVENT_LOG_SET_PHY (13u)
81 #define EVENT_LOG_SET_PRSRV_PHY (14u)
84 #define EVENT_LOG_SET_RTE (15u)
86 /* Malloc and free logging */
87 #define EVENT_LOG_SET_MEM_API (16u)
90 #define EVENT_LOG_SET_RTE_CONS_BUF (17u)
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)
97 /* Log sets for capturing power related logs. Note that these sets
98 * are to be used across entire system and not just WL.
100 #define EVENT_LOG_SET_POWER_1 (21u)
101 #define EVENT_LOG_SET_POWER_2 (22u)
103 /* Used for timestamp plotting, TS_LOG() */
104 #define EVENT_LOG_SET_TS_LOG (23u)
106 /* send delayed logs when >= 50% of buffer is full */
107 #ifndef ECOUNTERS_DELAYED_FLUSH_PERCENTAGE
108 #define ECOUNTERS_DELAYED_FLUSH_PERCENTAGE (50)
111 #endif /* _EVENT_LOG_SET_H_ */