1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2009-2010 Realtek Corporation.*/ 3 4 #ifndef __RTL_BTC_H__ 5 #define __RTL_BTC_H__ 6 7 #include "halbt_precomp.h" 8 9 void rtl_btc_init_variables(struct rtl_priv *rtlpriv); 10 void rtl_btc_init_variables_wifi_only(struct rtl_priv *rtlpriv); 11 void rtl_btc_deinit_variables(struct rtl_priv *rtlpriv); 12 void rtl_btc_init_hal_vars(struct rtl_priv *rtlpriv); 13 void rtl_btc_power_on_setting(struct rtl_priv *rtlpriv); 14 void rtl_btc_init_hw_config(struct rtl_priv *rtlpriv); 15 void rtl_btc_init_hw_config_wifi_only(struct rtl_priv *rtlpriv); 16 void rtl_btc_ips_notify(struct rtl_priv *rtlpriv, u8 type); 17 void rtl_btc_lps_notify(struct rtl_priv *rtlpriv, u8 type); 18 void rtl_btc_scan_notify(struct rtl_priv *rtlpriv, u8 scantype); 19 void rtl_btc_scan_notify_wifi_only(struct rtl_priv *rtlpriv, u8 scantype); 20 void rtl_btc_connect_notify(struct rtl_priv *rtlpriv, u8 action); 21 void rtl_btc_mediastatus_notify(struct rtl_priv *rtlpriv, 22 enum rt_media_status mstatus); 23 void rtl_btc_periodical(struct rtl_priv *rtlpriv); 24 void rtl_btc_halt_notify(struct rtl_priv *rtlpriv); 25 void rtl_btc_btinfo_notify(struct rtl_priv *rtlpriv, u8 *tmpbuf, u8 length); 26 void rtl_btc_btmpinfo_notify(struct rtl_priv *rtlpriv, u8 *tmp_buf, u8 length); 27 bool rtl_btc_is_limited_dig(struct rtl_priv *rtlpriv); 28 bool rtl_btc_is_disable_edca_turbo(struct rtl_priv *rtlpriv); 29 bool rtl_btc_is_bt_disabled(struct rtl_priv *rtlpriv); 30 void rtl_btc_special_packet_notify(struct rtl_priv *rtlpriv, u8 pkt_type); 31 void rtl_btc_switch_band_notify(struct rtl_priv *rtlpriv, u8 band_type, 32 bool scanning); 33 void rtl_btc_switch_band_notify_wifionly(struct rtl_priv *rtlpriv, u8 band_type, 34 bool scanning); 35 void rtl_btc_display_bt_coex_info(struct rtl_priv *rtlpriv, struct seq_file *m); 36 void rtl_btc_record_pwr_mode(struct rtl_priv *rtlpriv, u8 *buf, u8 len); 37 u8 rtl_btc_get_lps_val(struct rtl_priv *rtlpriv); 38 u8 rtl_btc_get_rpwm_val(struct rtl_priv *rtlpriv); 39 bool rtl_btc_is_bt_ctrl_lps(struct rtl_priv *rtlpriv); 40 bool rtl_btc_is_bt_lps_on(struct rtl_priv *rtlpriv); 41 void rtl_btc_get_ampdu_cfg(struct rtl_priv *rtlpriv, u8 *reject_agg, 42 u8 *ctrl_agg_size, u8 *agg_size); 43 44 struct rtl_btc_ops *rtl_btc_get_ops_pointer(void); 45 46 u8 rtl_get_hwpg_bt_exist(struct rtl_priv *rtlpriv); 47 u8 rtl_get_hwpg_bt_type(struct rtl_priv *rtlpriv); 48 u8 rtl_get_hwpg_ant_num(struct rtl_priv *rtlpriv); 49 u8 rtl_get_hwpg_single_ant_path(struct rtl_priv *rtlpriv); 50 u8 rtl_get_hwpg_package_type(struct rtl_priv *rtlpriv); 51 52 enum rt_media_status mgnt_link_status_query(struct ieee80211_hw *hw); 53 54 #endif 55