2 /******************************************************************************
\r
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
\r
6 * This program is free software; you can redistribute it and/or modify it
\r
7 * under the terms of version 2 of the GNU General Public License as
\r
8 * published by the Free Software Foundation.
\r
10 * This program is distributed in the hope that it will be useful, but WITHOUT
\r
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
15 * You should have received a copy of the GNU General Public License along with
\r
16 * this program; if not, write to the Free Software Foundation, Inc.,
\r
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
\r
20 ******************************************************************************/
\r
22 #ifndef __PHYDMADAPTIVITY_H__
\r
23 #define __PHYDMADAPTIVITY_H__
\r
25 #define ADAPTIVITY_VERSION "8.5.1"
\r
27 #if (DM_ODM_SUPPORT_TYPE & (ODM_WIN))
\r
28 typedef enum _tag_PhyDM_REGULATION_Type {
\r
31 REGULATION_ETSI = 2,
\r
34 MAX_REGULATION_NUM = 4
\r
35 } PhyDM_REGULATION_TYPE;
\r
39 typedef enum tag_PhyDM_TRx_MUX_Type
\r
42 PhyDM_STANDBY_MODE = 1,
\r
45 }PhyDM_Trx_MUX_Type;
\r
47 typedef enum tag_PhyDM_MACEDCCA_Type
\r
49 PhyDM_IGNORE_EDCCA = 0,
\r
50 PhyDM_DONT_IGNORE_EDCCA = 1
\r
51 }PhyDM_MACEDCCA_Type;
\r
53 typedef struct _ADAPTIVITY_STATISTICS {
\r
54 s1Byte TH_L2H_ini_mode2;
\r
55 s1Byte TH_EDCCA_HL_diff_mode2;
\r
56 s1Byte TH_EDCCA_HL_diff_backup;
\r
64 BOOLEAN DynamicLinkAdaptivity;
\r
66 } ADAPTIVITY_STATISTICS, *PADAPTIVITY_STATISTICS;
\r
69 Phydm_CheckAdaptivity(
\r
74 Phydm_CheckEnvironment(
\r
79 Phydm_NHMCounterStatisticsInit(
\r
84 Phydm_NHMCounterStatistics(
\r
89 Phydm_NHMCounterStatisticsReset(
\r
94 Phydm_GetNHMCounterStatistics(
\r
99 Phydm_MACEDCCAState(
\r
101 IN PhyDM_MACEDCCA_Type State
\r
105 Phydm_SetEDCCAThreshold(
\r
114 IN PhyDM_Trx_MUX_Type txMode,
\r
115 IN PhyDM_Trx_MUX_Type rxMode
\r
124 Phydm_SearchPwdBLowerBound(
\r
129 Phydm_AdaptivityInit(
\r
139 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
\r
141 Phydm_DisableEDCCA(
\r
146 Phydm_DynamicEDCCA(
\r
151 Phydm_AdaptivityBSOD(
\r