1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
6 ******************************************************************************/
7 #ifndef __INC_HAL8723BPHYCFG_H__
8 #define __INC_HAL8723BPHYCFG_H__
10 /*--------------------------Define Parameters-------------------------------*/
12 #define MAX_STALL_TIME 50 /* us */
13 #define AntennaDiversityValue 0x80 /* Adapter->bSoftwareAntennaDiversity ? 0x00:0x80) */
14 #define MAX_TXPWR_IDX_NMODE_92S 63
15 #define Reset_Cnt_Limit 3
17 #define MAX_AGGR_NUM 0x07
20 /*--------------------------Define Parameters End-------------------------------*/
23 /*------------------------------Define structure----------------------------*/
25 /*------------------------------Define structure End----------------------------*/
27 /*--------------------------Exported Function prototype---------------------*/
30 struct adapter *Adapter,
37 struct adapter *Adapter,
45 struct adapter * Adapter,
53 struct adapter * Adapter,
60 /* MAC/BB/RF HAL config */
61 int PHY_BBConfig8723B(struct adapter *Adapter );
63 int PHY_RFConfig8723B(struct adapter *Adapter );
65 s32 PHY_MACConfig8723B(struct adapter *padapter);
68 PHY_SetTxPowerIndex_8723B(
69 struct adapter * Adapter,
76 PHY_GetTxPowerIndex_8723B(
77 struct adapter * padapter,
80 enum CHANNEL_WIDTH BandWidth,
85 PHY_GetTxPowerLevel8723B(
86 struct adapter * Adapter,
91 PHY_SetTxPowerLevel8723B(
92 struct adapter * Adapter,
98 struct adapter * Adapter,
99 enum CHANNEL_WIDTH Bandwidth, /* 20M or 40M */
100 unsigned char Offset /* Upper, Lower, or Don't care */
104 PHY_SwChnl8723B(/* Call after initialization */
105 struct adapter *Adapter,
110 PHY_SetSwChnlBWMode8723B(
111 struct adapter * Adapter,
113 enum CHANNEL_WIDTH Bandwidth,
118 /*--------------------------Exported Function prototype End---------------------*/