Path: blob/master/ALFA-W1F1/RTL8814AU/hal/phydm/phydm_features_ap.h
1307 views
/******************************************************************************1*2* Copyright(c) 2007 - 2017 Realtek Corporation.3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of version 2 of the GNU General Public License as6* published by the Free Software Foundation.7*8* This program is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13*****************************************************************************/1415#ifndef __PHYDM_FEATURES_AP_H__16#define __PHYDM_FEATURES_AP_H__1718#if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\19RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\20RTL8822C_SUPPORT || RTL8812F_SUPPORT || RTL8814B_SUPPORT ||\21RTL8197G_SUPPORT)22#define PHYDM_LA_MODE_SUPPORT 123#else24#define PHYDM_LA_MODE_SUPPORT 025#endif2627#if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\28RTL8192F_SUPPORT)29#define DYN_ANT_WEIGHTING_SUPPORT30#endif3132#if (RTL8822B_SUPPORT || RTL8821C_SUPPORT)33#define FAHM_SUPPORT34#endif35#define NHM_SUPPORT36#define CLM_SUPPORT3738#if (RTL8812F_SUPPORT)39/*#define PHYDM_PHYSTAUS_AUTO_SWITCH*/40#endif4142#if (RTL8197F_SUPPORT)43/*#define PHYDM_TDMA_DIG_SUPPORT*/44#endif4546#if (RTL8198F_SUPPORT || RTL8814B_SUPPORT || RTL8812F_SUPPORT ||\47RTL8197G_SUPPORT)48#define PHYDM_TDMA_DIG_SUPPORT 149#ifdef PHYDM_TDMA_DIG_SUPPORT50#define IS_USE_NEW_TDMA /*new tdma dig test*/51#endif52#endif5354#if (RTL8197F_SUPPORT || RTL8822B_SUPPORT ||\55RTL8198F_SUPPORT || RTL8814B_SUPPORT || RTL8812F_SUPPORT)56#define PHYDM_LNA_SAT_CHK_SUPPORT57#ifdef PHYDM_LNA_SAT_CHK_SUPPORT5859#if (RTL8197F_SUPPORT)60/*#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/61#endif6263#if (RTL8822B_SUPPORT)64/*#define PHYDM_LNA_SAT_CHK_TYPE2*/65#endif6667#if (RTL8198F_SUPPORT || RTL8814B_SUPPORT || RTL8812F_SUPPORT)68#define PHYDM_LNA_SAT_CHK_TYPE169#endif70#endif71#endif7273#if (RTL8822B_SUPPORT)74/*#define PHYDM_POWER_TRAINING_SUPPORT*/75#endif7677#if (RTL8814B_SUPPORT || RTL8198F_SUPPORT || RTL8822C_SUPPORT ||\78RTL8812F_SUPPORT || RTL8197G_SUPPORT)79#define PHYDM_PMAC_TX_SETTING_SUPPORT80#endif8182#if (RTL8814B_SUPPORT || RTL8198F_SUPPORT || RTL8822C_SUPPORT ||\83RTL8812F_SUPPORT || RTL8197G_SUPPORT)84#define PHYDM_MP_SUPPORT85#endif8687#if (RTL8822B_SUPPORT)88#define PHYDM_TXA_CALIBRATION89#endif9091#if (RTL8188E_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)92#define PHYDM_PRIMARY_CCA93#endif9495#if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\96RTL8822B_SUPPORT || RTL8192F_SUPPORT)97#define PHYDM_DC_CANCELLATION98#endif99100#if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)101#define CONFIG_ADAPTIVE_SOML102#endif103104#if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\105RTL8192E_SUPPORT || RTL8723B_SUPPORT)106/*#define CONFIG_RA_FW_DBG_CODE*/107#endif108109#if (RTL8192F_SUPPORT == 1)110/*#define CONFIG_8912F_SPUR_CALIBRATION*/111#endif112113#if (RTL8822B_SUPPORT == 1)114/* #define CONFIG_8822B_SPUR_CALIBRATION */115#endif116117#if (RTL8197G_SUPPORT)118#define CONFIG_DIRECTIONAL_BF119#endif120121#ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR122#define CONFIG_DYNAMIC_TX_TWR123#endif124/*#define CONFIG_PSD_TOOL*/125#define PHYDM_SUPPORT_CCKPD126#define PHYDM_SUPPORT_ADAPTIVITY127/*#define CONFIG_PATH_DIVERSITY*/128/*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/129/*#define CONFIG_RA_DYNAMIC_RATE_ID*/130#define CONFIG_BB_TXBF_API131/*#define ODM_CONFIG_BT_COEXIST*/132#define PHYDM_SUPPORT_RSSI_MONITOR133#if !defined(CONFIG_DISABLE_PHYDM_DEBUG_FUNCTION)134#define CONFIG_PHYDM_DEBUG_FUNCTION135#endif136137/* [ Configure Antenna Diversity ] */138#if (RTL8188F_SUPPORT)139#ifdef CONFIG_ANTENNA_DIVERSITY140#define CONFIG_PHYDM_ANTENNA_DIVERSITY141#define CONFIG_S0S1_SW_ANTENNA_DIVERSITY142#endif143#endif144145#if defined(CONFIG_RTL_8881A_ANT_SWITCH) || defined(CONFIG_SLOT_0_ANT_SWITCH) || defined(CONFIG_SLOT_1_ANT_SWITCH) || defined(CONFIG_RTL_8197F_ANT_SWITCH)146#define CONFIG_PHYDM_ANTENNA_DIVERSITY147#define ODM_EVM_ENHANCE_ANTDIV148/*#define SKIP_EVM_ANTDIV_TRAINING_PATCH*/149150/*----------*/151#ifdef CONFIG_NO_2G_DIVERSITY_8197F152#define CONFIG_NO_2G_DIVERSITY153#elif defined(CONFIG_2G_CGCS_RX_DIVERSITY_8197F)154#define CONFIG_2G_CGCS_RX_DIVERSITY155#elif defined(CONFIG_2G_CG_TRX_DIVERSITY_8197F)156#define CONFIG_2G_CG_TRX_DIVERSITY157#endif158159#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))160#define CONFIG_NO_2G_DIVERSITY161#endif162163#ifdef CONFIG_NO_5G_DIVERSITY_8881A164#define CONFIG_NO_5G_DIVERSITY165#elif defined(CONFIG_5G_CGCS_RX_DIVERSITY_8881A)166#define CONFIG_5G_CGCS_RX_DIVERSITY167#elif defined(CONFIG_5G_CG_TRX_DIVERSITY_8881A)168#define CONFIG_5G_CG_TRX_DIVERSITY169#elif defined(CONFIG_2G5G_CG_TRX_DIVERSITY_8881A)170#define CONFIG_2G5G_CG_TRX_DIVERSITY171#endif172#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))173#define CONFIG_NO_5G_DIVERSITY174#endif175/*----------*/176#if (defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))177#define CONFIG_NOT_SUPPORT_ANTDIV178#elif (!defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))179#define CONFIG_2G_SUPPORT_ANTDIV180#elif (defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY))181#define CONFIG_5G_SUPPORT_ANTDIV182#elif ((!defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY)) || defined(CONFIG_2G5G_CG_TRX_DIVERSITY))183#define CONFIG_2G5G_SUPPORT_ANTDIV184#endif185/*----------*/186#endif /*Antenna Diveristy*/187188/*[SmartAntenna]*/189/*#define CONFIG_SMART_ANTENNA*/190#ifdef CONFIG_SMART_ANTENNA191/*#define CONFIG_CUMITEK_SMART_ANTENNA*/192#endif193#define CFG_DIG_DAMPING_CHK194/* --------------------------------------------------*/195#ifdef PHYDM_BEAMFORMING_SUPPORT196#if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\197RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\198RTL8814B_SUPPORT || RTL8812F_SUPPORT)199#define DRIVER_BEAMFORMING_VERSION2200#endif201#endif202203#endif204205206