Go to the documentation of this file.
29 #ifndef __RTL_DEBUG_H__
30 #define __RTL_DEBUG_H__
79 #define COMP_ERR BIT(0)
80 #define COMP_FW BIT(1)
81 #define COMP_INIT BIT(2)
82 #define COMP_RECV BIT(3)
83 #define COMP_SEND BIT(4)
84 #define COMP_MLME BIT(5)
85 #define COMP_SCAN BIT(6)
86 #define COMP_INTR BIT(7)
87 #define COMP_LED BIT(8)
88 #define COMP_SEC BIT(9)
89 #define COMP_BEACON BIT(10)
90 #define COMP_RATE BIT(11)
91 #define COMP_RXDESC BIT(12)
92 #define COMP_DIG BIT(13)
93 #define COMP_TXAGC BIT(14)
94 #define COMP_HIPWR BIT(15)
95 #define COMP_POWER BIT(16)
96 #define COMP_POWER_TRACKING BIT(17)
97 #define COMP_BB_POWERSAVING BIT(18)
98 #define COMP_SWAS BIT(19)
99 #define COMP_RF BIT(20)
100 #define COMP_TURBO BIT(21)
101 #define COMP_RATR BIT(22)
102 #define COMP_CMD BIT(23)
103 #define COMP_EFUSE BIT(24)
104 #define COMP_QOS BIT(25)
105 #define COMP_MAC80211 BIT(26)
106 #define COMP_REGD BIT(27)
107 #define COMP_CHAN BIT(28)
108 #define COMP_USB BIT(29)
114 #define EEPROM_W BIT(0)
115 #define EFUSE_PG BIT(1)
116 #define EFUSE_READ_ALL BIT(2)
119 #define INIT_EEPROM BIT(0)
120 #define INIT_TxPower BIT(1)
121 #define INIT_IQK BIT(2)
122 #define INIT_RF BIT(3)
125 #define PHY_BBR BIT(0)
126 #define PHY_BBW BIT(1)
127 #define PHY_RFR BIT(2)
128 #define PHY_RFW BIT(3)
129 #define PHY_MACR BIT(4)
130 #define PHY_MACW BIT(5)
131 #define PHY_ALLR BIT(6)
132 #define PHY_ALLW BIT(7)
133 #define PHY_TXPWR BIT(8)
134 #define PHY_PWRDIFF BIT(9)
159 #ifdef CONFIG_RTLWIFI_DEBUG
161 #define RT_ASSERT(_exp, fmt, ...) \
164 printk(KERN_DEBUG KBUILD_MODNAME ":%s(): " fmt, \
165 __func__, ##__VA_ARGS__); \
169 #define RT_TRACE(rtlpriv, comp, level, fmt, ...) \
171 if (unlikely(((comp) & rtlpriv->dbg.global_debugcomponents) && \
172 ((level) <= rtlpriv->dbg.global_debuglevel))) { \
173 printk(KERN_DEBUG KBUILD_MODNAME ":%s():<%lx-%x> " fmt, \
174 __func__, in_interrupt(), in_atomic(), \
179 #define RTPRINT(rtlpriv, dbgtype, dbgflag, fmt, ...) \
181 if (unlikely(rtlpriv->dbg.dbgp_type[dbgtype] & dbgflag)) { \
182 printk(KERN_DEBUG KBUILD_MODNAME ": " fmt, \
187 #define RT_PRINT_DATA(rtlpriv, _comp, _level, _titlestring, _hexdata, \
190 if (unlikely(((_comp) & rtlpriv->dbg.global_debugcomponents) && \
191 (_level <= rtlpriv->dbg.global_debuglevel))) { \
192 printk(KERN_DEBUG "%s: In process \"%s\" (pid %i): %s\n", \
193 KBUILD_MODNAME, current->comm, current->pid, \
195 print_hex_dump_bytes("", DUMP_PREFIX_NONE, \
196 _hexdata, _hexdatalen); \
218 int dbgtype,
int dbgflag,
223 static inline void RT_PRINT_DATA(
struct rtl_priv *rtlpriv,
225 const char *titlestring,
226 const void *hexdata,
size_t hexdatalen)