1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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.
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
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 ******************************************************************************/
21 #ifndef __HAL_PHY_RF_8188E_H__
22 #define __HAL_PHY_RF_8188E_H__
24 /*--------------------------Define Parameters-------------------------------*/
25 #define IQK_DELAY_TIME_88E 10 /* ms */
26 #define index_mapping_NUM_88E 15
27 #define AVG_THERMAL_NUM_88E 4
30 void ODM_TxPwrTrackAdjust88E(struct odm_dm_struct *pDM_Odm,
31 u8 Type, /* 0 = OFDM, 1 = CCK */
32 u8 *pDirection,/* 1 = +(incr) 2 = -(decr) */
33 u32 *pOutWriteVal); /* Tx tracking CCK/OFDM BB
34 * swing index adjust */
37 void odm_TXPowerTrackingCallback_ThermalMeter_8188E(struct adapter *Adapter);
42 void PHY_IQCalibrate_8188E(struct adapter *Adapter, bool ReCovery);
45 void PHY_LCCalibrate_8188E(struct adapter *pAdapter);
48 void PHY_APCalibrate_8188E(struct adapter *pAdapter, s8 delta);
50 void PHY_DigitalPredistortion_8188E(struct adapter *pAdapter);
52 void _PHY_SaveADDARegisters(struct adapter *pAdapter, u32 *ADDAReg,
53 u32 *ADDABackup, u32 RegisterNum);
55 void _PHY_PathADDAOn(struct adapter *pAdapter, u32 *ADDAReg,
56 bool isPathAOn, bool is2T);
58 void _PHY_MACSettingCalibration(struct adapter *pAdapter, u32 *MACReg,
61 void _PHY_PathAStandBy(struct adapter *pAdapter);
63 #endif /* #ifndef __HAL_PHY_RF_8188E_H__ */