1 /******************************************************************************
3 * Copyright(c) 2013 Realtek Corporation. All rights reserved.
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.
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
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
19 ******************************************************************************/
20 #ifndef __RTW_BTCOEX_H__
21 #define __RTW_BTCOEX_H__
23 #include <drv_types.h>
26 #define PACKET_NORMAL 0
29 #define PACKET_EAPOL 3
31 void rtw_btcoex_Initialize(PADAPTER);
32 void rtw_btcoex_HAL_Initialize(PADAPTER padapter);
33 void rtw_btcoex_IpsNotify(PADAPTER, u8 type);
34 void rtw_btcoex_LpsNotify(PADAPTER, u8 type);
35 void rtw_btcoex_ScanNotify(PADAPTER, u8 type);
36 void rtw_btcoex_ConnectNotify(PADAPTER, u8 action);
37 void rtw_btcoex_MediaStatusNotify(PADAPTER, u8 mediaStatus);
38 void rtw_btcoex_SpecialPacketNotify(PADAPTER, u8 pktType);
39 void rtw_btcoex_IQKNotify(PADAPTER padapter, u8 state);
40 void rtw_btcoex_BtInfoNotify(PADAPTER, u8 length, u8 *tmpBuf);
41 void rtw_btcoex_SuspendNotify(PADAPTER, u8 state);
42 void rtw_btcoex_HaltNotify(PADAPTER);
43 void rtw_btcoex_SwitchGntBt(PADAPTER);
44 void rtw_btcoex_Switch(PADAPTER, u8 enable);
45 u8 rtw_btcoex_IsBtDisabled(PADAPTER);
46 void rtw_btcoex_Handler(PADAPTER);
47 s32 rtw_btcoex_IsBTCoexCtrlAMPDUSize(PADAPTER);
48 u32 rtw_btcoex_GetAMPDUSize(PADAPTER);
49 void rtw_btcoex_SetManualControl(PADAPTER, u8 bmanual);
50 u8 rtw_btcoex_1Ant(PADAPTER);
51 u8 rtw_btcoex_IsBtControlLps(PADAPTER);
52 u8 rtw_btcoex_IsLpsOn(PADAPTER);
53 u8 rtw_btcoex_RpwmVal(PADAPTER);
54 u8 rtw_btcoex_LpsVal(PADAPTER);
55 void rtw_btcoex_SetBTCoexist(PADAPTER, u8 bBtExist);
56 void rtw_btcoex_SetChipType(PADAPTER, u8 chipType);
57 void rtw_btcoex_SetPGAntNum(PADAPTER, u8 antNum, u8 antInverse);
58 u8 rtw_btcoex_GetPGAntNum(PADAPTER);
59 u32 rtw_btcoex_GetRaMask(PADAPTER);
60 void rtw_btcoex_RecordPwrMode(PADAPTER, u8 *pCmdBuf, u8 cmdLen);
61 void rtw_btcoex_DisplayBtCoexInfo(PADAPTER, u8 *pbuf, u32 bufsize);
62 void rtw_btcoex_SetDBG(PADAPTER, u32 *pDbgModule);
63 u32 rtw_btcoex_GetDBG(PADAPTER, u8 *pStrBuf, u32 bufSize);
64 u8 rtw_btcoex_IncreaseScanDeviceNum(PADAPTER);
65 u8 rtw_btcoex_IsBtLinkExist(PADAPTER);
67 // ==================================================
68 // Below Functions are called by BT-Coex
69 // ==================================================
70 void rtw_btcoex_RejectApAggregatedPacket(PADAPTER, u8 enable);
71 void rtw_btcoex_LPS_Enter(PADAPTER);
72 void rtw_btcoex_LPS_Leave(PADAPTER);
74 #endif // __RTW_BTCOEX_H__