Path: blob/master/ALFA-W1F1/RTL8814AU/hal/phydm/phydm_features_ce.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* The full GNU General Public License is included in this distribution in the14* file called LICENSE.15*16* Contact Information:17* wlanfae <[email protected]>18* Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,19* Hsinchu 300, Taiwan.20*21* Larry Finger <[email protected]>22*23*****************************************************************************/2425#ifndef __PHYDM_FEATURES_CE_H__26#define __PHYDM_FEATURES_CE_H__2728#if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\29RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\30RTL8822C_SUPPORT)31#define PHYDM_LA_MODE_SUPPORT 132#else33#define PHYDM_LA_MODE_SUPPORT 034#endif3536#if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\37RTL8192F_SUPPORT)38#define DYN_ANT_WEIGHTING_SUPPORT39#endif4041#if (RTL8822B_SUPPORT || RTL8821C_SUPPORT)42#define FAHM_SUPPORT43#endif44#define NHM_SUPPORT45#define CLM_SUPPORT4647#if (RTL8822C_SUPPORT)48#define NHM_DYM_PW_TH_SUPPORT49#endif5051#if (RTL8822C_SUPPORT)52/*@#define PHYDM_PHYSTAUS_AUTO_SWITCH*/53#endif5455/*@#define PHYDM_TDMA_DIG_SUPPORT*/5657#if (RTL8822B_SUPPORT || RTL8192F_SUPPORT || RTL8821C_SUPPORT ||\58RTL8822C_SUPPORT || RTL8723D_SUPPORT)59#ifdef CONFIG_TDMADIG60#define PHYDM_TDMA_DIG_SUPPORT61#ifdef PHYDM_TDMA_DIG_SUPPORT62#define IS_USE_NEW_TDMA /*new tdma dig test*/63#endif64#endif65#endif6667#if (RTL8814B_SUPPORT)68/*@#define PHYDM_TDMA_DIG_SUPPORT*/69#ifdef PHYDM_TDMA_DIG_SUPPORT70/*@#define IS_USE_NEW_TDMA*/ /*new tdma dig test*/71#endif72#endif7374#if (RTL8197F_SUPPORT || RTL8822B_SUPPORT || RTL8814B_SUPPORT)75/*@#define PHYDM_LNA_SAT_CHK_SUPPORT*/76#ifdef PHYDM_LNA_SAT_CHK_SUPPORT7778#if (RTL8197F_SUPPORT)79/*@#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/80#endif8182#if (RTL8822B_SUPPORT)83/*@#define PHYDM_LNA_SAT_CHK_TYPE2*/84#endif8586#if (RTL8814B_SUPPORT)87/*@#define PHYDM_LNA_SAT_CHK_TYPE1*/88#endif89#endif90#endif9192#if (RTL8822B_SUPPORT || RTL8192F_SUPPORT)93#define PHYDM_POWER_TRAINING_SUPPORT94#endif9596#if (RTL8822C_SUPPORT || RTL8814B_SUPPORT)97#define PHYDM_PMAC_TX_SETTING_SUPPORT98#endif99100#if (RTL8822C_SUPPORT || RTL8814B_SUPPORT)101#define PHYDM_MP_SUPPORT102#endif103104#if (RTL8822C_SUPPORT)105#define PHYDM_CCK_RX_PATHDIV_SUPPORT106#endif107108#if (RTL8822B_SUPPORT)109#define PHYDM_TXA_CALIBRATION110#endif111112#if (RTL8188E_SUPPORT)113#define PHYDM_PRIMARY_CCA114#endif115116#if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\117RTL8822B_SUPPORT || RTL8192F_SUPPORT)118#define PHYDM_DC_CANCELLATION119#endif120121#if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)122#define CONFIG_ADAPTIVE_SOML123#endif124125#if (RTL8188E_SUPPORT || RTL8192E_SUPPORT)126#define CONFIG_RECEIVER_BLOCKING127#endif128129#if (RTL8192F_SUPPORT)130/*#define CONFIG_8912F_SPUR_CALIBRATION*/131#endif132133#if (RTL8822B_SUPPORT)134#define CONFIG_8822B_SPUR_CALIBRATION135#endif136137#ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR138#define CONFIG_DYNAMIC_TX_TWR139#endif140#define PHYDM_SUPPORT_CCKPD141#define PHYDM_SUPPORT_ADAPTIVITY142143/*@Antenna Diversity*/144#ifdef CONFIG_ANTENNA_DIVERSITY145#define CONFIG_PHYDM_ANTENNA_DIVERSITY146147#ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY148149#if (RTL8723B_SUPPORT || RTL8821A_SUPPORT ||\150RTL8188F_SUPPORT || RTL8821C_SUPPORT ||\151RTL8723D_SUPPORT)152#define CONFIG_S0S1_SW_ANTENNA_DIVERSITY153#endif154155#if (RTL8821A_SUPPORT)156/*@#define CONFIG_HL_SMART_ANTENNA_TYPE1*/157#endif158159#if (RTL8822B_SUPPORT)160/*@#define CONFIG_HL_SMART_ANTENNA_TYPE2*/161#endif162163#endif164#endif165166#if (RTL8822B_SUPPORT || RTL8822C_SUPPORT || RTL8192F_SUPPORT)167#define CONFIG_PATH_DIVERSITY168#endif169170/*@[SmartAntenna]*/171/*@#define CONFIG_SMART_ANTENNA*/172#ifdef CONFIG_SMART_ANTENNA173/*@#define CONFIG_CUMITEK_SMART_ANTENNA*/174#endif175/* @--------------------------------------------------*/176177#ifdef CONFIG_DFS_MASTER178#define CONFIG_PHYDM_DFS_MASTER179#endif180181#if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\182RTL8192E_SUPPORT || RTL8723B_SUPPORT)183/*@#define CONFIG_RA_FW_DBG_CODE*/184#endif185186#define CONFIG_PSD_TOOL187/*@#define CONFIG_ANT_DETECTION*/188/*@#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/189#define CONFIG_BB_TXBF_API190#define CONFIG_PHYDM_DEBUG_FUNCTION191192#ifdef CONFIG_BT_COEXIST193#define ODM_CONFIG_BT_COEXIST194#endif195#define PHYDM_SUPPORT_RSSI_MONITOR196#define PHYDM_AUTO_DEGBUG197#define CFG_DIG_DAMPING_CHK198199200#ifdef PHYDM_BEAMFORMING_SUPPORT201#if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8192E_SUPPORT ||\202RTL8814A_SUPPORT || RTL8881A_SUPPORT)203#define PHYDM_BEAMFORMING_VERSION1204#endif205#if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\206RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\207RTL8822C_SUPPORT || RTL8814B_SUPPORT)208#define DRIVER_BEAMFORMING_VERSION2209#endif210#endif211212#if (RTL8822B_SUPPORT || RTL8822C_SUPPORT)213#ifdef CONFIG_MCC_MODE214#define CONFIG_MCC_DM215#endif216#endif217218#if (RTL8822B_SUPPORT)219#ifdef CONFIG_DYNAMIC_BYPASS_MODE220#define CONFIG_DYNAMIC_BYPASS221#endif222#endif223224#if (RTL8822B_SUPPORT || RTL8192F_SUPPORT)225#define CONFIG_DIRECTIONAL_BF226#endif227228#endif229230231