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_HAL8703BPHYCFG_H__
21 #define __INC_HAL8703BPHYCFG_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_BBConfig8703B(PADAPTER Adapter);
80 int PHY_RFConfig8703B(PADAPTER Adapter);
82 s32 PHY_MACConfig8703B(PADAPTER padapter);
85 PHY_ConfigRFWithParaFile_8703B(
92 PHY_SetTxPowerIndex_8703B(
100 PHY_GetTxPowerIndex_8703B(
101 IN PADAPTER pAdapter,
106 struct txpwr_idx_comp *tic
110 PHY_GetTxPowerLevel8703B(
116 PHY_SetTxPowerLevel8703B(
122 PHY_SetSwChnlBWMode8703B(
125 IN CHANNEL_WIDTH Bandwidth,
130 VOID phy_set_rf_path_switch_8703b(
131 IN PADAPTER pAdapter,
135 /*--------------------------Exported Function prototype End---------------------*/