summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8723au/include/rtl8723a_bt_intf.h
blob: 4733559970e59aad93d930e8f683e38247b2acd5 (plain)
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
/******************************************************************************
 *
 * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
 * Copyright(c) 2014, Jes Sorensen <Jes.Sorensen@redhat.com>
 *
 * 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.
 *
 ******************************************************************************/
#ifndef __RTL8723A_BT_INTF_H__
#define __RTL8723A_BT_INTF_H__

#include <drv_types.h>

#ifdef CONFIG_8723AU_BT_COEXIST
enum rt_media_status;
bool rtl8723a_BT_using_antenna_1(struct rtw_adapter *padapter);
bool rtl8723a_BT_enabled(struct rtw_adapter *padapter);
bool rtl8723a_BT_coexist(struct rtw_adapter *padapter);
void rtl8723a_BT_do_coexist(struct rtw_adapter *padapter);
void rtl8723a_BT_wifiscan_notify(struct rtw_adapter *padapter, u8 scanType);
void rtl8723a_BT_mediastatus_notify(struct rtw_adapter *padapter,
				    enum rt_media_status mstatus);
void rtl8723a_BT_specialpacket_notify(struct rtw_adapter *padapter);
void rtl8723a_BT_lps_leave(struct rtw_adapter *padapter);
void rtl8723a_BT_disable_coexist(struct rtw_adapter *padapter);
bool rtl8723a_BT_disable_EDCA_turbo(struct rtw_adapter *padapter);
void rtl8723a_dual_antenna_detection(struct rtw_adapter *padapter);
void rtl8723a_BT_init_hwconfig(struct rtw_adapter *padapter);
void rtl8723a_BT_wifiassociate_notify(struct rtw_adapter *padapter, u8 action);
void rtl8723a_BT_init_hal_vars(struct rtw_adapter *padapter);
void rtl8723a_fw_c2h_BT_info(struct rtw_adapter *padapter, u8 *tmpBuf, u8 length);
#else
static inline bool rtl8723a_BT_using_antenna_1(struct rtw_adapter *padapter)
{
	return false;
}
static inline bool rtl8723a_BT_enabled(struct rtw_adapter *padapter)
{
	return false;
}
static inline bool rtl8723a_BT_coexist(struct rtw_adapter *padapter)
{
	return false;
}
#define rtl8723a_BT_do_coexist(padapter)			do {} while(0)
#define rtl8723a_BT_wifiscan_notify(padapter, scanType)		do {} while(0)
#define rtl8723a_BT_mediastatus_notify(padapter, mstatus)	do {} while(0)
#define rtl8723a_BT_specialpacket_notify(padapter)		do {} while(0)
#define rtl8723a_BT_lps_leave(padapter)				do {} while(0)
#define rtl8723a_BT_disable_coexist(padapter)			do {} while(0)
static inline bool rtl8723a_BT_disable_EDCA_turbo(struct rtw_adapter *padapter)
{
	return false;
}
#define rtl8723a_dual_antenna_detection(padapter)		do {} while(0)
#define rtl8723a_BT_init_hwconfig(padapter)			do {} while(0)
#define rtl8723a_BT_wifiassociate_notify(padapter, action)	do {} while(0)
#define rtl8723a_BT_init_hal_vars(padapter)			do {} while(0)
#define rtl8723a_fw_c2h_BT_info(padapter, tmpBuf, length)	do {} while(0)
#endif

#endif