blob: 4733559970e59aad93d930e8f683e38247b2acd5 [file] [log] [blame]
Jes Sorensen3a159d92014-05-25 22:43:23 +02001/******************************************************************************
2 *
3 * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
4 * Copyright(c) 2014, Jes Sorensen <Jes.Sorensen@redhat.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 ******************************************************************************/
16#ifndef __RTL8723A_BT_INTF_H__
17#define __RTL8723A_BT_INTF_H__
18
19#include <drv_types.h>
20
21#ifdef CONFIG_8723AU_BT_COEXIST
Jes Sorensen43de0302014-05-25 22:43:29 +020022enum rt_media_status;
Jes Sorensen3a159d92014-05-25 22:43:23 +020023bool rtl8723a_BT_using_antenna_1(struct rtw_adapter *padapter);
Jes Sorensenbf2a7b92014-05-25 22:43:24 +020024bool rtl8723a_BT_enabled(struct rtw_adapter *padapter);
Jes Sorensen1af40722014-05-25 22:43:25 +020025bool rtl8723a_BT_coexist(struct rtw_adapter *padapter);
Jes Sorensenfebf3082014-05-25 22:43:27 +020026void rtl8723a_BT_do_coexist(struct rtw_adapter *padapter);
Jes Sorensend952e4c2014-05-25 22:43:28 +020027void rtl8723a_BT_wifiscan_notify(struct rtw_adapter *padapter, u8 scanType);
Jes Sorensen43de0302014-05-25 22:43:29 +020028void rtl8723a_BT_mediastatus_notify(struct rtw_adapter *padapter,
29 enum rt_media_status mstatus);
Jes Sorensenf83e9e2a2014-05-25 22:43:30 +020030void rtl8723a_BT_specialpacket_notify(struct rtw_adapter *padapter);
Jes Sorensena862d5d2014-05-25 22:43:31 +020031void rtl8723a_BT_lps_leave(struct rtw_adapter *padapter);
Jes Sorensen280e7a02014-05-25 22:43:34 +020032void rtl8723a_BT_disable_coexist(struct rtw_adapter *padapter);
Jes Sorensendddeff32014-05-25 22:43:37 +020033bool rtl8723a_BT_disable_EDCA_turbo(struct rtw_adapter *padapter);
Jes Sorensendadc54b2014-05-25 22:43:38 +020034void rtl8723a_dual_antenna_detection(struct rtw_adapter *padapter);
Jes Sorensen00e8b242014-05-25 22:43:39 +020035void rtl8723a_BT_init_hwconfig(struct rtw_adapter *padapter);
Jes Sorensenc814d4d2014-05-25 22:43:42 +020036void rtl8723a_BT_wifiassociate_notify(struct rtw_adapter *padapter, u8 action);
Jes Sorensen9b2d4ae2014-05-25 22:43:44 +020037void rtl8723a_BT_init_hal_vars(struct rtw_adapter *padapter);
Jes Sorensen1d599de2014-05-25 22:43:46 +020038void rtl8723a_fw_c2h_BT_info(struct rtw_adapter *padapter, u8 *tmpBuf, u8 length);
Jes Sorensen3a159d92014-05-25 22:43:23 +020039#else
40static inline bool rtl8723a_BT_using_antenna_1(struct rtw_adapter *padapter)
41{
42 return false;
43}
Jes Sorensenbf2a7b92014-05-25 22:43:24 +020044static inline bool rtl8723a_BT_enabled(struct rtw_adapter *padapter)
45{
46 return false;
47}
Jes Sorensen1af40722014-05-25 22:43:25 +020048static inline bool rtl8723a_BT_coexist(struct rtw_adapter *padapter)
49{
50 return false;
51}
Jes Sorensenf83e9e2a2014-05-25 22:43:30 +020052#define rtl8723a_BT_do_coexist(padapter) do {} while(0)
Jes Sorensend952e4c2014-05-25 22:43:28 +020053#define rtl8723a_BT_wifiscan_notify(padapter, scanType) do {} while(0)
Jes Sorensen43de0302014-05-25 22:43:29 +020054#define rtl8723a_BT_mediastatus_notify(padapter, mstatus) do {} while(0)
Jes Sorensenf83e9e2a2014-05-25 22:43:30 +020055#define rtl8723a_BT_specialpacket_notify(padapter) do {} while(0)
Jes Sorensena862d5d2014-05-25 22:43:31 +020056#define rtl8723a_BT_lps_leave(padapter) do {} while(0)
Jes Sorensen280e7a02014-05-25 22:43:34 +020057#define rtl8723a_BT_disable_coexist(padapter) do {} while(0)
Jes Sorensendddeff32014-05-25 22:43:37 +020058static inline bool rtl8723a_BT_disable_EDCA_turbo(struct rtw_adapter *padapter)
59{
60 return false;
61}
Jes Sorensendadc54b2014-05-25 22:43:38 +020062#define rtl8723a_dual_antenna_detection(padapter) do {} while(0)
Jes Sorensen00e8b242014-05-25 22:43:39 +020063#define rtl8723a_BT_init_hwconfig(padapter) do {} while(0)
Jes Sorensenc814d4d2014-05-25 22:43:42 +020064#define rtl8723a_BT_wifiassociate_notify(padapter, action) do {} while(0)
Jes Sorensen9b2d4ae2014-05-25 22:43:44 +020065#define rtl8723a_BT_init_hal_vars(padapter) do {} while(0)
Jes Sorensen1d599de2014-05-25 22:43:46 +020066#define rtl8723a_fw_c2h_BT_info(padapter, tmpBuf, length) do {} while(0)
Jes Sorensen3a159d92014-05-25 22:43:23 +020067#endif
68
69#endif