phydm_features_win.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2017 Realtek Corporation.
  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. *****************************************************************************/
  15. #ifndef __PHYDM_FEATURES_WIN_H__
  16. #define __PHYDM_FEATURES_WIN_H__
  17. #if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\
  18. RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\
  19. RTL8822C_SUPPORT)
  20. #define PHYDM_LA_MODE_SUPPORT 1
  21. #else
  22. #define PHYDM_LA_MODE_SUPPORT 0
  23. #endif
  24. #if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\
  25. RTL8192F_SUPPORT)
  26. #define DYN_ANT_WEIGHTING_SUPPORT
  27. #endif
  28. #if (RTL8822B_SUPPORT || RTL8821C_SUPPORT)
  29. #define FAHM_SUPPORT
  30. #endif
  31. #define NHM_SUPPORT
  32. #define CLM_SUPPORT
  33. #if (RTL8822B_SUPPORT)
  34. /*#define PHYDM_PHYSTAUS_SMP_MODE*/
  35. #endif
  36. /*#define PHYDM_TDMA_DIG_SUPPORT*/
  37. #if (RTL8814B_SUPPORT || RTL8822C_SUPPORT)
  38. /*#define PHYDM_TDMA_DIG_SUPPORT*/
  39. #ifdef PHYDM_TDMA_DIG_SUPPORT
  40. /*#define IS_USE_NEW_TDMA*/ /*new tdma dig test*/
  41. #endif
  42. #endif
  43. #if (RTL8197F_SUPPORT || RTL8822B_SUPPORT || RTL8814B_SUPPORT)
  44. /*#define PHYDM_LNA_SAT_CHK_SUPPORT*/
  45. #ifdef PHYDM_LNA_SAT_CHK_SUPPORT
  46. #if (RTL8197F_SUPPORT)
  47. /*#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/
  48. #endif
  49. #if (RTL8822B_SUPPORT)
  50. /*#define PHYDM_LNA_SAT_CHK_TYPE2*/
  51. #endif
  52. #if (RTL8814B_SUPPORT)
  53. /*#define PHYDM_LNA_SAT_CHK_TYPE1*/
  54. #endif
  55. #endif
  56. #endif
  57. #if (RTL8822B_SUPPORT || RTL8710B_SUPPORT || RTL8723D_SUPPORT ||\
  58. RTL8192F_SUPPORT)
  59. #define PHYDM_POWER_TRAINING_SUPPORT
  60. #endif
  61. #if (RTL8822C_SUPPORT)
  62. #define PHYDM_PMAC_TX_SETTING_SUPPORT
  63. #endif
  64. #if (RTL8822C_SUPPORT)
  65. #define PHYDM_MP_SUPPORT
  66. #endif
  67. #if (RTL8822B_SUPPORT)
  68. #define PHYDM_TXA_CALIBRATION
  69. #endif
  70. #if (RTL8188E_SUPPORT || RTL8192E_SUPPORT)
  71. #define PHYDM_PRIMARY_CCA
  72. #endif
  73. #if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\
  74. RTL8822B_SUPPORT || RTL8192F_SUPPORT)
  75. #define PHYDM_DC_CANCELLATION
  76. #endif
  77. #if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
  78. #define CONFIG_ADAPTIVE_SOML
  79. #endif
  80. #if (RTL8192F_SUPPORT == 1)
  81. #define CONFIG_8912F_SPUR_CALIBRATION
  82. #endif
  83. #if (RTL8822B_SUPPORT == 1)
  84. /* #define CONFIG_8822B_SPUR_CALIBRATION */
  85. #endif
  86. /*Antenna Diversity*/
  87. #define CONFIG_PHYDM_ANTENNA_DIVERSITY
  88. #ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
  89. #if (RTL8723B_SUPPORT || RTL8821A_SUPPORT || RTL8188F_SUPPORT ||\
  90. RTL8821C_SUPPORT)
  91. #define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
  92. #endif
  93. #if (RTL8822B_SUPPORT)
  94. /*#define ODM_EVM_ENHANCE_ANTDIV*/
  95. /*#define CONFIG_2T3R_ANTENNA*/
  96. /*#define CONFIG_2T4R_ANTENNA*/
  97. #endif
  98. /* --[SmtAnt]-----------------------------------------*/
  99. #if (RTL8821A_SUPPORT)
  100. /*#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
  101. #define CONFIG_FAT_PATCH
  102. #endif
  103. #if (RTL8822B_SUPPORT)
  104. /*#define CONFIG_HL_SMART_ANTENNA_TYPE2*/
  105. #endif
  106. #if (defined(CONFIG_HL_SMART_ANTENNA_TYPE1) || defined(CONFIG_HL_SMART_ANTENNA_TYPE2))
  107. #define CONFIG_HL_SMART_ANTENNA
  108. #endif
  109. /* --------------------------------------------------*/
  110. #endif
  111. /*[SmartAntenna]*/
  112. #define CONFIG_SMART_ANTENNA
  113. #ifdef CONFIG_SMART_ANTENNA
  114. /*#define CONFIG_CUMITEK_SMART_ANTENNA*/
  115. #endif
  116. /* --------------------------------------------------*/
  117. #if (RTL8188E_SUPPORT || RTL8192E_SUPPORT)
  118. #define CONFIG_RECEIVER_BLOCKING
  119. #endif
  120. #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\
  121. RTL8192E_SUPPORT || RTL8723B_SUPPORT)
  122. #define CONFIG_RA_FW_DBG_CODE
  123. #endif
  124. /* #ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR */
  125. #define CONFIG_DYNAMIC_TX_TWR
  126. /* #endif */
  127. #define CONFIG_PSD_TOOL
  128. #define PHYDM_SUPPORT_ADAPTIVITY
  129. #define PHYDM_SUPPORT_CCKPD
  130. /*#define CONFIG_PATH_DIVERSITY*/
  131. /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
  132. #define CONFIG_ANT_DETECTION
  133. #define CONFIG_BB_TXBF_API
  134. #define ODM_CONFIG_BT_COEXIST
  135. #define CONFIG_PHYDM_DFS_MASTER
  136. #define PHYDM_SUPPORT_RSSI_MONITOR
  137. #define PHYDM_AUTO_DEGBUG
  138. #define CONFIG_PHYDM_DEBUG_FUNCTION
  139. #define CFG_DIG_DAMPING_CHK
  140. #ifdef BEAMFORMING_SUPPORT
  141. #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8192E_SUPPORT ||\
  142. RTL8814A_SUPPORT || RTL8881A_SUPPORT)
  143. #define PHYDM_BEAMFORMING_VERSION1
  144. #endif
  145. #if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\
  146. RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\
  147. RTL8822C_SUPPORT || RTL8814B_SUPPORT)
  148. #define DRIVER_BEAMFORMING_VERSION2
  149. #endif
  150. #endif
  151. #endif