add rk3288 pinctrl dts code
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rtl8723bs / include / rtl8192c_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  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20 #ifndef __RTL8192C_DM_H__
21 #define __RTL8192C_DM_H__
22 //============================================================
23 // Description:
24 //
25 // This file is for 92CE/92CU dynamic mechanism only
26 //
27 //
28 //============================================================
29
30 //============================================================
31 // function prototype
32 //============================================================
33
34 typedef enum _BT_CurState{
35         BT_OFF          = 0,    
36         BT_ON           = 1,
37 } BT_CurState, *PBT_CurState;
38
39 typedef enum _BT_ServiceType{
40         BT_SCO          = 0,    
41         BT_A2DP         = 1,
42         BT_HID          = 2,
43         BT_HID_Idle     = 3,
44         BT_Scan         = 4,
45         BT_Idle         = 5,
46         BT_OtherAction  = 6,
47         BT_Busy                 = 7,
48         BT_OtherBusy            = 8,
49         BT_PAN                  = 9,
50 } BT_ServiceType, *PBT_ServiceType;
51
52 struct btcoexist_priv   {
53         u8                                      BT_Coexist;
54         u8                                      BT_Ant_Num;
55         u8                                      BT_CoexistType;
56         u8                                      BT_State;
57         u8                                      BT_CUR_State;           //0:on, 1:off
58         u8                                      BT_Ant_isolation;       //0:good, 1:bad
59         u8                                      BT_PapeCtrl;            //0:SW, 1:SW/HW dynamic
60         u8                                      BT_Service;
61         u8                                      BT_Ampdu;       // 0:Disable BT control A-MPDU, 1:Enable BT control A-MPDU.
62         u8                                      BT_RadioSharedType;
63         u32                                     Ratio_Tx;
64         u32                                     Ratio_PRI;
65         u8                                      BtRfRegOrigin1E;
66         u8                                      BtRfRegOrigin1F;
67         u8                                      BtRssiState;
68         u32                                     BtEdcaUL;
69         u32                                     BtEdcaDL;
70         u32                                     BT_EDCA[2];
71         u8                                      bCOBT;
72
73         u8                                      bInitSet;
74         u8                                      bBTBusyTraffic;
75         u8                                      bBTTrafficModeSet;
76         u8                                      bBTNonTrafficModeSet;
77         //BTTraffic                             BT21TrafficStatistics;
78         u32                                     CurrentState;
79         u32                                     PreviousState;
80         u8                                      BtPreRssiState;
81         u8                                      bFWCoexistAllOff;
82         u8                                      bSWCoexistAllOff;
83 };
84
85 //============================================================
86 // structure and define
87 //============================================================
88
89 //============================================================
90 // function prototype
91 //============================================================
92 #ifdef CONFIG_BT_COEXIST
93 void rtl8192c_set_dm_bt_coexist(_adapter *padapter, u8 bStart);
94 void rtl8192c_issue_delete_ba(_adapter *padapter, u8 dir);
95 #endif
96
97 void rtl8192c_init_dm_priv(IN PADAPTER Adapter);
98 void rtl8192c_deinit_dm_priv(IN PADAPTER Adapter);
99
100 void rtl8192c_InitHalDm(        IN      PADAPTER        Adapter);
101 void rtl8192c_HalDmWatchDog(IN PADAPTER Adapter);
102
103 #endif  //__HAL8190PCIDM_H__
104