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_HAL8812PHYCFG_H__
21 #define __INC_HAL8812PHYCFG_H__
24 /*--------------------------Define Parameters-------------------------------*/
26 #define MAX_STALL_TIME 50 /* us */
27 #define AntennaDiversityValue 0x80 /* (Adapter->bSoftwareAntennaDiversity ? 0x00 : 0x80) */
28 #define MAX_TXPWR_IDX_NMODE_92S 63
29 #define Reset_Cnt_Limit 3
33 #define MAX_AGGR_NUM 0x0B
35 #define MAX_AGGR_NUM 0x07
36 #endif /* CONFIG_PCI_HCI */
39 /*--------------------------Define Parameters-------------------------------*/
41 /*------------------------------Define structure----------------------------*/
46 /*------------------------------Define structure----------------------------*/
49 /*------------------------Export global variable----------------------------*/
50 /*------------------------Export global variable----------------------------*/
53 /*------------------------Export Marco Definition---------------------------*/
54 /*------------------------Export Marco Definition---------------------------*/
57 /*--------------------------Exported Function prototype---------------------*/
59 * BB and RF register read/write
61 u32 PHY_QueryBBReg8812(IN PADAPTER Adapter,
64 void PHY_SetBBReg8812(IN PADAPTER Adapter,
68 u32 PHY_QueryRFReg8812(IN PADAPTER Adapter,
72 void PHY_SetRFReg8812(IN PADAPTER Adapter,
79 * Initialization related function
81 * MAC/BB/RF HAL config */
82 int PHY_MACConfig8812(IN PADAPTER Adapter);
83 int PHY_BBConfig8812(IN PADAPTER Adapter);
84 void PHY_BB8812_Config_1T(IN PADAPTER Adapter);
85 int PHY_RFConfig8812(IN PADAPTER Adapter);
90 PHY_SwitchWirelessBand8812(
98 void PHY_GetTxPowerLevel8812(IN PADAPTER Adapter, OUT s32 *powerlevel);
99 void PHY_SetTxPowerLevel8812(IN PADAPTER Adapter, IN u8 Channel);
101 BOOLEAN PHY_UpdateTxPowerDbm8812(IN PADAPTER Adapter, IN int powerInDbm);
102 u8 PHY_GetTxPowerIndex_8812A(
103 IN PADAPTER pAdapter,
108 struct txpwr_idx_comp *tic
111 u32 phy_get_tx_bb_swing_8812a(
118 PHY_SetTxPowerIndex_8812A(
120 IN u4Byte PowerIndex,
126 * channel switch related funciton
129 PHY_SetSwChnlBWMode8812(
132 IN CHANNEL_WIDTH Bandwidth,
138 * BB/MAC/RF other monitor API
142 phy_set_rf_path_switch_8812a(
143 IN PADAPTER pAdapter,
147 /*--------------------------Exported Function prototype---------------------*/
148 #endif /* __INC_HAL8192CPHYCFG_H */