linux/drivers/staging/rtl8192e/rtllib_debug.h
<<
>>
Prefs
   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/* Allow files to override DRV_NAME */
  11#ifndef DRV_NAME
  12#define DRV_NAME "rtllib_92e"
  13#endif
  14
  15extern u32 rt_global_debug_component;
  16
  17/* These are the defines for rt_global_debug_component */
  18enum RTL_DEBUG {
  19        COMP_TRACE              = (1 << 0),
  20        COMP_DBG                = (1 << 1),
  21        COMP_INIT               = (1 << 2),
  22        COMP_RECV               = (1 << 3),
  23        COMP_POWER              = (1 << 6),
  24        COMP_SWBW               = (1 << 8),
  25        COMP_SEC                = (1 << 9),
  26        COMP_LPS                = (1 << 10),
  27        COMP_QOS                = (1 << 11),
  28        COMP_RATE               = (1 << 12),
  29        COMP_RXDESC             = (1 << 13),
  30        COMP_PHY                = (1 << 14),
  31        COMP_DIG                = (1 << 15),
  32        COMP_TXAGC              = (1 << 16),
  33        COMP_HALDM              = (1 << 17),
  34        COMP_POWER_TRACKING     = (1 << 18),
  35        COMP_CH                 = (1 << 19),
  36        COMP_RF                 = (1 << 20),
  37        COMP_FIRMWARE           = (1 << 21),
  38        COMP_RESET              = (1 << 23),
  39        COMP_CMDPKT             = (1 << 24),
  40        COMP_SCAN               = (1 << 25),
  41        COMP_PS                 = (1 << 26),
  42        COMP_DOWN               = (1 << 27),
  43        COMP_INTR               = (1 << 28),
  44        COMP_ERR                = (1 << 31)
  45};
  46
  47#define RT_TRACE(component, x, args...)         \
  48do {                    \
  49        if (rt_global_debug_component & component) \
  50                printk(KERN_DEBUG DRV_NAME ":" x "\n", ##args);\
  51} while (0)
  52
  53#endif
  54