1 /******************************************************************************
2 * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
4 * Based on the r8180 driver, which is:
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.
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
15 * The full GNU General Public License is included in this distribution in the
16 * file called LICENSE.
18 * Contact Information:
20 ******************************************************************************/
24 /* Allow files to override DRV_NAME */
26 #define DRV_NAME "rtllib_92e"
29 extern u32 rt_global_debug_component;
31 /* These are the defines for rt_global_debug_component */
33 COMP_TRACE = (1 << 0),
37 COMP_POWER = (1 << 6),
42 COMP_RATE = (1 << 12),
43 COMP_RXDESC = (1 << 13),
46 COMP_TXAGC = (1 << 16),
47 COMP_HALDM = (1 << 17),
48 COMP_POWER_TRACKING = (1 << 18),
51 COMP_FIRMWARE = (1 << 21),
52 COMP_RESET = (1 << 23),
53 COMP_CMDPKT = (1 << 24),
54 COMP_SCAN = (1 << 25),
56 COMP_DOWN = (1 << 27),
57 COMP_INTR = (1 << 28),
61 #define RT_TRACE(component, x, args...) \
63 if (rt_global_debug_component & component) \
64 printk(KERN_DEBUG DRV_NAME ":" x "\n", ##args);\