#ifndef __RTL_DEBUG_H__
#define __RTL_DEBUG_H__
#define DBG_WARNING …
#define DBG_DMESG …
#define DBG_LOUD …
#define DBG_TRACE …
#define COMP_ERR …
#define COMP_FW …
#define COMP_INIT …
#define COMP_RECV …
#define COMP_SEND …
#define COMP_MLME …
#define COMP_SCAN …
#define COMP_INTR …
#define COMP_LED …
#define COMP_SEC …
#define COMP_BEACON …
#define COMP_RATE …
#define COMP_RXDESC …
#define COMP_DIG …
#define COMP_TXAGC …
#define COMP_HIPWR …
#define COMP_POWER …
#define COMP_POWER_TRACKING …
#define COMP_BB_POWERSAVING …
#define COMP_SWAS …
#define COMP_RF …
#define COMP_TURBO …
#define COMP_RATR …
#define COMP_CMD …
#define COMP_EFUSE …
#define COMP_QOS …
#define COMP_MAC80211 …
#define COMP_REGD …
#define COMP_CHAN …
#define COMP_USB …
#define COMP_EASY_CONCURRENT …
#define COMP_BT_COEXIST …
#define COMP_IQK …
#define COMP_TX_REPORT …
#define EEPROM_W …
#define EFUSE_PG …
#define EFUSE_READ_ALL …
#define INIT_EEPROM …
#define INIT_TXPOWER …
#define INIT_IQK …
#define INIT_RF …
#define PHY_BBR …
#define PHY_BBW …
#define PHY_RFR …
#define PHY_RFW …
#define PHY_MACR …
#define PHY_MACW …
#define PHY_ALLR …
#define PHY_ALLW …
#define PHY_TXPWR …
#define PHY_PWRDIFF …
#define WA_IOT …
#define DM_PWDB …
#define DM_MONITOR …
#define DM_DIG …
#define DM_EDCA_TURBO …
#define DM_PWDB …
enum dbgp_flag_e { … };
#ifdef CONFIG_RTLWIFI_DEBUG
struct rtl_priv;
__printf(4, 5)
void _rtl_dbg_print(struct rtl_priv *rtlpriv, u64 comp, int level,
const char *fmt, ...);
void _rtl_dbg_print_data(struct rtl_priv *rtlpriv, u64 comp, int level,
const char *titlestring,
const void *hexdata, int hexdatalen);
#define rtl_dbg(rtlpriv, comp, level, fmt, ...) …
#define RTPRINT(rtlpriv, dbgtype, dbgflag, fmt, ...) …
#define RT_PRINT_DATA(rtlpriv, _comp, _level, _titlestring, _hexdata, \
_hexdatalen) …
#else
struct rtl_priv;
__printf(4, 5)
static inline void rtl_dbg(struct rtl_priv *rtlpriv,
u64 comp, int level,
const char *fmt, ...)
{
}
__printf(4, 5)
static inline void RTPRINT(struct rtl_priv *rtlpriv,
int dbgtype, int dbgflag,
const char *fmt, ...)
{
}
static inline void RT_PRINT_DATA(struct rtl_priv *rtlpriv,
u64 comp, int level,
const char *titlestring,
const void *hexdata, size_t hexdatalen)
{
}
#endif
#ifdef CONFIG_RTLWIFI_DEBUG
void rtl_debug_add_one(struct ieee80211_hw *hw);
void rtl_debug_remove_one(struct ieee80211_hw *hw);
void rtl_debugfs_add_topdir(void);
void rtl_debugfs_remove_topdir(void);
#else
#define rtl_debug_add_one …
#define rtl_debug_remove_one …
#define rtl_debugfs_add_topdir …
#define rtl_debugfs_remove_topdir …
#endif
#endif