Jes Sorensen | 3a159d9 | 2014-05-25 22:43:23 +0200 | [diff] [blame] | 1 | /****************************************************************************** |
| 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 Sorensen | 43de030 | 2014-05-25 22:43:29 +0200 | [diff] [blame] | 22 | enum rt_media_status; |
Jes Sorensen | 3a159d9 | 2014-05-25 22:43:23 +0200 | [diff] [blame] | 23 | bool rtl8723a_BT_using_antenna_1(struct rtw_adapter *padapter); |
Jes Sorensen | bf2a7b9 | 2014-05-25 22:43:24 +0200 | [diff] [blame] | 24 | bool rtl8723a_BT_enabled(struct rtw_adapter *padapter); |
Jes Sorensen | 1af4072 | 2014-05-25 22:43:25 +0200 | [diff] [blame] | 25 | bool rtl8723a_BT_coexist(struct rtw_adapter *padapter); |
Jes Sorensen | febf308 | 2014-05-25 22:43:27 +0200 | [diff] [blame] | 26 | void rtl8723a_BT_do_coexist(struct rtw_adapter *padapter); |
Jes Sorensen | d952e4c | 2014-05-25 22:43:28 +0200 | [diff] [blame] | 27 | void rtl8723a_BT_wifiscan_notify(struct rtw_adapter *padapter, u8 scanType); |
Jes Sorensen | 43de030 | 2014-05-25 22:43:29 +0200 | [diff] [blame] | 28 | void rtl8723a_BT_mediastatus_notify(struct rtw_adapter *padapter, |
| 29 | enum rt_media_status mstatus); |
Jes Sorensen | f83e9e2a | 2014-05-25 22:43:30 +0200 | [diff] [blame] | 30 | void rtl8723a_BT_specialpacket_notify(struct rtw_adapter *padapter); |
Jes Sorensen | a862d5d | 2014-05-25 22:43:31 +0200 | [diff] [blame] | 31 | void rtl8723a_BT_lps_leave(struct rtw_adapter *padapter); |
Jes Sorensen | 280e7a0 | 2014-05-25 22:43:34 +0200 | [diff] [blame] | 32 | void rtl8723a_BT_disable_coexist(struct rtw_adapter *padapter); |
Jes Sorensen | dddeff3 | 2014-05-25 22:43:37 +0200 | [diff] [blame] | 33 | bool rtl8723a_BT_disable_EDCA_turbo(struct rtw_adapter *padapter); |
Jes Sorensen | dadc54b | 2014-05-25 22:43:38 +0200 | [diff] [blame] | 34 | void rtl8723a_dual_antenna_detection(struct rtw_adapter *padapter); |
Jes Sorensen | 00e8b24 | 2014-05-25 22:43:39 +0200 | [diff] [blame] | 35 | void rtl8723a_BT_init_hwconfig(struct rtw_adapter *padapter); |
Jes Sorensen | c814d4d | 2014-05-25 22:43:42 +0200 | [diff] [blame] | 36 | void rtl8723a_BT_wifiassociate_notify(struct rtw_adapter *padapter, u8 action); |
Jes Sorensen | 9b2d4ae | 2014-05-25 22:43:44 +0200 | [diff] [blame] | 37 | void rtl8723a_BT_init_hal_vars(struct rtw_adapter *padapter); |
Jes Sorensen | 1d599de | 2014-05-25 22:43:46 +0200 | [diff] [blame] | 38 | void rtl8723a_fw_c2h_BT_info(struct rtw_adapter *padapter, u8 *tmpBuf, u8 length); |
Jes Sorensen | 3a159d9 | 2014-05-25 22:43:23 +0200 | [diff] [blame] | 39 | #else |
| 40 | static inline bool rtl8723a_BT_using_antenna_1(struct rtw_adapter *padapter) |
| 41 | { |
| 42 | return false; |
| 43 | } |
Jes Sorensen | bf2a7b9 | 2014-05-25 22:43:24 +0200 | [diff] [blame] | 44 | static inline bool rtl8723a_BT_enabled(struct rtw_adapter *padapter) |
| 45 | { |
| 46 | return false; |
| 47 | } |
Jes Sorensen | 1af4072 | 2014-05-25 22:43:25 +0200 | [diff] [blame] | 48 | static inline bool rtl8723a_BT_coexist(struct rtw_adapter *padapter) |
| 49 | { |
| 50 | return false; |
| 51 | } |
Jes Sorensen | f83e9e2a | 2014-05-25 22:43:30 +0200 | [diff] [blame] | 52 | #define rtl8723a_BT_do_coexist(padapter) do {} while(0) |
Jes Sorensen | d952e4c | 2014-05-25 22:43:28 +0200 | [diff] [blame] | 53 | #define rtl8723a_BT_wifiscan_notify(padapter, scanType) do {} while(0) |
Jes Sorensen | 43de030 | 2014-05-25 22:43:29 +0200 | [diff] [blame] | 54 | #define rtl8723a_BT_mediastatus_notify(padapter, mstatus) do {} while(0) |
Jes Sorensen | f83e9e2a | 2014-05-25 22:43:30 +0200 | [diff] [blame] | 55 | #define rtl8723a_BT_specialpacket_notify(padapter) do {} while(0) |
Jes Sorensen | a862d5d | 2014-05-25 22:43:31 +0200 | [diff] [blame] | 56 | #define rtl8723a_BT_lps_leave(padapter) do {} while(0) |
Jes Sorensen | 280e7a0 | 2014-05-25 22:43:34 +0200 | [diff] [blame] | 57 | #define rtl8723a_BT_disable_coexist(padapter) do {} while(0) |
Jes Sorensen | dddeff3 | 2014-05-25 22:43:37 +0200 | [diff] [blame] | 58 | static inline bool rtl8723a_BT_disable_EDCA_turbo(struct rtw_adapter *padapter) |
| 59 | { |
| 60 | return false; |
| 61 | } |
Jes Sorensen | dadc54b | 2014-05-25 22:43:38 +0200 | [diff] [blame] | 62 | #define rtl8723a_dual_antenna_detection(padapter) do {} while(0) |
Jes Sorensen | 00e8b24 | 2014-05-25 22:43:39 +0200 | [diff] [blame] | 63 | #define rtl8723a_BT_init_hwconfig(padapter) do {} while(0) |
Jes Sorensen | c814d4d | 2014-05-25 22:43:42 +0200 | [diff] [blame] | 64 | #define rtl8723a_BT_wifiassociate_notify(padapter, action) do {} while(0) |
Jes Sorensen | 9b2d4ae | 2014-05-25 22:43:44 +0200 | [diff] [blame] | 65 | #define rtl8723a_BT_init_hal_vars(padapter) do {} while(0) |
Jes Sorensen | 1d599de | 2014-05-25 22:43:46 +0200 | [diff] [blame] | 66 | #define rtl8723a_fw_c2h_BT_info(padapter, tmpBuf, length) do {} while(0) |
Jes Sorensen | 3a159d9 | 2014-05-25 22:43:23 +0200 | [diff] [blame] | 67 | #endif |
| 68 | |
| 69 | #endif |