Linux-libre 4.10.7-gnu
[librecmc/linux-libre.git] / drivers / staging / rtl8188eu / include / rtl8188e_dm.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *
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.
8  *
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
12  * more details.
13  *
14  ******************************************************************************/
15 #ifndef __RTL8188E_DM_H__
16 #define __RTL8188E_DM_H__
17 enum{
18         UP_LINK,
19         DOWN_LINK,
20 };
21 /*  duplicate code,will move to ODM ######### */
22 #define IQK_MAC_REG_NUM         4
23 #define IQK_ADDA_REG_NUM                16
24 #define IQK_BB_REG_NUM                  9
25 #define HP_THERMAL_NUM          8
26 /*  duplicate code,will move to ODM ######### */
27 struct  dm_priv {
28         u8      DM_Type;
29         u8      DMFlag;
30         u8      InitDMFlag;
31         u32     InitODMFlag;
32
33         /*  Upper and Lower Signal threshold for Rate Adaptive*/
34         int     UndecoratedSmoothedPWDB;
35         int     UndecoratedSmoothedCCK;
36         int     EntryMinUndecoratedSmoothedPWDB;
37         int     EntryMaxUndecoratedSmoothedPWDB;
38         int     MinUndecoratedPWDBForDM;
39         int     LastMinUndecoratedPWDBForDM;
40
41         /* for High Power */
42         u8 bDynamicTxPowerEnable;
43         u8 LastDTPLvl;
44         u8 DynamicTxHighPowerLvl;/* Tx Power Control for Near/Far Range */
45         u8      PowerIndex_backup[6];
46 };
47
48 void rtl8188e_InitHalDm(struct adapter *adapt);
49
50 void AntDivCompare8188E(struct adapter *adapt, struct wlan_bssid_ex *dst,
51                         struct wlan_bssid_ex *src);
52
53 #endif