linux/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.h
<<
>>
Prefs
   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 ******************************************************************************/
  15
  16#ifndef __HAL_PHY_RF_8723B_H__
  17#define __HAL_PHY_RF_8723B_H__
  18
  19/*--------------------------Define Parameters-------------------------------*/
  20#define IQK_DELAY_TIME_8723B            20              /* ms */
  21#define IQK_DEFERRED_TIME_8723B         4
  22#define index_mapping_NUM_8723B         15
  23#define AVG_THERMAL_NUM_8723B           4
  24#define RF_T_METER_8723B                                        0x42    /*  */
  25
  26
  27void ConfigureTxpowerTrack_8723B(PTXPWRTRACK_CFG        pConfig);
  28
  29void DoIQK_8723B(
  30        PDM_ODM_T pDM_Odm,
  31        u8 DeltaThermalIndex,
  32        u8 ThermalValue,
  33        u8 Threshold
  34);
  35
  36void ODM_TxPwrTrackSetPwr_8723B(
  37        PDM_ODM_T pDM_Odm,
  38        PWRTRACK_METHOD Method,
  39        u8 RFPath,
  40        u8 ChannelMappedIndex
  41);
  42
  43/* 1 7. IQK */
  44void PHY_IQCalibrate_8723B(
  45        struct adapter *Adapter,
  46        bool bReCovery,
  47        bool bRestore,
  48        bool Is2ant,
  49        u8 RF_Path
  50);
  51
  52void ODM_SetIQCbyRFpath(PDM_ODM_T pDM_Odm, u32 RFpath);
  53
  54/*  */
  55/*  LC calibrate */
  56/*  */
  57void PHY_LCCalibrate_8723B(PDM_ODM_T pDM_Odm);
  58
  59/*  */
  60/*  AP calibrate */
  61/*  */
  62void PHY_DigitalPredistortion_8723B(struct adapter *padapter);
  63
  64
  65void _PHY_SaveADDARegisters_8723B(
  66        struct adapter *padapter,
  67        u32 *ADDAReg,
  68        u32 *ADDABackup,
  69        u32 RegisterNum
  70);
  71
  72void _PHY_PathADDAOn_8723B(
  73        struct adapter *padapter,
  74        u32 *ADDAReg,
  75        bool isPathAOn,
  76        bool is2T
  77);
  78
  79void _PHY_MACSettingCalibration_8723B(
  80        struct adapter *padapter, u32 *MACReg, u32 *MACBackup
  81);
  82
  83#endif /*  #ifndef __HAL_PHY_RF_8188E_H__ */
  84