1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-23 13:49:57 +00:00
rtl8812au/hal/phydm/halrf/rtl8814a/halrf_8814a_ce.h

113 lines
2.5 KiB
C
Raw Normal View History

/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
*
******************************************************************************/
#ifndef __HAL_PHY_RF_8814A_H__
#define __HAL_PHY_RF_8814A_H__
/*--------------------------Define Parameters-------------------------------*/
#define AVG_THERMAL_NUM_8814A 4
#define RF_T_METER_8814A 0x42
#include "../halphyrf_ce.h"
2018-07-13 12:56:34 +00:00
void configure_txpower_track_8814a(
struct _TXPWRTRACK_CFG *pConfig
);
VOID
GetDeltaSwingTable_8814A(
IN PVOID pDM_VOID,
2018-07-13 12:56:34 +00:00
u8* *TemperatureUP_A,
u8* *TemperatureDOWN_A,
u8* *TemperatureUP_B,
u8* *TemperatureDOWN_B
);
VOID
GetDeltaSwingTable_8814A_PathCD(
IN PVOID pDM_VOID,
2018-07-13 12:56:34 +00:00
u8* *TemperatureUP_C,
u8* *TemperatureDOWN_C,
u8* *TemperatureUP_D,
u8* *TemperatureDOWN_D
);
VOID
ODM_TxPwrTrackSetPwr8814A(
IN PVOID pDM_VOID,
2018-07-13 12:56:34 +00:00
enum pwrtrack_method Method,
u8 RFPath,
u8 ChannelMappedIndex
);
2018-07-13 12:56:34 +00:00
u8
CheckRFGainOffset(
2018-07-13 12:56:34 +00:00
struct PHY_DM_STRUCT *pDM_Odm,
enum pwrtrack_method Method,
u8 RFPath
);
VOID
2018-07-13 12:56:34 +00:00
phy_iq_calibrate_8814a(
IN PVOID pDM_VOID,
2018-07-13 12:56:34 +00:00
boolean bReCovery
);
//
// LC calibrate
//
void
2018-07-13 12:56:34 +00:00
phy_lc_calibrate_8814a(
IN PVOID pDM_VOID
);
//
// AP calibrate
//
void
PHY_APCalibrate_8814A(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
2018-07-13 12:56:34 +00:00
struct PHY_DM_STRUCT * pDM_Odm,
#else
IN PADAPTER pAdapter,
#endif
IN s1Byte delta
);
VOID
PHY_DPCalibrate_8814A(
2018-07-13 12:56:34 +00:00
struct PHY_DM_STRUCT * pDM_Odm
);
2018-07-13 12:56:34 +00:00
VOID phy_set_rf_path_switch_8814a(
#if (DM_ODM_SUPPORT_TYPE & ODM_AP)
2018-07-13 12:56:34 +00:00
struct PHY_DM_STRUCT * pDM_Odm,
#else
IN PADAPTER pAdapter,
#endif
2018-07-13 12:56:34 +00:00
boolean bMain
);
#endif // #ifndef __HAL_PHY_RF_8188E_H__