SAMA5D4 Xplained Ultra Board BSP
guowenxue
2019-08-19 2e7235d10c6dbff81960282e1a1e2e798f9b8db8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/******************************************************************************
 *
 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
 *                                        
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
 *
 *
 ******************************************************************************/
#ifndef    __RTL8192C_DM_H__
#define __RTL8192C_DM_H__
//============================================================
// Description:
//
// This file is for 92CE/92CU dynamic mechanism only
//
//
//============================================================
 
//============================================================
// function prototype
//============================================================
 
typedef    enum _BT_CurState{
    BT_OFF        = 0,    
    BT_ON        = 1,
} BT_CurState, *PBT_CurState;
 
typedef    enum _BT_ServiceType{
    BT_SCO        = 0,    
    BT_A2DP        = 1,
    BT_HID        = 2,
    BT_HID_Idle    = 3,
    BT_Scan        = 4,
    BT_Idle        = 5,
    BT_OtherAction    = 6,
    BT_Busy            = 7,
    BT_OtherBusy        = 8,
    BT_PAN            = 9,
} BT_ServiceType, *PBT_ServiceType;
 
struct btcoexist_priv    {
    u8                    BT_Coexist;
    u8                    BT_Ant_Num;
    u8                    BT_CoexistType;
    u8                    BT_State;
    u8                    BT_CUR_State;        //0:on, 1:off
    u8                    BT_Ant_isolation;    //0:good, 1:bad
    u8                    BT_PapeCtrl;        //0:SW, 1:SW/HW dynamic
    u8                    BT_Service;
    u8                    BT_Ampdu;    // 0:Disable BT control A-MPDU, 1:Enable BT control A-MPDU.
    u8                    BT_RadioSharedType;
    u32                    Ratio_Tx;
    u32                    Ratio_PRI;
    u8                    BtRfRegOrigin1E;
    u8                    BtRfRegOrigin1F;
    u8                    BtRssiState;
    u32                    BtEdcaUL;
    u32                    BtEdcaDL;
    u32                    BT_EDCA[2];
    u8                    bCOBT;
 
    u8                    bInitSet;
    u8                    bBTBusyTraffic;
    u8                    bBTTrafficModeSet;
    u8                    bBTNonTrafficModeSet;
    //BTTraffic                BT21TrafficStatistics;
    u32                    CurrentState;
    u32                    PreviousState;
    u8                    BtPreRssiState;
    u8                    bFWCoexistAllOff;
    u8                    bSWCoexistAllOff;
};
 
//============================================================
// structure and define
//============================================================
 
//============================================================
// function prototype
//============================================================
#ifdef CONFIG_BT_COEXIST
void rtl8192c_set_dm_bt_coexist(_adapter *padapter, u8 bStart);
void rtl8192c_issue_delete_ba(_adapter *padapter, u8 dir);
#endif
 
void rtl8192c_init_dm_priv(IN PADAPTER Adapter);
void rtl8192c_deinit_dm_priv(IN PADAPTER Adapter);
 
void rtl8192c_InitHalDm(    IN    PADAPTER    Adapter);
void rtl8192c_HalDmWatchDog(IN PADAPTER Adapter);
 
#endif    //__HAL8190PCIDM_H__