Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Variables
debug.h File Reference
#include <linux/bitops.h>
#include <linux/printk.h>

Go to the source code of this file.

Macros

#define DRIVER_NAME   "wlcore"
 
#define DRIVER_PREFIX   DRIVER_NAME ": "
 
#define DEBUG_DUMP_LIMIT   1024
 
#define wl1271_error(fmt, arg...)   pr_err(DRIVER_PREFIX "ERROR " fmt "\n", ##arg)
 
#define wl1271_warning(fmt, arg...)   pr_warning(DRIVER_PREFIX "WARNING " fmt "\n", ##arg)
 
#define wl1271_notice(fmt, arg...)   pr_info(DRIVER_PREFIX fmt "\n", ##arg)
 
#define wl1271_info(fmt, arg...)   pr_info(DRIVER_PREFIX fmt "\n", ##arg)
 
#define wl1271_debug(level, fmt, arg...)
 
#define wl1271_dump(level, prefix, buf, len)
 
#define wl1271_dump_ascii(level, prefix, buf, len)
 

Enumerations

enum  {
  DEBUG_NONE = 0, DEBUG_IRQ = BIT(0), DEBUG_SPI = BIT(1), DEBUG_BOOT = BIT(2),
  DEBUG_MAILBOX = BIT(3), DEBUG_TESTMODE = BIT(4), DEBUG_EVENT = BIT(5), DEBUG_TX = BIT(6),
  DEBUG_RX = BIT(7), DEBUG_SCAN = BIT(8), DEBUG_CRYPT = BIT(9), DEBUG_PSM = BIT(10),
  DEBUG_MAC80211 = BIT(11), DEBUG_CMD = BIT(12), DEBUG_ACX = BIT(13), DEBUG_SDIO = BIT(14),
  DEBUG_FILTERS = BIT(15), DEBUG_ADHOC = BIT(16), DEBUG_AP = BIT(17), DEBUG_PROBE = BIT(18),
  DEBUG_IO = BIT(19), DEBUG_MASTER = (DEBUG_ADHOC | DEBUG_AP), DEBUG_ALL = ~0
}
 

Variables

u32 wl12xx_debug_level
 

Macro Definition Documentation

#define DEBUG_DUMP_LIMIT   1024

Definition at line 62 of file debug.h.

#define DRIVER_NAME   "wlcore"

Definition at line 31 of file debug.h.

#define DRIVER_PREFIX   DRIVER_NAME ": "

Definition at line 32 of file debug.h.

#define wl1271_debug (   level,
  fmt,
  arg... 
)
Value:
do { \
##arg); \
} while (0)

Definition at line 84 of file debug.h.

#define wl1271_dump (   level,
  prefix,
  buf,
  len 
)
Value:
do { \
print_hex_dump(KERN_DEBUG, DRIVER_PREFIX prefix, \
buf, \
min_t(size_t, len, DEBUG_DUMP_LIMIT), \
0); \
} while (0)

Definition at line 93 of file debug.h.

#define wl1271_dump_ascii (   level,
  prefix,
  buf,
  len 
)
Value:
do { \
print_hex_dump(KERN_DEBUG, DRIVER_PREFIX prefix, \
buf, \
min_t(size_t, len, DEBUG_DUMP_LIMIT), \
true); \
} while (0)

Definition at line 103 of file debug.h.

#define wl1271_error (   fmt,
  arg... 
)    pr_err(DRIVER_PREFIX "ERROR " fmt "\n", ##arg)

Definition at line 64 of file debug.h.

#define wl1271_info (   fmt,
  arg... 
)    pr_info(DRIVER_PREFIX fmt "\n", ##arg)

Definition at line 73 of file debug.h.

#define wl1271_notice (   fmt,
  arg... 
)    pr_info(DRIVER_PREFIX fmt "\n", ##arg)

Definition at line 70 of file debug.h.

#define wl1271_warning (   fmt,
  arg... 
)    pr_warning(DRIVER_PREFIX "WARNING " fmt "\n", ##arg)

Definition at line 67 of file debug.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
DEBUG_NONE 
DEBUG_IRQ 
DEBUG_SPI 
DEBUG_BOOT 
DEBUG_MAILBOX 
DEBUG_TESTMODE 
DEBUG_EVENT 
DEBUG_TX 
DEBUG_RX 
DEBUG_SCAN 
DEBUG_CRYPT 
DEBUG_PSM 
DEBUG_MAC80211 
DEBUG_CMD 
DEBUG_ACX 
DEBUG_SDIO 
DEBUG_FILTERS 
DEBUG_ADHOC 
DEBUG_AP 
DEBUG_PROBE 
DEBUG_IO 
DEBUG_MASTER 
DEBUG_ALL 

Definition at line 34 of file debug.h.

Variable Documentation

u32 wl12xx_debug_level

Definition at line 5705 of file main.c.