linux/drivers/net/wireless/realtek/rtlwifi/btcoexist/rtl_btc.h
<<
>>
Prefs
   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
   9void rtl_btc_init_variables(struct rtl_priv *rtlpriv);
  10void rtl_btc_init_variables_wifi_only(struct rtl_priv *rtlpriv);
  11void rtl_btc_deinit_variables(struct rtl_priv *rtlpriv);
  12void rtl_btc_init_hal_vars(struct rtl_priv *rtlpriv);
  13void rtl_btc_power_on_setting(struct rtl_priv *rtlpriv);
  14void rtl_btc_init_hw_config(struct rtl_priv *rtlpriv);
  15void rtl_btc_init_hw_config_wifi_only(struct rtl_priv *rtlpriv);
  16void rtl_btc_ips_notify(struct rtl_priv *rtlpriv, u8 type);
  17void rtl_btc_lps_notify(struct rtl_priv *rtlpriv, u8 type);
  18void rtl_btc_scan_notify(struct rtl_priv *rtlpriv, u8 scantype);
  19void rtl_btc_scan_notify_wifi_only(struct rtl_priv *rtlpriv, u8 scantype);
  20void rtl_btc_connect_notify(struct rtl_priv *rtlpriv, u8 action);
  21void rtl_btc_mediastatus_notify(struct rtl_priv *rtlpriv,
  22                                enum rt_media_status mstatus);
  23void rtl_btc_periodical(struct rtl_priv *rtlpriv);
  24void rtl_btc_halt_notify(struct rtl_priv *rtlpriv);
  25void rtl_btc_btinfo_notify(struct rtl_priv *rtlpriv, u8 *tmpbuf, u8 length);
  26void rtl_btc_btmpinfo_notify(struct rtl_priv *rtlpriv, u8 *tmp_buf, u8 length);
  27bool rtl_btc_is_limited_dig(struct rtl_priv *rtlpriv);
  28bool rtl_btc_is_disable_edca_turbo(struct rtl_priv *rtlpriv);
  29bool rtl_btc_is_bt_disabled(struct rtl_priv *rtlpriv);
  30void rtl_btc_special_packet_notify(struct rtl_priv *rtlpriv, u8 pkt_type);
  31void rtl_btc_switch_band_notify(struct rtl_priv *rtlpriv, u8 band_type,
  32                                bool scanning);
  33void rtl_btc_switch_band_notify_wifionly(struct rtl_priv *rtlpriv, u8 band_type,
  34                                         bool scanning);
  35void rtl_btc_display_bt_coex_info(struct rtl_priv *rtlpriv, struct seq_file *m);
  36void rtl_btc_record_pwr_mode(struct rtl_priv *rtlpriv, u8 *buf, u8 len);
  37u8   rtl_btc_get_lps_val(struct rtl_priv *rtlpriv);
  38u8   rtl_btc_get_rpwm_val(struct rtl_priv *rtlpriv);
  39bool rtl_btc_is_bt_ctrl_lps(struct rtl_priv *rtlpriv);
  40bool rtl_btc_is_bt_lps_on(struct rtl_priv *rtlpriv);
  41void rtl_btc_get_ampdu_cfg(struct rtl_priv *rtlpriv, u8 *reject_agg,
  42                           u8 *ctrl_agg_size, u8 *agg_size);
  43
  44struct rtl_btc_ops *rtl_btc_get_ops_pointer(void);
  45
  46u8 rtl_get_hwpg_bt_exist(struct rtl_priv *rtlpriv);
  47u8 rtl_get_hwpg_bt_type(struct rtl_priv *rtlpriv);
  48u8 rtl_get_hwpg_ant_num(struct rtl_priv *rtlpriv);
  49u8 rtl_get_hwpg_single_ant_path(struct rtl_priv *rtlpriv);
  50u8 rtl_get_hwpg_package_type(struct rtl_priv *rtlpriv);
  51
  52enum rt_media_status mgnt_link_status_query(struct ieee80211_hw *hw);
  53
  54#endif
  55