1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25#ifndef _RTL_DEBUG_H
26#define _RTL_DEBUG_H
27
28
29#ifndef DRV_NAME
30#define DRV_NAME "rtllib_92e"
31#endif
32
33#define DMESG(x, a...)
34
35extern u32 rt_global_debug_component;
36
37
38enum RTL_DEBUG {
39 COMP_TRACE = (1 << 0),
40 COMP_DBG = (1 << 1),
41 COMP_INIT = (1 << 2),
42 COMP_RECV = (1 << 3),
43 COMP_SEND = (1 << 4),
44 COMP_CMD = (1 << 5),
45 COMP_POWER = (1 << 6),
46 COMP_EPROM = (1 << 7),
47 COMP_SWBW = (1 << 8),
48 COMP_SEC = (1 << 9),
49 COMP_LPS = (1 << 10),
50 COMP_QOS = (1 << 11),
51 COMP_RATE = (1 << 12),
52 COMP_RXDESC = (1 << 13),
53 COMP_PHY = (1 << 14),
54 COMP_DIG = (1 << 15),
55 COMP_TXAGC = (1 << 16),
56 COMP_HALDM = (1 << 17),
57 COMP_POWER_TRACKING = (1 << 18),
58 COMP_CH = (1 << 19),
59 COMP_RF = (1 << 20),
60 COMP_FIRMWARE = (1 << 21),
61 COMP_HT = (1 << 22),
62 COMP_RESET = (1 << 23),
63 COMP_CMDPKT = (1 << 24),
64 COMP_SCAN = (1 << 25),
65 COMP_PS = (1 << 26),
66 COMP_DOWN = (1 << 27),
67 COMP_INTR = (1 << 28),
68 COMP_LED = (1 << 29),
69 COMP_MLME = (1 << 30),
70 COMP_ERR = (1 << 31)
71};
72
73#define RT_TRACE(component, x, args...) \
74do { \
75 if (rt_global_debug_component & component) \
76 printk(KERN_DEBUG DRV_NAME ":" x "\n", ##args);\
77} while (0)
78
79#endif
80