add rk3288 pinctrl dts code
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rtl8188eu / include / hal_btcoex.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2013 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 __HAL_BTCOEX_H__
21 #define __HAL_BTCOEX_H__
22
23 #include <drv_types.h>
24
25 // Some variables can't get from outsrc BT-Coex,
26 // so we need to save here
27 typedef struct _BT_COEXIST
28 {
29         u8 bBtExist;
30         u8 btTotalAntNum;
31         u8 btChipType;
32         u8 bInitlized;
33 } BT_COEXIST, *PBT_COEXIST;
34
35 void DBG_BT_INFO(u8 *dbgmsg);
36
37 void hal_btcoex_SetBTCoexist(PADAPTER padapter, u8 bBtExist);
38 u8 hal_btcoex_IsBtExist(PADAPTER padapter);
39 u8 hal_btcoex_IsBtDisabled(PADAPTER);
40 void hal_btcoex_SetChipType(PADAPTER padapter, u8 chipType);
41 u8 hal_btcoex_GetChipType(PADAPTER padapter);
42 void hal_btcoex_SetPgAntNum(PADAPTER padapter, u8 antNum, BOOLEAN antInverse);
43 u8 hal_btcoex_GetPgAntNum(PADAPTER padapter);
44
45 u8 hal_btcoex_Initialize(PADAPTER padapter);
46 void hal_btcoex_InitHwConfig(PADAPTER padapter);
47
48 void hal_btcoex_IpsNotify(PADAPTER padapter, u8 type);
49 void hal_btcoex_LpsNotify(PADAPTER padapter, u8 type);
50 void hal_btcoex_ScanNotify(PADAPTER padapter, u8 type);
51 void hal_btcoex_ConnectNotify(PADAPTER padapter, u8 action);
52 void hal_btcoex_MediaStatusNotify(PADAPTER padapter, u8 mediaStatus);
53 void hal_btcoex_SpecialPacketNotify(PADAPTER padapter, u8 pktType);
54 void hal_btcoex_IQKNotify(PADAPTER padapter, u8 state);
55 void hal_btcoex_BtInfoNotify(PADAPTER padapter, u8 length, u8 *tmpBuf);
56 void hal_btcoex_SuspendNotify(PADAPTER padapter, u8 state);
57 void hal_btcoex_HaltNotify(PADAPTER padapter);
58 void hal_btcoex_SwitchGntBt(PADAPTER padapter);
59
60 void hal_btcoex_Hanlder(PADAPTER padapter);
61
62 s32 hal_btcoex_IsBTCoexCtrlAMPDUSize(PADAPTER padapter);
63 u32 hal_btcoex_GetAMPDUSize(PADAPTER padapter);
64 void hal_btcoex_SetManualControl(PADAPTER padapter, u8 bmanual);
65 u8 hal_btcoex_1Ant(PADAPTER padapter);
66 u8 hal_btcoex_IsBtControlLps(PADAPTER);
67 u8 hal_btcoex_IsLpsOn(PADAPTER);
68 u8 hal_btcoex_RpwmVal(PADAPTER);
69 u8 hal_btcoex_LpsVal(PADAPTER);
70 u32 hal_btcoex_GetRaMask(PADAPTER);
71 void hal_btcoex_RecordPwrMode(PADAPTER padapter, u8 *pCmdBuf, u8 cmdLen);
72 void hal_btcoex_DisplayBtCoexInfo(PADAPTER, u8 *pbuf, u32 bufsize);
73 void hal_btcoex_SetDBG(PADAPTER, u32 *pDbgModule);
74 u32 hal_btcoex_GetDBG(PADAPTER, u8 *pStrBuf, u32 bufSize);
75 u8 hal_btcoex_IncreaseScanDeviceNum(PADAPTER);
76 u8 hal_btcoex_IsBtLinkExist(PADAPTER);
77
78 #endif // !__HAL_BTCOEX_H__
79