root/drivers/net/wireless/realtek/rtw88/debug.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. rtw_debugfs_init
  2. rtw_dbg

   1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
   2 /* Copyright(c) 2018-2019  Realtek Corporation
   3  */
   4 
   5 #ifndef __RTW_DEBUG_H
   6 #define __RTW_DEBUG_H
   7 
   8 enum rtw_debug_mask {
   9         RTW_DBG_PCI             = 0x00000001,
  10         RTW_DBG_TX              = 0x00000002,
  11         RTW_DBG_RX              = 0x00000004,
  12         RTW_DBG_PHY             = 0x00000008,
  13         RTW_DBG_FW              = 0x00000010,
  14         RTW_DBG_EFUSE           = 0x00000020,
  15         RTW_DBG_COEX            = 0x00000040,
  16         RTW_DBG_RFK             = 0x00000080,
  17         RTW_DBG_REGD            = 0x00000100,
  18         RTW_DBG_DEBUGFS         = 0x00000200,
  19 
  20         RTW_DBG_ALL             = 0xffffffff
  21 };
  22 
  23 #ifdef CONFIG_RTW88_DEBUGFS
  24 
  25 void rtw_debugfs_init(struct rtw_dev *rtwdev);
  26 
  27 #else
  28 
  29 static inline void rtw_debugfs_init(struct rtw_dev *rtwdev) {}
  30 
  31 #endif /* CONFIG_RTW88_DEBUGFS */
  32 
  33 #ifdef CONFIG_RTW88_DEBUG
  34 
  35 __printf(3, 4)
  36 void __rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask,
  37                const char *fmt, ...);
  38 
  39 #define rtw_dbg(rtwdev, a...) __rtw_dbg(rtwdev, ##a)
  40 
  41 #else
  42 
  43 static inline void rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask,
  44                            const char *fmt, ...) {}
  45 
  46 #endif /* CONFIG_RTW88_DEBUG */
  47 
  48 #define rtw_info(rtwdev, a...) dev_info(rtwdev->dev, ##a)
  49 #define rtw_warn(rtwdev, a...) dev_warn(rtwdev->dev, ##a)
  50 #define rtw_err(rtwdev, a...) dev_err(rtwdev->dev, ##a)
  51 
  52 #endif

/* [<][>][^][v][top][bottom][index][help] */