hal_ic_cfg.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 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. *
  19. ******************************************************************************/
  20. #ifndef __HAL_IC_CFG_H__
  21. #define __HAL_IC_CFG_H__
  22. #define RTL8188E_SUPPORT 0
  23. #define RTL8812A_SUPPORT 0
  24. #define RTL8821A_SUPPORT 0
  25. #define RTL8723B_SUPPORT 0
  26. #define RTL8723D_SUPPORT 0
  27. #define RTL8192E_SUPPORT 0
  28. #define RTL8814A_SUPPORT 0
  29. #define RTL8195A_SUPPORT 0
  30. #define RTL8197F_SUPPORT 0
  31. #define RTL8703B_SUPPORT 0
  32. #define RTL8188F_SUPPORT 0
  33. #define RTL8822B_SUPPORT 0
  34. #define RTL8821B_SUPPORT 0
  35. #define RTL8821C_SUPPORT 0
  36. #define RTL8710B_SUPPORT 0
  37. #define RTL8814B_SUPPORT 0
  38. /*#if (RTL8188E_SUPPORT==1)*/
  39. #define RATE_ADAPTIVE_SUPPORT 0
  40. #define POWER_TRAINING_ACTIVE 0
  41. #ifdef CONFIG_MULTIDRV
  42. #endif
  43. #ifdef CONFIG_RTL8188E
  44. #undef RTL8188E_SUPPORT
  45. #undef RATE_ADAPTIVE_SUPPORT
  46. #undef POWER_TRAINING_ACTIVE
  47. #define RTL8188E_SUPPORT 1
  48. #define RATE_ADAPTIVE_SUPPORT 1
  49. #define POWER_TRAINING_ACTIVE 1
  50. #define CONFIG_GET_RAID_BY_DRV
  51. #endif
  52. #ifdef CONFIG_RTL8812A
  53. #undef RTL8812A_SUPPORT
  54. #define RTL8812A_SUPPORT 1
  55. #ifndef CONFIG_FW_C2H_PKT
  56. #define CONFIG_FW_C2H_PKT
  57. #endif
  58. #endif
  59. #ifdef CONFIG_RTL8821A
  60. #undef RTL8821A_SUPPORT
  61. #define RTL8821A_SUPPORT 1
  62. #ifndef CONFIG_FW_C2H_PKT
  63. #define CONFIG_FW_C2H_PKT
  64. #endif
  65. #endif
  66. #ifdef CONFIG_RTL8192E
  67. #undef RTL8192E_SUPPORT
  68. #define RTL8192E_SUPPORT 1
  69. #ifndef CONFIG_FW_C2H_PKT
  70. #define CONFIG_FW_C2H_PKT
  71. #endif
  72. #endif
  73. #ifdef CONFIG_RTL8723B
  74. #undef RTL8723B_SUPPORT
  75. #define RTL8723B_SUPPORT 1
  76. #ifndef CONFIG_FW_C2H_PKT
  77. #define CONFIG_FW_C2H_PKT
  78. #endif
  79. #endif
  80. #ifdef CONFIG_RTL8723D
  81. #undef RTL8723D_SUPPORT
  82. #define RTL8723D_SUPPORT 1
  83. #ifndef CONFIG_FW_C2H_PKT
  84. #define CONFIG_FW_C2H_PKT
  85. #endif
  86. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  87. #define CONFIG_RTW_MAC_HIDDEN_RPT
  88. #endif
  89. #ifndef CONFIG_RTW_CUSTOMER_STR
  90. #define CONFIG_RTW_CUSTOMER_STR
  91. #endif
  92. #endif
  93. #ifdef CONFIG_RTL8814A
  94. #undef RTL8814A_SUPPORT
  95. #define RTL8814A_SUPPORT 1
  96. #ifndef CONFIG_FW_C2H_PKT
  97. #define CONFIG_FW_C2H_PKT
  98. #endif
  99. #endif
  100. #ifdef CONFIG_RTL8703B
  101. #undef RTL8703B_SUPPORT
  102. #define RTL8703B_SUPPORT 1
  103. #ifndef CONFIG_FW_C2H_PKT
  104. #define CONFIG_FW_C2H_PKT
  105. #endif
  106. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  107. #define CONFIG_RTW_MAC_HIDDEN_RPT
  108. #endif
  109. #endif
  110. #ifdef CONFIG_RTL8188F
  111. #undef RTL8188F_SUPPORT
  112. #define RTL8188F_SUPPORT 1
  113. #ifndef CONFIG_FW_C2H_PKT
  114. #define CONFIG_FW_C2H_PKT
  115. #endif
  116. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  117. #define CONFIG_RTW_MAC_HIDDEN_RPT
  118. #endif
  119. #ifndef CONFIG_RTW_CUSTOMER_STR
  120. #define CONFIG_RTW_CUSTOMER_STR
  121. #endif
  122. #endif
  123. #ifdef CONFIG_RTL8822B
  124. #undef RTL8822B_SUPPORT
  125. #define RTL8822B_SUPPORT 1
  126. #ifndef CONFIG_FW_C2H_PKT
  127. #define CONFIG_FW_C2H_PKT
  128. #endif /* CONFIG_FW_C2H_PKT */
  129. #define RTW_TX_PA_BIAS /* Adjust TX PA Bias from eFuse */
  130. #define CONFIG_DFS /* Enable 5G band 2&3 channel */
  131. #ifdef CONFIG_WOWLAN
  132. #define CONFIG_GTK_OL
  133. #define CONFIG_ARP_KEEP_ALIVE
  134. #ifndef CONFIG_DEFAULT_PATTERNS_EN
  135. #warning "Force to enable CONFIG_DEFAULT_PATTERNS_EN under WOW"
  136. #define CONFIG_DEFAULT_PATTERNS_EN
  137. #endif /* !CONFIG_DEFAULT_PATTERNS_EN */
  138. #ifdef CONFIG_GPIO_WAKEUP
  139. #ifndef WAKEUP_GPIO_IDX
  140. #define WAKEUP_GPIO_IDX 6 /* WIFI Chip Side */
  141. #endif /* !WAKEUP_GPIO_IDX */
  142. #endif /* CONFIG_GPIO_WAKEUP */
  143. #endif /* CONFIG_WOWLAN */
  144. #ifdef CONFIG_CONCURRENT_MODE
  145. #define CONFIG_AP_PORT_SWAP
  146. #define CONFIG_FW_MULTI_PORT_SUPPORT
  147. #endif /* CONFIG_CONCURRENT_MODE */
  148. /*
  149. * Beamforming related definition
  150. */
  151. #if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_BEAMFORMING)
  152. #undef CONFIG_BEAMFORMING
  153. #warning "Not support Beamforming in concurrent mode yet!!"
  154. #endif /* CONFIG_CONCURRENT_MODE && CONFIG_BEAMFORMING */
  155. /* Beamforming mechanism is on driver not phydm, always disable it */
  156. #define BEAMFORMING_SUPPORT 0
  157. /* Only support new beamforming mechanism */
  158. #ifdef CONFIG_BEAMFORMING
  159. #define RTW_BEAMFORMING_VERSION_2
  160. #endif /* CONFIG_BEAMFORMING */
  161. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  162. #define CONFIG_RTW_MAC_HIDDEN_RPT
  163. #endif /* CONFIG_RTW_MAC_HIDDEN_RPT */
  164. #ifndef DBG_RX_DFRAME_RAW_DATA
  165. #define DBG_RX_DFRAME_RAW_DATA
  166. #endif /* DBG_RX_DFRAME_RAW_DATA */
  167. #endif /* CONFIG_RTL8822B */
  168. #ifdef CONFIG_RTL8821C
  169. #undef RTL8821C_SUPPORT
  170. #define RTL8821C_SUPPORT 1
  171. #ifndef CONFIG_FW_C2H_PKT
  172. #define CONFIG_FW_C2H_PKT
  173. #endif
  174. #ifdef CONFIG_NO_FW
  175. #ifdef CONFIG_RTW_MAC_HIDDEN_RPT
  176. #undef CONFIG_RTW_MAC_HIDDEN_RPT
  177. #endif
  178. #else
  179. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  180. #define CONFIG_RTW_MAC_HIDDEN_RPT
  181. #endif
  182. #endif
  183. #define LOAD_FW_HEADER_FROM_DRIVER
  184. #define CONFIG_PHY_CAPABILITY_QUERY
  185. #ifdef CONFIG_CONCURRENT_MODE
  186. #define CONFIG_AP_PORT_SWAP
  187. #define CONFIG_FW_MULTI_PORT_SUPPORT
  188. #endif
  189. #define CONFIG_SUPPORT_FIFO_DUMP
  190. #endif
  191. #endif /*__HAL_IC_CFG_H__*/