rtl8192eu-linux-driver/include/Hal8188FPhyCfg.h

135 lines
2.9 KiB
C
Raw Normal View History

2017-05-11 18:47:23 +00:00
/******************************************************************************
*
2019-11-09 10:12:08 +00:00
* Copyright(c) 2007 - 2017 Realtek Corporation.
2017-05-11 18:47:23 +00:00
*
* 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.
*
2019-11-09 10:12:08 +00:00
*****************************************************************************/
2017-05-11 18:47:23 +00:00
#ifndef __INC_HAL8188FPHYCFG_H__
#define __INC_HAL8188FPHYCFG_H__
/*--------------------------Define Parameters-------------------------------*/
#define LOOP_LIMIT 5
2019-11-09 10:12:08 +00:00
#define MAX_STALL_TIME 50 /* us */
#define AntennaDiversityValue 0x80 /* (Adapter->bSoftwareAntennaDiversity ? 0x00 : 0x80) */
2017-05-11 18:47:23 +00:00
#define MAX_TXPWR_IDX_NMODE_92S 63
#define Reset_Cnt_Limit 3
#ifdef CONFIG_PCI_HCI
2019-11-09 10:12:08 +00:00
#define MAX_AGGR_NUM 0x0B
2017-05-11 18:47:23 +00:00
#else
2019-11-09 10:12:08 +00:00
#define MAX_AGGR_NUM 0x07
#endif /* CONFIG_PCI_HCI */
2017-05-11 18:47:23 +00:00
/*--------------------------Define Parameters End-------------------------------*/
/*------------------------------Define structure----------------------------*/
/*------------------------------Define structure End----------------------------*/
/*--------------------------Exported Function prototype---------------------*/
u32
PHY_QueryBBReg_8188F(
IN PADAPTER Adapter,
IN u32 RegAddr,
IN u32 BitMask
2019-11-09 10:12:08 +00:00
);
2017-05-11 18:47:23 +00:00
VOID
PHY_SetBBReg_8188F(
IN PADAPTER Adapter,
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data
2019-11-09 10:12:08 +00:00
);
2017-05-11 18:47:23 +00:00
u32
PHY_QueryRFReg_8188F(
IN PADAPTER Adapter,
2019-11-09 10:12:08 +00:00
IN enum rf_path eRFPath,
2017-05-11 18:47:23 +00:00
IN u32 RegAddr,
IN u32 BitMask
2019-11-09 10:12:08 +00:00
);
2017-05-11 18:47:23 +00:00
VOID
PHY_SetRFReg_8188F(
IN PADAPTER Adapter,
2019-11-09 10:12:08 +00:00
IN enum rf_path eRFPath,
2017-05-11 18:47:23 +00:00
IN u32 RegAddr,
IN u32 BitMask,
IN u32 Data
2019-11-09 10:12:08 +00:00
);
2017-05-11 18:47:23 +00:00
/* MAC/BB/RF HAL config */
2019-11-09 10:12:08 +00:00
int PHY_BBConfig8188F(PADAPTER Adapter);
2017-05-11 18:47:23 +00:00
2019-11-09 10:12:08 +00:00
int PHY_RFConfig8188F(PADAPTER Adapter);
2017-05-11 18:47:23 +00:00
s32 PHY_MACConfig8188F(PADAPTER padapter);
int
PHY_ConfigRFWithParaFile_8188F(
IN PADAPTER Adapter,
2019-11-09 10:12:08 +00:00
IN u8 *pFileName,
enum rf_path eRFPath
2017-05-11 18:47:23 +00:00
);
VOID
PHY_SetTxPowerIndex_8188F(
IN PADAPTER Adapter,
IN u32 PowerIndex,
2019-11-09 10:12:08 +00:00
IN enum rf_path RFPath,
2017-05-11 18:47:23 +00:00
IN u8 Rate
2019-11-09 10:12:08 +00:00
);
2017-05-11 18:47:23 +00:00
u8
PHY_GetTxPowerIndex_8188F(
IN PADAPTER pAdapter,
2019-11-09 10:12:08 +00:00
IN enum rf_path RFPath,
IN u8 Rate,
IN u8 BandWidth,
IN u8 Channel,
struct txpwr_idx_comp *tic
);
VOID
PHY_GetTxPowerLevel8188F(
2017-05-11 18:47:23 +00:00
IN PADAPTER Adapter,
2019-11-09 10:12:08 +00:00
OUT s32 *powerlevel
);
2017-05-11 18:47:23 +00:00
VOID
PHY_SetTxPowerLevel8188F(
IN PADAPTER Adapter,
IN u8 channel
);
VOID
PHY_SetSwChnlBWMode8188F(
IN PADAPTER Adapter,
IN u8 channel,
2019-11-09 10:12:08 +00:00
IN enum channel_width Bandwidth,
2017-05-11 18:47:23 +00:00
IN u8 Offset40,
IN u8 Offset80
);
2019-11-09 10:12:08 +00:00
VOID phy_set_rf_path_switch_8188f(
IN struct dm_struct *phydm,
IN bool bMain
);
void BBTurnOnBlock_8188F(_adapter *adapter);
2017-05-11 18:47:23 +00:00
/*--------------------------Exported Function prototype End---------------------*/
#endif