1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
4  *
5  * Contact Information: wlanfae <wlanfae@realtek.com>
6  */
7 #ifndef _RTL_DEBUG_H
8 #define _RTL_DEBUG_H
9 
10 #include <linux/bits.h>
11 
12 /* Allow files to override DRV_NAME */
13 #ifndef DRV_NAME
14 #define DRV_NAME "rtllib_92e"
15 #endif
16 
17 extern u32 rt_global_debug_component;
18 
19 /* These are the defines for rt_global_debug_component */
20 enum RTL_DEBUG {
21 	COMP_TRACE		= BIT(0),
22 	COMP_DBG		= BIT(1),
23 	COMP_INIT		= BIT(2),
24 	COMP_RECV		= BIT(3),
25 	COMP_POWER		= BIT(6),
26 	COMP_SWBW		= BIT(8),
27 	COMP_SEC		= BIT(9),
28 	COMP_LPS		= BIT(10),
29 	COMP_QOS		= BIT(11),
30 	COMP_RATE		= BIT(12),
31 	COMP_RXDESC		= BIT(13),
32 	COMP_PHY		= BIT(14),
33 	COMP_DIG		= BIT(15),
34 	COMP_TXAGC		= BIT(16),
35 	COMP_HALDM		= BIT(17),
36 	COMP_POWER_TRACKING	= BIT(18),
37 	COMP_CH			= BIT(19),
38 	COMP_RF			= BIT(20),
39 	COMP_FIRMWARE		= BIT(21),
40 	COMP_RESET		= BIT(23),
41 	COMP_CMDPKT		= BIT(24),
42 	COMP_SCAN		= BIT(25),
43 	COMP_PS			= BIT(26),
44 	COMP_DOWN		= BIT(27),
45 	COMP_INTR		= BIT(28),
46 	COMP_ERR		= BIT(31)
47 };
48 
49 #endif
50