1/****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 * You should have received a copy of the GNU General Public License along with 15 * this program; if not, write to the Free Software Foundation, Inc., 16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 * 18 * Modifications for inclusion into the Linux staging tree are 19 * Copyright(c) 2010 Larry Finger. All rights reserved. 20 * 21 * Contact information: 22 * WLAN FAE <wlanfae@realtek.com> 23 * Larry Finger <Larry.Finger@lwfinger.net> 24 * 25 ******************************************************************************/ 26#ifndef __RTL871X_DEBUG_H__ 27#define __RTL871X_DEBUG_H__ 28 29#include "osdep_service.h" 30#include "drv_types.h" 31 32 33#define _drv_emerg_ 1 34#define _drv_alert_ 2 35#define _drv_crit_ 3 36#define _drv_err_ 4 37#define _drv_warning_ 5 38#define _drv_notice_ 6 39#define _drv_info_ 7 40#define _drv_dump_ 8 41#define _drv_debug_ 9 42 43 44#define _module_rtl871x_xmit_c_ BIT(0) 45#define _module_xmit_osdep_c_ BIT(1) 46#define _module_rtl871x_recv_c_ BIT(2) 47#define _module_recv_osdep_c_ BIT(3) 48#define _module_rtl871x_mlme_c_ BIT(4) 49#define _module_mlme_osdep_c_ BIT(5) 50#define _module_rtl871x_sta_mgt_c_ BIT(6) 51#define _module_rtl871x_cmd_c_ BIT(7) 52#define _module_cmd_osdep_c_ BIT(8) 53#define _module_rtl871x_io_c_ BIT(9) 54#define _module_io_osdep_c_ BIT(10) 55#define _module_os_intfs_c_ BIT(11) 56#define _module_rtl871x_security_c_ BIT(12) 57#define _module_rtl871x_eeprom_c_ BIT(13) 58#define _module_hal_init_c_ BIT(14) 59#define _module_hci_hal_init_c_ BIT(15) 60#define _module_rtl871x_ioctl_c_ BIT(16) 61#define _module_rtl871x_ioctl_set_c_ BIT(17) 62#define _module_rtl871x_pwrctrl_c_ BIT(19) 63#define _module_hci_intfs_c_ BIT(20) 64#define _module_hci_ops_c_ BIT(21) 65#define _module_osdep_service_c_ BIT(22) 66#define _module_rtl871x_mp_ioctl_c_ BIT(23) 67#define _module_hci_ops_os_c_ BIT(24) 68#define _module_rtl871x_ioctl_os_c BIT(25) 69#define _module_rtl8712_cmd_c_ BIT(26) 70#define _module_rtl871x_mp_c_ BIT(27) 71#define _module_rtl8712_xmit_c_ BIT(28) 72#define _module_rtl8712_efuse_c_ BIT(29) 73#define _module_rtl8712_recv_c_ BIT(30) 74#define _module_rtl8712_led_c_ BIT(31) 75 76#undef _MODULE_DEFINE_ 77 78#if defined _RTL871X_XMIT_C_ 79 #define _MODULE_DEFINE_ _module_rtl871x_xmit_c_ 80#elif defined _XMIT_OSDEP_C_ 81 #define _MODULE_DEFINE_ _module_xmit_osdep_c_ 82#elif defined _RTL871X_RECV_C_ 83 #define _MODULE_DEFINE_ _module_rtl871x_recv_c_ 84#elif defined _RECV_OSDEP_C_ 85 #define _MODULE_DEFINE_ _module_recv_osdep_c_ 86#elif defined _RTL871X_MLME_C_ 87 #define _MODULE_DEFINE_ _module_rtl871x_mlme_c_ 88#elif defined _MLME_OSDEP_C_ 89 #define _MODULE_DEFINE_ _module_mlme_osdep_c_ 90#elif defined _RTL871X_STA_MGT_C_ 91 #define _MODULE_DEFINE_ _module_rtl871x_sta_mgt_c_ 92#elif defined _RTL871X_CMD_C_ 93 #define _MODULE_DEFINE_ _module_rtl871x_cmd_c_ 94#elif defined _CMD_OSDEP_C_ 95 #define _MODULE_DEFINE_ _module_cmd_osdep_c_ 96#elif defined _RTL871X_IO_C_ 97 #define _MODULE_DEFINE_ _module_rtl871x_io_c_ 98#elif defined _IO_OSDEP_C_ 99 #define _MODULE_DEFINE_ _module_io_osdep_c_ 100#elif defined _OS_INTFS_C_ 101 #define _MODULE_DEFINE_ _module_os_intfs_c_ 102#elif defined _RTL871X_SECURITY_C_ 103 #define _MODULE_DEFINE_ _module_rtl871x_security_c_ 104#elif defined _RTL871X_EEPROM_C_ 105 #define _MODULE_DEFINE_ _module_rtl871x_eeprom_c_ 106#elif defined _HAL_INIT_C_ 107 #define _MODULE_DEFINE_ _module_hal_init_c_ 108#elif defined _HCI_HAL_INIT_C_ 109 #define _MODULE_DEFINE_ _module_hci_hal_init_c_ 110#elif defined _RTL871X_IOCTL_C_ 111 #define _MODULE_DEFINE_ _module_rtl871x_ioctl_c_ 112#elif defined _RTL871X_IOCTL_SET_C_ 113 #define _MODULE_DEFINE_ _module_rtl871x_ioctl_set_c_ 114#elif defined _RTL871X_PWRCTRL_C_ 115 #define _MODULE_DEFINE_ _module_rtl871x_pwrctrl_c_ 116#elif defined _HCI_INTF_C_ 117 #define _MODULE_DEFINE_ _module_hci_intfs_c_ 118#elif defined _HCI_OPS_C_ 119 #define _MODULE_DEFINE_ _module_hci_ops_c_ 120#elif defined _OSDEP_HCI_INTF_C_ 121 #define _MODULE_DEFINE_ _module_hci_intfs_c_ 122#elif defined _OSDEP_SERVICE_C_ 123 #define _MODULE_DEFINE_ _module_osdep_service_c_ 124#elif defined _RTL871X_MP_IOCTL_C_ 125 #define _MODULE_DEFINE_ _module_rtl871x_mp_ioctl_c_ 126#elif defined _HCI_OPS_OS_C_ 127 #define _MODULE_DEFINE_ _module_hci_ops_os_c_ 128#elif defined _RTL871X_IOCTL_LINUX_C_ 129 #define _MODULE_DEFINE_ _module_rtl871x_ioctl_os_c 130#elif defined _RTL871X_MP_C_ 131 #define _MODULE_DEFINE_ _module_rtl871x_mp_c_ 132#elif defined _RTL8712_CMD_C_ 133 #define _MODULE_DEFINE_ _module_rtl8712_cmd_c_ 134#elif defined _RTL8712_XMIT_C_ 135 #define _MODULE_DEFINE_ _module_rtl8712_xmit_c_ 136#elif defined _RTL8712_EFUSE_C_ 137 #define _MODULE_DEFINE_ _module_rtl8712_efuse_c_ 138#elif defined _RTL8712_RECV_C_ 139 #define _MODULE_DEFINE_ _module_rtl8712_recv_c_ 140#else 141 #undef _MODULE_DEFINE_ 142#endif 143 144#define _dbgdump printk 145 146#define MSG_8712(x, ...) {} 147 148#define DBG_8712(x, ...) {} 149 150#define WRN_8712(x, ...) {} 151 152#define ERR_8712(x, ...) {} 153 154#undef MSG_8712 155#define MSG_8712 _dbgdump 156 157#undef DBG_8712 158#define DBG_8712 _dbgdump 159 160#undef WRN_8712 161#define WRN_8712 _dbgdump 162 163#undef ERR_8712 164#define ERR_8712 _dbgdump 165 166#endif /*__RTL871X_DEBUG_H__*/ 167 168