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 16 #ifndef __PHYDM_FEATURES_WIN_H__ 17 #define __PHYDM_FEATURES_WIN_H__ 18 19 #if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\ 20 RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\ 21 RTL8822C_SUPPORT || RTL8814B_SUPPORT) 22 #define PHYDM_LA_MODE_SUPPORT 1 23 #else 24 #define PHYDM_LA_MODE_SUPPORT 0 25 #endif 26 27 #if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\ 28 RTL8192F_SUPPORT) 29 #define DYN_ANT_WEIGHTING_SUPPORT 30 #endif 31 32 #if (RTL8822B_SUPPORT || RTL8821C_SUPPORT) 33 #define FAHM_SUPPORT 34 #endif 35 36 #if (RTL8822C_SUPPORT) 37 #define IFS_CLM_SUPPORT 38 #endif 39 #define NHM_SUPPORT 40 #define CLM_SUPPORT 41 42 #if (RTL8822C_SUPPORT) 43 #define NHM_DYM_PW_TH_SUPPORT 44 #endif 45 46 #if (RTL8822C_SUPPORT) 47 #define PHYDM_PHYSTAUS_AUTO_SWITCH 48 #endif 49 50 /*#define PHYDM_TDMA_DIG_SUPPORT*/ 51 52 #if (RTL8814B_SUPPORT) 53 /*#define PHYDM_TDMA_DIG_SUPPORT*/ 54 #ifdef PHYDM_TDMA_DIG_SUPPORT 55 /*#define IS_USE_NEW_TDMA*/ /*new tdma dig test*/ 56 #endif 57 #endif 58 59 #if (RTL8197F_SUPPORT || RTL8822B_SUPPORT || RTL8814B_SUPPORT) 60 /*#define PHYDM_LNA_SAT_CHK_SUPPORT*/ 61 #ifdef PHYDM_LNA_SAT_CHK_SUPPORT 62 63 #if (RTL8197F_SUPPORT) 64 /*#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/ 65 #endif 66 67 #if (RTL8822B_SUPPORT) 68 /*#define PHYDM_LNA_SAT_CHK_TYPE2*/ 69 #endif 70 71 #if (RTL8814B_SUPPORT) 72 /*#define PHYDM_LNA_SAT_CHK_TYPE1*/ 73 #endif 74 #endif 75 #endif 76 77 #if (RTL8822B_SUPPORT || RTL8710B_SUPPORT || RTL8723D_SUPPORT ||\ 78 RTL8192F_SUPPORT) 79 #define PHYDM_POWER_TRAINING_SUPPORT 80 #endif 81 82 #if (RTL8822C_SUPPORT || RTL8814B_SUPPORT) 83 #define PHYDM_PMAC_TX_SETTING_SUPPORT 84 #endif 85 86 #if (RTL8822C_SUPPORT || RTL8814B_SUPPORT) 87 #define PHYDM_MP_SUPPORT 88 #endif 89 90 #if (RTL8822C_SUPPORT) 91 #define PHYDM_CCK_RX_PATHDIV_SUPPORT 92 #endif 93 94 #if (RTL8822B_SUPPORT) 95 #define PHYDM_TXA_CALIBRATION 96 #endif 97 98 #if (RTL8188E_SUPPORT || RTL8192E_SUPPORT) 99 #define PHYDM_PRIMARY_CCA 100 #endif 101 102 #if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\ 103 RTL8822B_SUPPORT || RTL8192F_SUPPORT) 104 #define PHYDM_DC_CANCELLATION 105 #endif 106 107 #if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT) 108 #define CONFIG_ADAPTIVE_SOML 109 #endif 110 111 #if (RTL8192F_SUPPORT) 112 #define CONFIG_8912F_SPUR_CALIBRATION 113 #endif 114 115 /*Antenna Diversity*/ 116 #define CONFIG_PHYDM_ANTENNA_DIVERSITY 117 #ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY 118 119 #if (RTL8723B_SUPPORT || RTL8821A_SUPPORT || RTL8188F_SUPPORT ||\ 120 RTL8821C_SUPPORT || RTL8723D_SUPPORT) 121 #define CONFIG_S0S1_SW_ANTENNA_DIVERSITY 122 #endif 123 124 #if (RTL8822B_SUPPORT) 125 /*#define ODM_EVM_ENHANCE_ANTDIV*/ 126 /*#define CONFIG_2T3R_ANTENNA*/ 127 /*#define CONFIG_2T4R_ANTENNA*/ 128 #endif 129 130 /* --[SmtAnt]-----------------------------------------*/ 131 #if (RTL8821A_SUPPORT) 132 /*#define CONFIG_HL_SMART_ANTENNA_TYPE1*/ 133 #define CONFIG_FAT_PATCH 134 #endif 135 136 #if (RTL8822B_SUPPORT) 137 /*#define CONFIG_HL_SMART_ANTENNA_TYPE2*/ 138 #endif 139 140 #if (defined(CONFIG_HL_SMART_ANTENNA_TYPE1) || defined(CONFIG_HL_SMART_ANTENNA_TYPE2)) 141 #define CONFIG_HL_SMART_ANTENNA 142 #endif 143 144 /* --------------------------------------------------*/ 145 146 #endif 147 148 #if (RTL8822B_SUPPORT || RTL8822C_SUPPORT || RTL8192F_SUPPORT) 149 #define CONFIG_PATH_DIVERSITY 150 #endif 151 152 /*[SmartAntenna]*/ 153 #define CONFIG_SMART_ANTENNA 154 #ifdef CONFIG_SMART_ANTENNA 155 /*#define CONFIG_CUMITEK_SMART_ANTENNA*/ 156 #endif 157 /* --------------------------------------------------*/ 158 159 #if (RTL8188E_SUPPORT || RTL8192E_SUPPORT) 160 #define CONFIG_RECEIVER_BLOCKING 161 #endif 162 163 #if (RTL8821C_SUPPORT || RTL8822C_SUPPORT || RTL8822B_SUPPORT) 164 #define CONFIG_BW_INDICATION 165 #endif 166 167 #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\ 168 RTL8192E_SUPPORT || RTL8723B_SUPPORT) 169 #define CONFIG_RA_FW_DBG_CODE 170 #endif 171 172 /* #ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR */ 173 #define CONFIG_DYNAMIC_TX_TWR 174 /* #endif */ 175 #if (RTL8822C_SUPPORT) 176 #define PHYDM_HW_IGI 177 #endif 178 #define CONFIG_PSD_TOOL 179 #define PHYDM_SUPPORT_ADAPTIVITY 180 #define PHYDM_SUPPORT_CCKPD 181 #if (defined(PHYDM_SUPPORT_CCKPD) && RTL8822C_SUPPORT) 182 #define PHYDM_DCC_ENHANCE 183 #endif 184 /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/ 185 #define CONFIG_ANT_DETECTION 186 #define CONFIG_BB_TXBF_API 187 #define ODM_CONFIG_BT_COEXIST 188 #define CONFIG_PHYDM_DFS_MASTER 189 #define PHYDM_SUPPORT_RSSI_MONITOR 190 #define PHYDM_AUTO_DEGBUG 191 #define CONFIG_PHYDM_DEBUG_FUNCTION 192 #define CFG_DIG_DAMPING_CHK 193 194 #ifdef PHYDM_BEAMFORMING_SUPPORT 195 #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8192E_SUPPORT ||\ 196 RTL8814A_SUPPORT || RTL8881A_SUPPORT) 197 #define PHYDM_BEAMFORMING_VERSION1 198 #endif 199 #if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\ 200 RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\ 201 RTL8822C_SUPPORT || RTL8814B_SUPPORT) 202 #define DRIVER_BEAMFORMING_VERSION2 203 #endif 204 #endif 205 206 #if (RTL8822B_SUPPORT || RTL8192F_SUPPORT) 207 /*#define CONFIG_DIRECTIONAL_BF*/ 208 #endif 209 210 #if (RTL8822C_SUPPORT) 211 #define CONFIG_MU_RSOML 212 #endif 213 214 /*#define RA_MASK_BY_RX_UTILITY*/ 215 216 #endif 217