The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/dev/rtw88/debug.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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         RTW_DBG_PS              = 0x00000400,
   20         RTW_DBG_BF              = 0x00000800,
   21         RTW_DBG_WOW             = 0x00001000,
   22         RTW_DBG_CFO             = 0x00002000,
   23         RTW_DBG_PATH_DIV        = 0x00004000,
   24         RTW_DBG_ADAPTIVITY      = 0x00008000,
   25         RTW_DBG_HW_SCAN         = 0x00010000,
   26         RTW_DBG_STATE           = 0x00020000,
   27 
   28 #if defined(__FreeBSD__)
   29         RTW_DBG_IO_RW           = 0x80000000,
   30 #endif
   31         RTW_DBG_ALL             = 0xffffffff
   32 };
   33 
   34 #ifdef CONFIG_RTW88_DEBUGFS
   35 
   36 void rtw_debugfs_init(struct rtw_dev *rtwdev);
   37 void rtw_debugfs_get_simple_phy_info(struct seq_file *m);
   38 
   39 #else
   40 
   41 static inline void rtw_debugfs_init(struct rtw_dev *rtwdev) {}
   42 
   43 #endif /* CONFIG_RTW88_DEBUGFS */
   44 
   45 #ifdef CONFIG_RTW88_DEBUG
   46 
   47 __printf(3, 4)
   48 void __rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask,
   49                const char *fmt, ...);
   50 
   51 #if defined(__linux__)
   52 #define rtw_dbg(rtwdev, a...) __rtw_dbg(rtwdev, ##a)
   53 #elif defined(__FreeBSD__)
   54 #define rtw_dbg(rtwdev, ...)    __rtw_dbg(rtwdev, __VA_ARGS__)
   55 #endif
   56 
   57 #else
   58 
   59 static inline void rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask,
   60                            const char *fmt, ...) {}
   61 
   62 #endif /* CONFIG_RTW88_DEBUG */
   63 
   64 #define rtw_info(rtwdev, a...) dev_info(rtwdev->dev, ##a)
   65 #define rtw_warn(rtwdev, a...) dev_warn(rtwdev->dev, ##a)
   66 #define rtw_err(rtwdev, a...) dev_err(rtwdev->dev, ##a)
   67 
   68 #endif

Cache object: 1a25e3956262ea2d41d423e1c3b5afdb


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.