]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/staging/rtl8188eu/include/HalPhyRf_8188e.h
Merge remote-tracking branch 'staging/staging-next'
[karo-tx-linux.git] / drivers / staging / rtl8188eu / include / HalPhyRf_8188e.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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  * 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
17  *
18  *
19  ******************************************************************************/
20
21 #ifndef __HAL_PHY_RF_8188E_H__
22 #define __HAL_PHY_RF_8188E_H__
23
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
28
29
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 */
35
36
37 void odm_TXPowerTrackingCallback_ThermalMeter_8188E(struct adapter *Adapter);
38
39
40 /* 1 7. IQK */
41
42 void PHY_IQCalibrate_8188E(struct adapter *Adapter, bool ReCovery);
43
44 /*  LC calibrate */
45 void PHY_LCCalibrate_8188E(struct adapter *pAdapter);
46
47 /*  AP calibrate */
48 void PHY_DigitalPredistortion_8188E(struct adapter *pAdapter);
49
50 void _PHY_SaveADDARegisters(struct adapter *pAdapter, u32 *ADDAReg,
51                             u32 *ADDABackup, u32 RegisterNum);
52
53 void _PHY_PathADDAOn(struct adapter *pAdapter, u32 *ADDAReg,
54                      bool isPathAOn, bool is2T);
55
56 void _PHY_MACSettingCalibration(struct adapter *pAdapter, u32 *MACReg,
57                                 u32 *MACBackup);
58
59 void _PHY_PathAStandBy(struct adapter *pAdapter);
60
61 #endif  /*  #ifndef __HAL_PHY_RF_8188E_H__ */