2014-12-11 21:15:04 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
2014-12-19 06:59:46 +00:00
|
|
|
*
|
2014-12-11 21:15:04 +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.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* Module: __INC_HAL8192DPHYCFG_H
|
|
|
|
*
|
|
|
|
*
|
2014-12-19 06:59:46 +00:00
|
|
|
* Note:
|
|
|
|
*
|
2014-12-11 21:15:04 +00:00
|
|
|
*
|
|
|
|
* Export: Constants, macro, functions(API), global variables(None).
|
|
|
|
*
|
2014-12-19 06:59:46 +00:00
|
|
|
* Abbrev:
|
2014-12-11 21:15:04 +00:00
|
|
|
*
|
|
|
|
* History:
|
2014-12-19 06:59:46 +00:00
|
|
|
* Data Who Remark
|
|
|
|
* 08/07/2007 MHC 1. Porting from 9x series PHYCFG.h.
|
2014-12-11 21:15:04 +00:00
|
|
|
* 2. Reorganize code architecture.
|
2014-12-19 06:59:46 +00:00
|
|
|
*
|
2014-12-11 21:15:04 +00:00
|
|
|
*****************************************************************************/
|
|
|
|
/* Check to see if the file has been included already. */
|
|
|
|
#ifndef __INC_HAL8192DPHYCFG_H
|
|
|
|
#define __INC_HAL8192DPHYCFG_H
|
|
|
|
|
|
|
|
|
|
|
|
/*--------------------------Define Parameters-------------------------------*/
|
|
|
|
#define LOOP_LIMIT 5
|
2015-03-16 14:43:53 +00:00
|
|
|
#define MAX_STALL_TIME 50 /* us */
|
|
|
|
#define AntennaDiversityValue 0x80 /* Adapter->bSoftwareAntennaDiversity ? 0x00:0x80) */
|
2014-12-11 21:15:04 +00:00
|
|
|
#define MAX_TXPWR_IDX_NMODE_92S 63
|
|
|
|
#define Reset_Cnt_Limit 3
|
|
|
|
|
|
|
|
|
|
|
|
/*--------------------------Define Parameters-------------------------------*/
|
|
|
|
|
|
|
|
|
2014-12-19 06:59:46 +00:00
|
|
|
/*------------------------------Define structure----------------------------*/
|
2014-12-11 21:15:04 +00:00
|
|
|
typedef enum _SwChnlCmdID{
|
|
|
|
CmdID_End,
|
|
|
|
CmdID_SetTxPowerLevel,
|
|
|
|
CmdID_BBRegWrite10,
|
|
|
|
CmdID_WritePortUlong,
|
|
|
|
CmdID_WritePortUshort,
|
|
|
|
CmdID_WritePortUchar,
|
|
|
|
CmdID_RF_WriteReg,
|
|
|
|
}SwChnlCmdID;
|
|
|
|
|
|
|
|
|
|
|
|
/* 1. Switch channel related */
|
|
|
|
typedef struct _SwChnlCmd{
|
|
|
|
SwChnlCmdID CmdID;
|
|
|
|
u32 Para1;
|
|
|
|
u32 Para2;
|
|
|
|
u32 msDelay;
|
|
|
|
}SwChnlCmd;
|
|
|
|
|
|
|
|
typedef enum _HW90_BLOCK{
|
|
|
|
HW90_BLOCK_MAC = 0,
|
|
|
|
HW90_BLOCK_PHY0 = 1,
|
|
|
|
HW90_BLOCK_PHY1 = 2,
|
|
|
|
HW90_BLOCK_RF = 3,
|
2015-03-16 14:43:53 +00:00
|
|
|
HW90_BLOCK_MAXIMUM = 4, /* Never use this */
|
2014-12-11 21:15:04 +00:00
|
|
|
}HW90_BLOCK_E, *PHW90_BLOCK_E;
|
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* vivi added this for read parameter from header, 20100908 */
|
2014-12-11 21:15:04 +00:00
|
|
|
typedef enum _RF_CONTENT{
|
|
|
|
radioa_txt = 0x1000,
|
|
|
|
radiob_txt = 0x1001,
|
|
|
|
radioc_txt = 0x1002,
|
|
|
|
radiod_txt = 0x1003
|
|
|
|
} RF_CONTENT;
|
|
|
|
|
|
|
|
typedef enum _RF_RADIO_PATH{
|
2015-03-16 14:43:53 +00:00
|
|
|
RF_PATH_A = 0, /* Radio Path A */
|
|
|
|
RF_PATH_B = 1, /* Radio Path B */
|
|
|
|
RF_PATH_C = 2, /* Radio Path C */
|
|
|
|
RF_PATH_D = 3, /* Radio Path D */
|
|
|
|
/* RF_PATH_MAX Max RF number 90 support */
|
2014-12-11 21:15:04 +00:00
|
|
|
}RF_RADIO_PATH_E, *PRF_RADIO_PATH_E;
|
|
|
|
|
|
|
|
#define RF_PATH_MAX 2
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum _WIRELESS_MODE {
|
|
|
|
WIRELESS_MODE_UNKNOWN = 0x00,
|
|
|
|
WIRELESS_MODE_A = 0x01,
|
|
|
|
WIRELESS_MODE_B = 0x02,
|
|
|
|
WIRELESS_MODE_G = 0x04,
|
|
|
|
WIRELESS_MODE_AUTO = 0x08,
|
|
|
|
WIRELESS_MODE_N_24G = 0x10,
|
|
|
|
WIRELESS_MODE_N_5G = 0x20
|
|
|
|
} WIRELESS_MODE;
|
|
|
|
|
|
|
|
|
|
|
|
#if(TX_POWER_FOR_5G_BAND == 1)
|
2015-03-16 14:43:53 +00:00
|
|
|
#define CHANNEL_MAX_NUMBER 14+24+21 /* 14 is the max channel number */
|
|
|
|
#define CHANNEL_GROUP_MAX 3+9 /* ch1~3, ch4~9, ch10~14 total three groups */
|
2014-12-11 21:15:04 +00:00
|
|
|
#define MAX_PG_GROUP 13
|
|
|
|
#else
|
2015-03-16 14:43:53 +00:00
|
|
|
#define CHANNEL_MAX_NUMBER 14 /* 14 is the max channel number */
|
|
|
|
#define CHANNEL_GROUP_MAX 3 /* ch1~3, ch4~9, ch10~14 total three groups */
|
2014-12-11 21:15:04 +00:00
|
|
|
#define MAX_PG_GROUP 7
|
|
|
|
#endif
|
|
|
|
#define CHANNEL_GROUP_MAX_2G 3
|
|
|
|
#define CHANNEL_GROUP_IDX_5GL 3
|
|
|
|
#define CHANNEL_GROUP_IDX_5GM 6
|
|
|
|
#define CHANNEL_GROUP_IDX_5GH 9
|
|
|
|
#define CHANNEL_GROUP_MAX_5G 9
|
|
|
|
#define CHANNEL_MAX_NUMBER_2G 14
|
|
|
|
|
|
|
|
#if (RTL8192D_DUAL_MAC_MODE_SWITCH == 1)
|
|
|
|
typedef enum _BaseBand_Config_Type{
|
2014-12-19 06:59:46 +00:00
|
|
|
BaseBand_Config_PHY_REG = 0,
|
|
|
|
BaseBand_Config_AGC_TAB = 1,
|
2014-12-11 21:15:04 +00:00
|
|
|
BaseBand_Config_AGC_TAB_2G = 2,
|
|
|
|
BaseBand_Config_AGC_TAB_5G = 3,
|
|
|
|
}BaseBand_Config_Type, *PBaseBand_Config_Type;
|
|
|
|
#else
|
|
|
|
typedef enum _BaseBand_Config_Type{
|
2015-03-16 14:43:53 +00:00
|
|
|
BaseBand_Config_PHY_REG = 0, /* Radio Path A */
|
|
|
|
BaseBand_Config_AGC_TAB = 1, /* Radio Path B */
|
2014-12-11 21:15:04 +00:00
|
|
|
}BaseBand_Config_Type, *PBaseBand_Config_Type;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum _MACPHY_MODE_8192D{
|
2015-03-16 14:43:53 +00:00
|
|
|
SINGLEMAC_SINGLEPHY, /* SMSP */
|
|
|
|
DUALMAC_DUALPHY, /* DMDP */
|
|
|
|
DUALMAC_SINGLEPHY, /* DMSP */
|
2014-12-11 21:15:04 +00:00
|
|
|
}MACPHY_MODE_8192D,*PMACPHY_MODE_8192D;
|
|
|
|
|
|
|
|
typedef enum _MACPHY_MODE_CHANGE_ACTION{
|
|
|
|
DMDP2DMSP = 0,
|
|
|
|
DMSP2DMDP = 1,
|
|
|
|
DMDP2SMSP = 2,
|
|
|
|
SMSP2DMDP = 3,
|
|
|
|
DMSP2SMSP = 4,
|
|
|
|
SMSP2DMSP = 5,
|
|
|
|
MAXACTION
|
|
|
|
}MACPHY_MODE_CHANGE_ACTION,*PMACPHY_MODE_CHANGE_ACTION;
|
|
|
|
|
|
|
|
typedef enum _BAND_TYPE{
|
2014-12-19 06:59:46 +00:00
|
|
|
BAND_ON_2_4G = 1,
|
2014-12-11 21:15:04 +00:00
|
|
|
BAND_ON_5G = 2,
|
|
|
|
BAND_ON_BOTH,
|
|
|
|
BANDMAX
|
|
|
|
}BAND_TYPE,*PBAND_TYPE;
|
|
|
|
|
|
|
|
typedef enum _PHY_Rate_Tx_Power_Offset_Area{
|
|
|
|
RA_OFFSET_LEGACY_OFDM1,
|
|
|
|
RA_OFFSET_LEGACY_OFDM2,
|
|
|
|
RA_OFFSET_HT_OFDM1,
|
|
|
|
RA_OFFSET_HT_OFDM2,
|
|
|
|
RA_OFFSET_HT_OFDM3,
|
|
|
|
RA_OFFSET_HT_OFDM4,
|
|
|
|
RA_OFFSET_HT_CCK,
|
|
|
|
}RA_OFFSET_AREA,*PRA_OFFSET_AREA;
|
|
|
|
|
|
|
|
|
|
|
|
/* BB/RF related */
|
|
|
|
typedef enum _RF_TYPE_8190P{
|
2015-03-16 14:43:53 +00:00
|
|
|
RF_TYPE_MIN, /* 0 */
|
|
|
|
RF_8225=1, /* 1 11b/g RF for verification only */
|
|
|
|
RF_8256=2, /* 2 11b/g/n */
|
|
|
|
RF_8258=3, /* 3 11a/b/g/n RF */
|
|
|
|
RF_6052=4, /* 4 11b/g/n RF */
|
|
|
|
/* TODO: We sholud remove this psudo PHY RF after we get new RF. */
|
|
|
|
RF_PSEUDO_11N=5, /* 5, It is a temporality RF. */
|
2014-12-11 21:15:04 +00:00
|
|
|
}RF_TYPE_8190P_E,*PRF_TYPE_8190P_E;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _BB_REGISTER_DEFINITION{
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfintfs; /* set software control: */
|
|
|
|
/* 0x870~0x877[8 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfintfi; /* readback data: */
|
|
|
|
/* 0x8e0~0x8e7[8 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfintfo; /* output data: */
|
|
|
|
/* 0x860~0x86f [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfintfe; /* output enable: */
|
|
|
|
/* 0x860~0x86f [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rf3wireOffset; /* LSSI data: */
|
|
|
|
/* 0x840~0x84f [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfLSSI_Select; /* BB Band Select: */
|
|
|
|
/* 0x878~0x87f [8 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfTxGainStage; /* Tx gain stage: */
|
|
|
|
/* 0x80c~0x80f [4 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfHSSIPara1; /* wire parameter control1 : */
|
|
|
|
/* 0x820~0x823,0x828~0x82b, 0x830~0x833, 0x838~0x83b [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfHSSIPara2; /* wire parameter control2 : */
|
|
|
|
/* 0x824~0x827,0x82c~0x82f, 0x834~0x837, 0x83c~0x83f [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfSwitchControl; /* Tx Rx antenna control : */
|
|
|
|
/* 0x858~0x85f [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfAGCControl1; /* AGC parameter control1 : */
|
|
|
|
/* 0xc50~0xc53,0xc58~0xc5b, 0xc60~0xc63, 0xc68~0xc6b [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfAGCControl2; /* AGC parameter control2 : */
|
|
|
|
/* 0xc54~0xc57,0xc5c~0xc5f, 0xc64~0xc67, 0xc6c~0xc6f [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfRxIQImbalance; /* OFDM Rx IQ imbalance matrix : */
|
|
|
|
/* 0xc14~0xc17,0xc1c~0xc1f, 0xc24~0xc27, 0xc2c~0xc2f [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfRxAFE; /* Rx IQ DC ofset and Rx digital filter, Rx DC notch filter : */
|
|
|
|
/* 0xc10~0xc13,0xc18~0xc1b, 0xc20~0xc23, 0xc28~0xc2b [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfTxIQImbalance; /* OFDM Tx IQ imbalance matrix */
|
|
|
|
/* 0xc80~0xc83,0xc88~0xc8b, 0xc90~0xc93, 0xc98~0xc9b [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfTxAFE; /* Tx IQ DC Offset and Tx DFIR type */
|
|
|
|
/* 0xc84~0xc87,0xc8c~0xc8f, 0xc94~0xc97, 0xc9c~0xc9f [16 bytes] */
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfLSSIReadBack; /* LSSI RF readback data SI mode */
|
|
|
|
/* 0x8a0~0x8af [16 bytes] */
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
u32 rfLSSIReadBackPi; /* LSSI RF readback data PI mode 0x8b8-8bc for Path A and B */
|
2014-12-11 21:15:04 +00:00
|
|
|
|
|
|
|
}BB_REGISTER_DEFINITION_T, *PBB_REGISTER_DEFINITION_T;
|
|
|
|
|
|
|
|
|
2014-12-19 06:59:46 +00:00
|
|
|
typedef struct _R_ANTENNA_SELECT_OFDM{
|
|
|
|
u32 r_tx_antenna:4;
|
2014-12-11 21:15:04 +00:00
|
|
|
u32 r_ant_l:4;
|
2014-12-19 06:59:46 +00:00
|
|
|
u32 r_ant_non_ht:4;
|
2014-12-11 21:15:04 +00:00
|
|
|
u32 r_ant_ht1:4;
|
|
|
|
u32 r_ant_ht2:4;
|
|
|
|
u32 r_ant_ht_s1:4;
|
|
|
|
u32 r_ant_non_ht_s1:4;
|
|
|
|
u32 OFDM_TXSC:2;
|
|
|
|
u32 Reserved:2;
|
|
|
|
}R_ANTENNA_SELECT_OFDM;
|
|
|
|
|
|
|
|
typedef struct _R_ANTENNA_SELECT_CCK{
|
2014-12-19 06:59:46 +00:00
|
|
|
u8 r_cckrx_enable_2:2;
|
2014-12-11 21:15:04 +00:00
|
|
|
u8 r_cckrx_enable:2;
|
|
|
|
u8 r_ccktx_enable:4;
|
|
|
|
}R_ANTENNA_SELECT_CCK;
|
|
|
|
|
2014-12-19 06:59:46 +00:00
|
|
|
/*------------------------------Define structure----------------------------*/
|
2014-12-11 21:15:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*------------------------Export global variable----------------------------*/
|
|
|
|
/*------------------------Export global variable----------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
/*------------------------Export Marco Definition---------------------------*/
|
|
|
|
|
|
|
|
/*--------------------------Exported Function prototype---------------------*/
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
|
|
|
/* BB and RF register read/write */
|
|
|
|
/* */
|
2014-12-17 23:13:53 +00:00
|
|
|
void rtl8192d_PHY_SetBBReg1Byte( IN struct adapter *Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN u32 RegAddr,
|
|
|
|
IN u32 BitMask,
|
|
|
|
IN u32 Data );
|
2014-12-17 23:13:53 +00:00
|
|
|
u32 rtl8192d_PHY_QueryBBReg( IN struct adapter *Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN u32 RegAddr,
|
|
|
|
IN u32 BitMask );
|
2014-12-17 23:13:53 +00:00
|
|
|
void rtl8192d_PHY_SetBBReg( IN struct adapter *Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN u32 RegAddr,
|
|
|
|
IN u32 BitMask,
|
|
|
|
IN u32 Data );
|
2014-12-17 23:13:53 +00:00
|
|
|
u32 rtl8192d_PHY_QueryRFReg( IN struct adapter * Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN RF_RADIO_PATH_E eRFPath,
|
|
|
|
IN u32 RegAddr,
|
|
|
|
IN u32 BitMask );
|
2014-12-17 23:13:53 +00:00
|
|
|
void rtl8192d_PHY_SetRFReg( IN struct adapter * Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN RF_RADIO_PATH_E eRFPath,
|
|
|
|
IN u32 RegAddr,
|
|
|
|
IN u32 BitMask,
|
|
|
|
IN u32 Data );
|
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
|
|
|
/* Initialization related function */
|
|
|
|
/* */
|
2014-12-11 21:15:04 +00:00
|
|
|
/* MAC/BB/RF HAL config */
|
2014-12-17 23:13:53 +00:00
|
|
|
extern int PHY_MACConfig8192D( IN struct adapter *Adapter );
|
|
|
|
extern int PHY_BBConfig8192D( IN struct adapter *Adapter );
|
|
|
|
extern int PHY_RFConfig8192D( IN struct adapter *Adapter );
|
2014-12-11 21:15:04 +00:00
|
|
|
/* RF config */
|
2014-12-17 23:13:53 +00:00
|
|
|
int rtl8192d_PHY_ConfigRFWithParaFile( IN struct adapter *Adapter,
|
2014-12-19 06:59:46 +00:00
|
|
|
IN u8* pFileName,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN RF_RADIO_PATH_E eRFPath);
|
2014-12-17 23:13:53 +00:00
|
|
|
int rtl8192d_PHY_ConfigRFWithHeaderFile( IN struct adapter * Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN RF_CONTENT Content,
|
|
|
|
IN RF_RADIO_PATH_E eRFPath);
|
|
|
|
/* BB/RF readback check for making sure init OK */
|
2014-12-17 23:13:53 +00:00
|
|
|
int rtl8192d_PHY_CheckBBAndRFOK( IN struct adapter * Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN HW90_BLOCK_E CheckBlock,
|
|
|
|
IN RF_RADIO_PATH_E eRFPath );
|
|
|
|
/* Read initi reg value for tx power setting. */
|
2014-12-17 23:13:53 +00:00
|
|
|
void rtl8192d_PHY_GetHWRegOriginalValue( IN struct adapter * Adapter );
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
|
|
|
/* RF Power setting */
|
|
|
|
/* */
|
|
|
|
/* extern bool PHY_SetRFPowerState(IN struct adapter * Adapter, */
|
|
|
|
/* IN RT_RF_POWER_STATE eRFPowerState); */
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
|
|
|
/* BB TX Power R/W */
|
|
|
|
/* */
|
2014-12-17 23:13:53 +00:00
|
|
|
void PHY_GetTxPowerLevel8192D( IN struct adapter * Adapter,
|
2014-12-19 06:59:46 +00:00
|
|
|
OUT u32* powerlevel );
|
2014-12-17 23:13:53 +00:00
|
|
|
void PHY_SetTxPowerLevel8192D( IN struct adapter * Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN u8 channel );
|
2015-03-02 23:21:23 +00:00
|
|
|
bool PHY_UpdateTxPowerDbm8192D( IN struct adapter *Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN int powerInDbm );
|
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2014-12-17 23:13:53 +00:00
|
|
|
PHY_ScanOperationBackup8192D(IN struct adapter *Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN u8 Operation );
|
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
|
|
|
/* Switch bandwidth for 8192S */
|
|
|
|
/* */
|
|
|
|
/* void PHY_SetBWModeCallback8192C( IN PRT_TIMER pTimer ); */
|
2014-12-17 23:13:53 +00:00
|
|
|
void PHY_SetBWMode8192D( IN struct adapter * pAdapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN HT_CHANNEL_WIDTH ChnlWidth,
|
|
|
|
IN unsigned char Offset );
|
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
|
|
|
/* Set FW CMD IO for 8192S. */
|
|
|
|
/* */
|
|
|
|
/* extern bool HalSetIO8192C( IN struct adapter * Adapter, */
|
|
|
|
/* IN IO_TYPE IOType); */
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
|
|
|
/* Set A2 entry to fw for 8192S */
|
|
|
|
/* */
|
2014-12-17 23:13:53 +00:00
|
|
|
extern void FillA2Entry8192C( IN struct adapter * Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN u8 index,
|
|
|
|
IN u8* val);
|
|
|
|
|
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
|
|
|
/* channel switch related funciton */
|
|
|
|
/* */
|
|
|
|
/* extern void PHY_SwChnlCallback8192C( IN PRT_TIMER pTimer ); */
|
2014-12-17 23:13:53 +00:00
|
|
|
void PHY_SwChnl8192D( IN struct adapter * pAdapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN u8 channel );
|
2015-03-16 14:43:53 +00:00
|
|
|
/* Call after initialization */
|
2014-12-17 23:13:53 +00:00
|
|
|
void PHY_SwChnlPhy8192D( IN struct adapter * pAdapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN u8 channel );
|
|
|
|
|
2014-12-17 23:13:53 +00:00
|
|
|
extern void ChkFwCmdIoDone( IN struct adapter *Adapter);
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2014-12-19 06:59:46 +00:00
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
|
|
|
/* BB/MAC/RF other monitor API */
|
|
|
|
/* */
|
2014-12-17 23:13:53 +00:00
|
|
|
void PHY_SetMonitorMode8192D(IN struct adapter *pAdapter,
|
2015-03-02 23:21:23 +00:00
|
|
|
IN bool bEnableMonitorMode );
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2015-03-02 23:21:23 +00:00
|
|
|
bool PHY_CheckIsLegalRfPath8192D(IN struct adapter *pAdapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN u32 eRFPath );
|
|
|
|
|
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
/* */
|
|
|
|
/* Modify the value of the hw register when beacon interval be changed. */
|
|
|
|
/* */
|
2014-12-19 06:59:46 +00:00
|
|
|
void
|
2014-12-17 23:13:53 +00:00
|
|
|
rtl8192d_PHY_SetBeaconHwReg( IN struct adapter * Adapter,
|
2014-12-11 21:15:04 +00:00
|
|
|
IN u16 BeaconInterval );
|
|
|
|
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
extern void
|
2014-12-11 21:15:04 +00:00
|
|
|
PHY_SwitchEphyParameter(
|
2014-12-17 23:13:53 +00:00
|
|
|
IN struct adapter * Adapter
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
extern void
|
2014-12-11 21:15:04 +00:00
|
|
|
PHY_EnableHostClkReq(
|
2014-12-17 23:13:53 +00:00
|
|
|
IN struct adapter * Adapter
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2015-03-02 23:21:23 +00:00
|
|
|
bool
|
2014-12-11 21:15:04 +00:00
|
|
|
SetAntennaConfig92C(
|
2014-12-17 23:13:53 +00:00
|
|
|
IN struct adapter *Adapter,
|
2014-12-19 06:59:46 +00:00
|
|
|
IN u8 DefaultAnt
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2014-12-11 21:15:04 +00:00
|
|
|
PHY_UpdateBBRFConfiguration8192D(
|
2014-12-17 23:13:53 +00:00
|
|
|
IN struct adapter *Adapter,
|
2015-03-02 23:21:23 +00:00
|
|
|
IN bool bisBandSwitch
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void PHY_ReadMacPhyMode92D(
|
2014-12-17 23:13:53 +00:00
|
|
|
IN struct adapter *Adapter,
|
2015-03-02 23:21:23 +00:00
|
|
|
IN bool AutoloadFail
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void PHY_ConfigMacPhyMode92D(
|
2014-12-17 23:13:53 +00:00
|
|
|
IN struct adapter *Adapter
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void PHY_ConfigMacPhyModeInfo92D(
|
2014-12-17 23:13:53 +00:00
|
|
|
IN struct adapter *Adapter
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void PHY_ConfigMacCoexist_RFPage92D(
|
2014-12-17 23:13:53 +00:00
|
|
|
IN struct adapter *Adapter
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2014-12-11 21:15:04 +00:00
|
|
|
rtl8192d_PHY_InitRxSetting(
|
2014-12-17 23:13:53 +00:00
|
|
|
IN struct adapter *Adapter
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2015-03-02 23:21:23 +00:00
|
|
|
rtl8192d_PHY_SetRFPathSwitch(IN struct adapter *pAdapter, IN bool bMain);
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2014-12-11 21:15:04 +00:00
|
|
|
HalChangeCCKStatus8192D(
|
2014-12-17 23:13:53 +00:00
|
|
|
IN struct adapter *Adapter,
|
2015-03-02 23:21:23 +00:00
|
|
|
IN bool bCCKDisable
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2014-12-17 23:13:53 +00:00
|
|
|
PHY_InitPABias92D(IN struct adapter *Adapter);
|
2014-12-11 21:15:04 +00:00
|
|
|
|
|
|
|
/*--------------------------Exported Function prototype---------------------*/
|
|
|
|
|
|
|
|
#define PHY_SetBBReg1Byte(Adapter, RegAddr, BitMask, Data) rtl8192d_PHY_SetBBReg1Byte((Adapter), (RegAddr), (BitMask), (Data))
|
|
|
|
#define PHY_QueryBBReg(Adapter, RegAddr, BitMask) rtl8192d_PHY_QueryBBReg((Adapter), (RegAddr), (BitMask))
|
|
|
|
#define PHY_SetBBReg(Adapter, RegAddr, BitMask, Data) rtl8192d_PHY_SetBBReg((Adapter), (RegAddr), (BitMask), (Data))
|
|
|
|
#define PHY_QueryRFReg(Adapter, eRFPath, RegAddr, BitMask) rtl8192d_PHY_QueryRFReg((Adapter), (eRFPath), (RegAddr), (BitMask))
|
|
|
|
#define PHY_SetRFReg(Adapter, eRFPath, RegAddr, BitMask, Data) rtl8192d_PHY_SetRFReg((Adapter), (eRFPath), (RegAddr), (BitMask), (Data))
|
|
|
|
|
|
|
|
#define PHY_SetMacReg PHY_SetBBReg
|
|
|
|
#define PHY_QueryMacReg PHY_QueryBBReg
|
|
|
|
|
2015-03-16 14:43:53 +00:00
|
|
|
#endif /* __INC_HAL8192SPHYCFG_H */
|