phydm_features.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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 __PHYDM_FEATURES_H__
  21. #define __PHYDM_FEATURES
  22. #define ODM_RECEIVER_BLOCKING_SUPPORT (ODM_RTL8188E | ODM_RTL8192E | ODM_RTL8812)
  23. #if ((RTL8814A_SUPPORT == 1) || (RTL8821C_SUPPORT == 1) || (RTL8822B_SUPPORT == 1) || (RTL8197F_SUPPORT == 1))
  24. #define PHYDM_LA_MODE_SUPPORT 1
  25. #else
  26. #define PHYDM_LA_MODE_SUPPORT 0
  27. #endif
  28. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  29. #define CONFIG_PSD_TOOL 1
  30. /*phydm debyg report & tools*/
  31. #define CONFIG_PHYDM_DEBUG_FUNCTION 1
  32. /*Antenna Diversity*/
  33. #define CONFIG_PHYDM_ANTENNA_DIVERSITY
  34. #ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
  35. #if (RTL8723B_SUPPORT == 1) || (RTL8821A_SUPPORT == 1) || (RTL8188F_SUPPORT == 1)
  36. #define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
  37. #endif
  38. #if (RTL8821A_SUPPORT == 1)
  39. /*#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
  40. #define CONFIG_FAT_PATCH
  41. #endif
  42. #if (RTL8822B_SUPPORT == 1)
  43. /*#define CONFIG_HL_SMART_ANTENNA_TYPE2*/
  44. #endif
  45. #endif
  46. #if (RTL8822B_SUPPORT == 1)
  47. #define CONFIG_DYNAMIC_RX_PATH 0
  48. #else
  49. #define CONFIG_DYNAMIC_RX_PATH 0
  50. #endif
  51. #if (RTL8188E_SUPPORT == 1 || RTL8192E_SUPPORT == 1 || RTL8812A_SUPPORT == 1)
  52. #define CONFIG_RECEIVER_BLOCKING
  53. #endif
  54. #define PHYDM_SUPPORT_EDCA 0
  55. #define SUPPORTABLITY_PHYDMLIZE 1
  56. #define RA_MASK_PHYDMLIZE_WIN 1
  57. /*#define CONFIG_PATH_DIVERSITY*/
  58. /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
  59. #define CONFIG_ANT_DETECTION
  60. /*#define CONFIG_RA_DBG_CMD*/
  61. #define CONFIG_RA_FW_DBG_CODE 1
  62. /*#define CONFIG_PHYDM_RX_SNIFFER_PARSING*/
  63. #define CONFIG_BB_POWER_SAVING
  64. #define CONFIG_BB_TXBF_API
  65. #define CONFIG_PHYDM_DFS_MASTER
  66. #elif (DM_ODM_SUPPORT_TYPE == ODM_AP)
  67. #define CONFIG_PSD_TOOL 0
  68. /*phydm debyg report & tools*/
  69. #if defined(CONFIG_DISABLE_PHYDM_DEBUG_FUNCTION)
  70. #define CONFIG_PHYDM_DEBUG_FUNCTION 0
  71. #else
  72. #define CONFIG_PHYDM_DEBUG_FUNCTION 1
  73. #endif
  74. #if (RTL8822B_SUPPORT == 1)
  75. #define CONFIG_DYNAMIC_RX_PATH 0
  76. #else
  77. #define CONFIG_DYNAMIC_RX_PATH 0
  78. #endif
  79. #define PHYDM_SUPPORT_EDCA 1
  80. #define SUPPORTABLITY_PHYDMLIZE 0
  81. #define RA_MASK_PHYDMLIZE_AP 1
  82. /* #define CONFIG_RA_DBG_CMD*/
  83. #define CONFIG_RA_FW_DBG_CODE 0
  84. /*#define CONFIG_PATH_DIVERSITY*/
  85. /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
  86. #define CONFIG_RA_DYNAMIC_RATE_ID
  87. /*#define CONFIG_BB_POWER_SAVING*/
  88. #define CONFIG_BB_TXBF_API
  89. /* [ Configure Antenna Diversity ] */
  90. #if defined(CONFIG_RTL_8881A_ANT_SWITCH) || defined(CONFIG_SLOT_0_ANT_SWITCH) || defined(CONFIG_SLOT_1_ANT_SWITCH)
  91. #define CONFIG_PHYDM_ANTENNA_DIVERSITY
  92. #define ODM_EVM_ENHANCE_ANTDIV
  93. /*----------*/
  94. #if (!defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_2G5G_CG_TRX_DIVERSITY_8881A) && !defined(CONFIG_2G_CGCS_RX_DIVERSITY) && !defined(CONFIG_2G_CG_TRX_DIVERSITY) && !defined(CONFIG_2G_CG_SMART_ANT_DIVERSITY))
  95. #define CONFIG_NO_2G_DIVERSITY
  96. #endif
  97. #ifdef CONFIG_NO_5G_DIVERSITY_8881A
  98. #define CONFIG_NO_5G_DIVERSITY
  99. #elif defined(CONFIG_5G_CGCS_RX_DIVERSITY_8881A)
  100. #define CONFIG_5G_CGCS_RX_DIVERSITY
  101. #elif defined(CONFIG_5G_CG_TRX_DIVERSITY_8881A)
  102. #define CONFIG_5G_CG_TRX_DIVERSITY
  103. #elif defined(CONFIG_2G5G_CG_TRX_DIVERSITY_8881A)
  104. #define CONFIG_2G5G_CG_TRX_DIVERSITY
  105. #endif
  106. #if (!defined(CONFIG_NO_5G_DIVERSITY) && !defined(CONFIG_5G_CGCS_RX_DIVERSITY) && !defined(CONFIG_5G_CG_TRX_DIVERSITY) && !defined(CONFIG_2G5G_CG_TRX_DIVERSITY) && !defined(CONFIG_5G_CG_SMART_ANT_DIVERSITY))
  107. #define CONFIG_NO_5G_DIVERSITY
  108. #endif
  109. /*----------*/
  110. #if (defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))
  111. #define CONFIG_NOT_SUPPORT_ANTDIV
  112. #elif (!defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))
  113. #define CONFIG_2G_SUPPORT_ANTDIV
  114. #elif (defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY))
  115. #define CONFIG_5G_SUPPORT_ANTDIV
  116. #elif ((!defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY)) || defined(CONFIG_2G5G_CG_TRX_DIVERSITY))
  117. #define CONFIG_2G5G_SUPPORT_ANTDIV
  118. #endif
  119. /*----------*/
  120. #endif
  121. #elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
  122. #define CONFIG_PSD_TOOL 1
  123. /*phydm debyg report & tools*/
  124. #define CONFIG_PHYDM_DEBUG_FUNCTION 1
  125. #if (RTL8822B_SUPPORT == 1)
  126. #define CONFIG_DYNAMIC_RX_PATH 0
  127. #else
  128. #define CONFIG_DYNAMIC_RX_PATH 0
  129. #endif
  130. #define PHYDM_SUPPORT_EDCA 0
  131. #define SUPPORTABLITY_PHYDMLIZE 1
  132. #define RA_MASK_PHYDMLIZE_CE 1
  133. /*Antenna Diversity*/
  134. #ifdef CONFIG_ANTENNA_DIVERSITY
  135. #define CONFIG_PHYDM_ANTENNA_DIVERSITY
  136. #ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
  137. #if (RTL8723B_SUPPORT == 1) || (RTL8821A_SUPPORT == 1) || (RTL8188F_SUPPORT == 1)
  138. #define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
  139. #endif
  140. #if (RTL8821A_SUPPORT == 1)
  141. /*#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
  142. #endif
  143. #endif
  144. #endif
  145. #ifdef CONFIG_DFS_MASTER
  146. #define CONFIG_PHYDM_DFS_MASTER
  147. #endif
  148. #if (RTL8188E_SUPPORT == 1 || RTL8192E_SUPPORT == 1)
  149. #define CONFIG_RECEIVER_BLOCKING
  150. #endif
  151. /*#define CONFIG_RA_DBG_CMD*/
  152. #define CONFIG_RA_FW_DBG_CODE 0
  153. /*#define CONFIG_ANT_DETECTION*/
  154. /*#define CONFIG_PATH_DIVERSITY*/
  155. /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
  156. #define CONFIG_BB_POWER_SAVING
  157. #define CONFIG_BB_TXBF_API
  158. #ifdef CONFIG_BT_COEXIST
  159. #define BT_SUPPORT 1
  160. #endif
  161. #endif
  162. #endif