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_HAL8814PHYCFG_H__
21 #define __INC_HAL8814PHYCFG_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----------------------------*/
48 /*------------------------------Define structure----------------------------*/
51 /*------------------------Export global variable----------------------------*/
52 /*------------------------Export global variable----------------------------*/
55 /*------------------------Export Marco Definition---------------------------*/
56 /*------------------------Export Marco Definition---------------------------*/
59 /*--------------------------Exported Function prototype---------------------*/
60 /* 1. BB register R/W API */
63 PHY_QueryBBReg8814A(IN PADAPTER Adapter,
69 PHY_SetBBReg8814A(IN PADAPTER Adapter,
76 PHY_QueryRFReg8814A(IN PADAPTER Adapter,
83 PHY_SetRFReg8814A(IN PADAPTER Adapter,
89 /* 1 3. Initial BB/RF config by reading MAC/BB/RF txt. */
91 phy_BB8814A_Config_ParaFile(
114 * BOOLEAN PHY_SetRFPowerState8814A(PADAPTER Adapter, rt_rf_power_state eRFPowerState); */
116 /* 1 5. Tx Power setting API */
119 PHY_GetTxPowerLevel8814(
121 OUT ps4Byte powerlevel
125 PHY_SetTxPowerLevel8814(
131 phy_get_tx_power_index_8814a(
135 IN CHANNEL_WIDTH BandWidth,
140 PHY_GetTxPowerIndex8814A(
146 struct txpwr_idx_comp *tic
150 PHY_SetTxPowerIndex_8814A(
159 PHY_UpdateTxPowerDbm8814A(
166 PHY_GetTxBBSwing_8814A(
174 /* 1 6. Channel setting API */
177 PHY_SwChnlTimerCallback8814A(
178 IN struct timer_list *p_timer
182 PHY_SwChnlWorkItemCallback8814A(
188 HAL_HandleSwChnl8814A(
189 IN PADAPTER pAdapter,
194 PHY_SwChnlSynchronously8814A(IN PADAPTER pAdapter,
198 PHY_SwChnlAndSetBWModeCallback8814A(IN PVOID pContext);
202 PHY_HandleSwChnlAndSetBW8814A(
204 IN BOOLEAN bSwitchChannel,
205 IN BOOLEAN bSetBandWidth,
207 IN CHANNEL_WIDTH ChnlWidth,
208 IN u8 ChnlOffsetOf40MHz,
209 IN u8 ChnlOffsetOf80MHz,
210 IN u8 CenterFrequencyIndex1
215 PHY_QueryRFPathSwitch_8814A(IN PADAPTER pAdapter);
221 RtCheckForHangWorkItemCallback8814A(
227 SetAntennaConfig8814A(
241 PHY_SwitchWirelessBand8814A(
252 PHY_SetSwChnlBWMode8814(
255 IN CHANNEL_WIDTH Bandwidth,
260 s32 PHY_MACConfig8814(PADAPTER Adapter);
261 int PHY_BBConfig8814(PADAPTER Adapter);
262 VOID PHY_Set_SecCCATH_by_RXANT_8814A(PADAPTER pAdapter, u4Byte ulAntennaRx);
266 /*--------------------------Exported Function prototype---------------------*/
268 /*--------------------------Exported Function prototype---------------------*/
269 #endif /* __INC_HAL8192CPHYCFG_H */