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 ******************************************************************************/
15 #ifndef __INC_HAL8723BPHYCFG_H__
16 #define __INC_HAL8723BPHYCFG_H__
18 /*--------------------------Define Parameters-------------------------------*/
20 #define MAX_STALL_TIME 50 /* us */
21 #define AntennaDiversityValue 0x80 /* Adapter->bSoftwareAntennaDiversity ? 0x00:0x80) */
22 #define MAX_TXPWR_IDX_NMODE_92S 63
23 #define Reset_Cnt_Limit 3
25 #define MAX_AGGR_NUM 0x07
28 /*--------------------------Define Parameters End-------------------------------*/
31 /*------------------------------Define structure----------------------------*/
33 /*------------------------------Define structure End----------------------------*/
35 /*--------------------------Exported Function prototype---------------------*/
38 struct adapter *Adapter,
45 struct adapter *Adapter,
53 struct adapter * Adapter,
61 struct adapter * Adapter,
68 /* MAC/BB/RF HAL config */
69 int PHY_BBConfig8723B(struct adapter *Adapter );
71 int PHY_RFConfig8723B(struct adapter *Adapter );
73 s32 PHY_MACConfig8723B(struct adapter *padapter);
76 PHY_SetTxPowerIndex_8723B(
77 struct adapter * Adapter,
84 PHY_GetTxPowerIndex_8723B(
85 struct adapter * padapter,
88 enum CHANNEL_WIDTH BandWidth,
93 PHY_GetTxPowerLevel8723B(
94 struct adapter * Adapter,
99 PHY_SetTxPowerLevel8723B(
100 struct adapter * Adapter,
106 struct adapter * Adapter,
107 enum CHANNEL_WIDTH Bandwidth, /* 20M or 40M */
108 unsigned char Offset /* Upper, Lower, or Don't care */
112 PHY_SwChnl8723B(/* Call after initialization */
113 struct adapter *Adapter,
118 PHY_SetSwChnlBWMode8723B(
119 struct adapter * Adapter,
121 enum CHANNEL_WIDTH Bandwidth,
126 /*--------------------------Exported Function prototype End---------------------*/