1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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.
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
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 ******************************************************************************/
20 #ifndef __INC_HAL8723BPHYCFG_H__
21 #define __INC_HAL8723BPHYCFG_H__
23 /*--------------------------Define Parameters-------------------------------*/
25 #define MAX_STALL_TIME 50 //us
26 #define AntennaDiversityValue 0x80 //(Adapter->bSoftwareAntennaDiversity ? 0x00:0x80)
27 #define MAX_TXPWR_IDX_NMODE_92S 63
28 #define Reset_Cnt_Limit 3
31 #define MAX_AGGR_NUM 0x0B
33 #define MAX_AGGR_NUM 0x07
34 #endif // CONFIG_PCI_HCI
37 /*--------------------------Define Parameters End-------------------------------*/
40 /*------------------------------Define structure----------------------------*/
42 /*------------------------------Define structure End----------------------------*/
44 /*--------------------------Exported Function prototype---------------------*/
77 /* MAC/BB/RF HAL config */
78 int PHY_BBConfig8723B(PADAPTER Adapter );
80 int PHY_RFConfig8723B(PADAPTER Adapter );
82 s32 PHY_MACConfig8723B(PADAPTER padapter);
85 PHY_ConfigRFWithParaFile_8723B(
92 PHY_SetTxPowerIndex_8723B(
100 PHY_GetTxPowerIndex_8723B(
101 IN PADAPTER pAdapter,
104 IN CHANNEL_WIDTH BandWidth,
109 PHY_GetTxPowerLevel8723B(
115 PHY_SetTxPowerLevel8723B(
123 IN CHANNEL_WIDTH Bandwidth, // 20M or 40M
124 IN unsigned char Offset // Upper, Lower, or Don't care
128 PHY_SwChnl8723B( // Call after initialization
134 PHY_SetSwChnlBWMode8723B(
137 IN CHANNEL_WIDTH Bandwidth,
142 VOID PHY_SetRFPathSwitch_8723B(
143 IN PADAPTER pAdapter,
146 /*--------------------------Exported Function prototype End---------------------*/