Path: blob/master/ALFA-W1F1/RTL8814AU/include/Hal8192FPhyCfg.h
1307 views
/******************************************************************************1*2* Copyright(c) 2007 - 2017 Realtek Corporation.3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of version 2 of the GNU General Public License as6* published by the Free Software Foundation.7*8* This program is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13*****************************************************************************/14#ifndef __INC_HAL8192FPHYCFG_H__15#define __INC_HAL8192FPHYCFG_H__1617/*--------------------------Define Parameters-------------------------------*/18#define LOOP_LIMIT 519#define MAX_STALL_TIME 50 /* us */20#define AntennaDiversityValue 0x80 /* (Adapter->bSoftwareAntennaDiversity ? 0x00 : 0x80) */21#define MAX_TXPWR_IDX_NMODE_92S 6322#define Reset_Cnt_Limit 32324#ifdef CONFIG_PCI_HCI25#define MAX_AGGR_NUM 0x0B26#else27#define MAX_AGGR_NUM 0x0728#endif /* CONFIG_PCI_HCI */293031/*--------------------------Define Parameters End-------------------------------*/323334/*------------------------------Define structure----------------------------*/3536/*------------------------------Define structure End----------------------------*/3738/*--------------------------Exported Function prototype---------------------*/39u3240PHY_QueryBBReg_8192F(41PADAPTER Adapter,42u32 RegAddr,43u32 BitMask44);4546void47PHY_SetBBReg_8192F(48PADAPTER Adapter,49u32 RegAddr,50u32 BitMask,51u32 Data52);5354u3255PHY_QueryRFReg_8192F(56PADAPTER Adapter,57enum rf_path eRFPath,58u32 RegAddr,59u32 BitMask60);6162void63PHY_SetRFReg_8192F(64PADAPTER Adapter,65enum rf_path eRFPath,66u32 RegAddr,67u32 BitMask,68u32 Data69);7071/* MAC/BB/RF HAL config */72int PHY_BBConfig8192F(PADAPTER Adapter );7374int PHY_RFConfig8192F(PADAPTER Adapter);7576s32 PHY_MACConfig8192F(PADAPTER padapter);7778int79PHY_ConfigRFWithParaFile_8192F(80PADAPTER Adapter,81u8 *pFileName,82enum rf_path eRFPath83);8485void86PHY_SetTxPowerIndex_8192F(87PADAPTER Adapter,88u32 PowerIndex,89enum rf_path RFPath,90u8 Rate91);9293u894PHY_GetTxPowerIndex_8192F(95PADAPTER pAdapter,96enum rf_path RFPath,97u8 Rate,98u8 BandWidth,99u8 Channel,100struct txpwr_idx_comp *tic101);102103void104PHY_SetTxPowerLevel8192F(105PADAPTER Adapter,106u8 channel107);108109void110PHY_SetSwChnlBWMode8192F(111PADAPTER Adapter,112u8 channel,113enum channel_width Bandwidth,114u8 Offset40,115u8 Offset80116);117118void phy_set_rf_path_switch_8192f(119PADAPTER pAdapter,120bool bMain121);122/*--------------------------Exported Function prototype End---------------------*/123124#endif125126127