1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 /* Copyright(c) 2007 - 2011 Realtek Corporation. */ 3 4 #ifndef __HAL_PHY_RF_8188E_H__ 5 #define __HAL_PHY_RF_8188E_H__ 6 7 /*--------------------------Define Parameters-------------------------------*/ 8 #define IQK_DELAY_TIME_88E 10 /* ms */ 9 #define index_mapping_NUM_88E 15 10 #define AVG_THERMAL_NUM_88E 4 11 12 void ODM_TxPwrTrackAdjust88E(struct odm_dm_struct *pDM_Odm, 13 u8 Type, /* 0 = OFDM, 1 = CCK */ 14 u8 *pDirection,/* 1 = +(incr) 2 = -(decr) */ 15 u32 *pOutWriteVal); /* Tx tracking CCK/OFDM BB 16 * swing index adjust */ 17 18 void odm_TXPowerTrackingCallback_ThermalMeter_8188E(struct adapter *Adapter); 19 20 /* 1 7. IQK */ 21 22 void PHY_IQCalibrate_8188E(struct adapter *Adapter, bool ReCovery); 23 24 /* LC calibrate */ 25 void PHY_LCCalibrate_8188E(struct adapter *pAdapter); 26 27 /* AP calibrate */ 28 void PHY_DigitalPredistortion_8188E(struct adapter *pAdapter); 29 30 void _PHY_SaveADDARegisters(struct adapter *pAdapter, u32 *ADDAReg, 31 u32 *ADDABackup, u32 RegisterNum); 32 33 void _PHY_MACSettingCalibration(struct adapter *pAdapter, u32 *MACReg, 34 u32 *MACBackup); 35 36 #endif /* #ifndef __HAL_PHY_RF_8188E_H__ */ 37