]>
Commit | Line | Data |
---|---|---|
94a79942 LF |
1 | /****************************************************************************** |
2 | * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved. | |
3 | * | |
4 | * Based on the r8180 driver, which is: | |
559a4c31 | 5 | * Copyright 2004-2005 Andrea Merello <andrea.merello@gmail.com>, et al. |
94a79942 LF |
6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms of version 2 of the GNU General Public License as | |
8 | * published by the Free Software Foundation. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
13 | * more details. | |
14 | * | |
94a79942 LF |
15 | * The full GNU General Public License is included in this distribution in the |
16 | * file called LICENSE. | |
17 | * | |
18 | * Contact Information: | |
19 | * wlanfae <wlanfae@realtek.com> | |
20 | ******************************************************************************/ | |
21 | #ifndef _RTL_DEBUG_H | |
22 | #define _RTL_DEBUG_H | |
94a79942 | 23 | |
ea74fedc SM |
24 | /* Allow files to override DRV_NAME */ |
25 | #ifndef DRV_NAME | |
26 | #define DRV_NAME "rtllib_92e" | |
27 | #endif | |
28 | ||
94a79942 | 29 | extern u32 rt_global_debug_component; |
80c0d83a | 30 | |
f1c602f9 SM |
31 | /* These are the defines for rt_global_debug_component */ |
32 | enum RTL_DEBUG { | |
33 | COMP_TRACE = (1 << 0), | |
34 | COMP_DBG = (1 << 1), | |
35 | COMP_INIT = (1 << 2), | |
36 | COMP_RECV = (1 << 3), | |
f1c602f9 | 37 | COMP_POWER = (1 << 6), |
f1c602f9 SM |
38 | COMP_SWBW = (1 << 8), |
39 | COMP_SEC = (1 << 9), | |
40 | COMP_LPS = (1 << 10), | |
41 | COMP_QOS = (1 << 11), | |
42 | COMP_RATE = (1 << 12), | |
43 | COMP_RXDESC = (1 << 13), | |
44 | COMP_PHY = (1 << 14), | |
45 | COMP_DIG = (1 << 15), | |
46 | COMP_TXAGC = (1 << 16), | |
47 | COMP_HALDM = (1 << 17), | |
48 | COMP_POWER_TRACKING = (1 << 18), | |
49 | COMP_CH = (1 << 19), | |
50 | COMP_RF = (1 << 20), | |
51 | COMP_FIRMWARE = (1 << 21), | |
f1c602f9 SM |
52 | COMP_RESET = (1 << 23), |
53 | COMP_CMDPKT = (1 << 24), | |
54 | COMP_SCAN = (1 << 25), | |
55 | COMP_PS = (1 << 26), | |
56 | COMP_DOWN = (1 << 27), | |
57 | COMP_INTR = (1 << 28), | |
f1c602f9 SM |
58 | COMP_ERR = (1 << 31) |
59 | }; | |
60 | ||
80c0d83a | 61 | #define RT_TRACE(component, x, args...) \ |
cffa5bd9 LF |
62 | do { \ |
63 | if (rt_global_debug_component & component) \ | |
f6692285 | 64 | printk(KERN_DEBUG DRV_NAME ":" x "\n", ##args);\ |
41ad3d5f | 65 | } while (0) |
94a79942 | 66 | |
94a79942 | 67 | #endif |