508cd31277d30a606de4fb1a46512865130d3827
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723bs / hal / OUTSRC / phydm_DynamicTxPower.h
1 /******************************************************************************\r
2  *\r
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.\r
4  *                                        \r
5  * This program is free software; you can redistribute it and/or modify it\r
6  * under the terms of version 2 of the GNU General Public License as\r
7  * published by the Free Software Foundation.\r
8  *\r
9  * This program is distributed in the hope that it will be useful, but WITHOUT\r
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\r
12  * more details.\r
13  *\r
14  * You should have received a copy of the GNU General Public License along with\r
15  * this program; if not, write to the Free Software Foundation, Inc.,\r
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA\r
17  *\r
18  *\r
19  ******************************************************************************/\r
20  \r
21 #ifndef __PHYDMDYNAMICTXPOWER_H__\r
22 #define    __PHYDMDYNAMICTXPOWER_H__\r
23 \r
24 #define DYNAMIC_TXPWR_VERSION   "1.0"\r
25 \r
26 #define         TX_POWER_NEAR_FIELD_THRESH_LVL2 74\r
27 #define         TX_POWER_NEAR_FIELD_THRESH_LVL1 67\r
28 #define         TX_POWER_NEAR_FIELD_THRESH_AP           0x3F\r
29 #define         TX_POWER_NEAR_FIELD_THRESH_8812 60\r
30 \r
31 #define         TxHighPwrLevel_Normal           0       \r
32 #define         TxHighPwrLevel_Level1           1\r
33 #define         TxHighPwrLevel_Level2           2\r
34 #define         TxHighPwrLevel_BT1                      3\r
35 #define         TxHighPwrLevel_BT2                      4\r
36 #define         TxHighPwrLevel_15                       5\r
37 #define         TxHighPwrLevel_35                       6\r
38 #define         TxHighPwrLevel_50                       7\r
39 #define         TxHighPwrLevel_70                       8\r
40 #define         TxHighPwrLevel_100                      9\r
41 \r
42 VOID 
43 odm_DynamicTxPowerInit(
44         IN              PVOID                                   pDM_VOID\r
45         );
46
47 VOID
48 odm_DynamicTxPowerRestorePowerIndex(
49         IN              PVOID                                   pDM_VOID\r
50         );
51
52 VOID 
53 odm_DynamicTxPowerNIC(
54         IN              PVOID                                   pDM_VOID\r
55         );
56
57 #if(DM_ODM_SUPPORT_TYPE & (ODM_WIN|ODM_CE))
58 VOID
59 odm_DynamicTxPowerSavePowerIndex(
60         IN              PVOID                                   pDM_VOID\r
61         );
62
63 VOID
64 odm_DynamicTxPowerWritePowerIndex(
65         IN              PVOID                                   pDM_VOID, \r
66         IN      u1Byte          Value);
67
68 VOID 
69 odm_DynamicTxPower_92C(
70         IN              PVOID                                   pDM_VOID\r
71         );
72
73 VOID 
74 odm_DynamicTxPower_92D(
75         IN              PVOID                                   pDM_VOID\r
76         );
77 #endif
78 \r
79 VOID 
80 odm_DynamicTxPower(
81         IN              PVOID                                   pDM_VOID\r
82         );
83
84 VOID 
85 odm_DynamicTxPowerAP(
86         IN              PVOID                                   pDM_VOID\r
87         );\r
88 \r
89 #endif\r