rtl871x_debug.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. #include "osdep_service.h"
  29. #include "drv_types.h"
  30. #define _drv_emerg_ 1
  31. #define _drv_alert_ 2
  32. #define _drv_crit_ 3
  33. #define _drv_err_ 4
  34. #define _drv_warning_ 5
  35. #define _drv_notice_ 6
  36. #define _drv_info_ 7
  37. #define _drv_dump_ 8
  38. #define _drv_debug_ 9
  39. #define _module_rtl871x_xmit_c_ BIT(0)
  40. #define _module_xmit_osdep_c_ BIT(1)
  41. #define _module_rtl871x_recv_c_ BIT(2)
  42. #define _module_recv_osdep_c_ BIT(3)
  43. #define _module_rtl871x_mlme_c_ BIT(4)
  44. #define _module_mlme_osdep_c_ BIT(5)
  45. #define _module_rtl871x_sta_mgt_c_ BIT(6)
  46. #define _module_rtl871x_cmd_c_ BIT(7)
  47. #define _module_cmd_osdep_c_ BIT(8)
  48. #define _module_rtl871x_io_c_ BIT(9)
  49. #define _module_io_osdep_c_ BIT(10)
  50. #define _module_os_intfs_c_ BIT(11)
  51. #define _module_rtl871x_security_c_ BIT(12)
  52. #define _module_rtl871x_eeprom_c_ BIT(13)
  53. #define _module_hal_init_c_ BIT(14)
  54. #define _module_hci_hal_init_c_ BIT(15)
  55. #define _module_rtl871x_ioctl_c_ BIT(16)
  56. #define _module_rtl871x_ioctl_set_c_ BIT(17)
  57. #define _module_rtl871x_pwrctrl_c_ BIT(19)
  58. #define _module_hci_intfs_c_ BIT(20)
  59. #define _module_hci_ops_c_ BIT(21)
  60. #define _module_osdep_service_c_ BIT(22)
  61. #define _module_rtl871x_mp_ioctl_c_ BIT(23)
  62. #define _module_hci_ops_os_c_ BIT(24)
  63. #define _module_rtl871x_ioctl_os_c BIT(25)
  64. #define _module_rtl8712_cmd_c_ BIT(26)
  65. #define _module_rtl871x_mp_c_ BIT(27)
  66. #define _module_rtl8712_xmit_c_ BIT(28)
  67. #define _module_rtl8712_efuse_c_ BIT(29)
  68. #define _module_rtl8712_recv_c_ BIT(30)
  69. #define _module_rtl8712_led_c_ BIT(31)
  70. #undef _MODULE_DEFINE_
  71. #if defined _RTL871X_XMIT_C_
  72. #define _MODULE_DEFINE_ _module_rtl871x_xmit_c_
  73. #elif defined _XMIT_OSDEP_C_
  74. #define _MODULE_DEFINE_ _module_xmit_osdep_c_
  75. #elif defined _RTL871X_RECV_C_
  76. #define _MODULE_DEFINE_ _module_rtl871x_recv_c_
  77. #elif defined _RECV_OSDEP_C_
  78. #define _MODULE_DEFINE_ _module_recv_osdep_c_
  79. #elif defined _RTL871X_MLME_C_
  80. #define _MODULE_DEFINE_ _module_rtl871x_mlme_c_
  81. #elif defined _MLME_OSDEP_C_
  82. #define _MODULE_DEFINE_ _module_mlme_osdep_c_
  83. #elif defined _RTL871X_STA_MGT_C_
  84. #define _MODULE_DEFINE_ _module_rtl871x_sta_mgt_c_
  85. #elif defined _RTL871X_CMD_C_
  86. #define _MODULE_DEFINE_ _module_rtl871x_cmd_c_
  87. #elif defined _CMD_OSDEP_C_
  88. #define _MODULE_DEFINE_ _module_cmd_osdep_c_
  89. #elif defined _RTL871X_IO_C_
  90. #define _MODULE_DEFINE_ _module_rtl871x_io_c_
  91. #elif defined _IO_OSDEP_C_
  92. #define _MODULE_DEFINE_ _module_io_osdep_c_
  93. #elif defined _OS_INTFS_C_
  94. #define _MODULE_DEFINE_ _module_os_intfs_c_
  95. #elif defined _RTL871X_SECURITY_C_
  96. #define _MODULE_DEFINE_ _module_rtl871x_security_c_
  97. #elif defined _RTL871X_EEPROM_C_
  98. #define _MODULE_DEFINE_ _module_rtl871x_eeprom_c_
  99. #elif defined _HAL_INIT_C_
  100. #define _MODULE_DEFINE_ _module_hal_init_c_
  101. #elif defined _HCI_HAL_INIT_C_
  102. #define _MODULE_DEFINE_ _module_hci_hal_init_c_
  103. #elif defined _RTL871X_IOCTL_C_
  104. #define _MODULE_DEFINE_ _module_rtl871x_ioctl_c_
  105. #elif defined _RTL871X_IOCTL_SET_C_
  106. #define _MODULE_DEFINE_ _module_rtl871x_ioctl_set_c_
  107. #elif defined _RTL871X_PWRCTRL_C_
  108. #define _MODULE_DEFINE_ _module_rtl871x_pwrctrl_c_
  109. #elif defined _HCI_INTF_C_
  110. #define _MODULE_DEFINE_ _module_hci_intfs_c_
  111. #elif defined _HCI_OPS_C_
  112. #define _MODULE_DEFINE_ _module_hci_ops_c_
  113. #elif defined _OSDEP_HCI_INTF_C_
  114. #define _MODULE_DEFINE_ _module_hci_intfs_c_
  115. #elif defined _OSDEP_SERVICE_C_
  116. #define _MODULE_DEFINE_ _module_osdep_service_c_
  117. #elif defined _RTL871X_MP_IOCTL_C_
  118. #define _MODULE_DEFINE_ _module_rtl871x_mp_ioctl_c_
  119. #elif defined _HCI_OPS_OS_C_
  120. #define _MODULE_DEFINE_ _module_hci_ops_os_c_
  121. #elif defined _RTL871X_IOCTL_LINUX_C_
  122. #define _MODULE_DEFINE_ _module_rtl871x_ioctl_os_c
  123. #elif defined _RTL871X_MP_C_
  124. #define _MODULE_DEFINE_ _module_rtl871x_mp_c_
  125. #elif defined _RTL8712_CMD_C_
  126. #define _MODULE_DEFINE_ _module_rtl8712_cmd_c_
  127. #elif defined _RTL8712_XMIT_C_
  128. #define _MODULE_DEFINE_ _module_rtl8712_xmit_c_
  129. #elif defined _RTL8712_EFUSE_C_
  130. #define _MODULE_DEFINE_ _module_rtl8712_efuse_c_
  131. #elif defined _RTL8712_RECV_C_
  132. #define _MODULE_DEFINE_ _module_rtl8712_recv_c_
  133. #else
  134. #undef _MODULE_DEFINE_
  135. #endif
  136. #define _dbgdump printk
  137. #define MSG_8712(x, ...) {}
  138. #define DBG_8712(x, ...) {}
  139. #define WRN_8712(x, ...) {}
  140. #define ERR_8712(x, ...) {}
  141. #undef MSG_8712
  142. #define MSG_8712 _dbgdump
  143. #undef DBG_8712
  144. #define DBG_8712 _dbgdump
  145. #undef WRN_8712
  146. #define WRN_8712 _dbgdump
  147. #undef ERR_8712
  148. #define ERR_8712 _dbgdump
  149. #endif /*__RTL871X_DEBUG_H__*/