#include "halbt_precomp.h"
static const char *const gl_btc_wifi_bw_string[] = …;
static const char *const gl_btc_wifi_freq_string[] = …;
static bool halbtc_is_bt_coexist_available(struct btc_coexist *btcoexist)
{ … }
static bool halbtc_is_wifi_busy(struct rtl_priv *rtlpriv)
{ … }
static void halbtc_dbg_init(void)
{ … }
static bool is_any_client_connect_to_ap(struct btc_coexist *btcoexist)
{ … }
static bool halbtc_legacy(struct rtl_priv *adapter)
{ … }
bool halbtc_is_wifi_uplink(struct rtl_priv *adapter)
{ … }
static u32 halbtc_get_wifi_bw(struct btc_coexist *btcoexist)
{ … }
static u8 halbtc_get_wifi_central_chnl(struct btc_coexist *btcoexist)
{ … }
static u8 rtl_get_hwpg_single_ant_path(struct rtl_priv *rtlpriv)
{ … }
static u8 rtl_get_hwpg_bt_type(struct rtl_priv *rtlpriv)
{ … }
static u8 rtl_get_hwpg_ant_num(struct rtl_priv *rtlpriv)
{ … }
static u8 rtl_get_hwpg_package_type(struct rtl_priv *rtlpriv)
{ … }
static
u8 rtl_get_hwpg_rfe_type(struct rtl_priv *rtlpriv)
{ … }
static
bool halbtc_is_hw_mailbox_exist(struct btc_coexist *btcoexist)
{ … }
static
bool halbtc_send_bt_mp_operation(struct btc_coexist *btcoexist, u8 op_code,
u8 *cmd, u32 len, unsigned long wait_ms)
{ … }
static void halbtc_leave_lps(struct btc_coexist *btcoexist)
{ … }
static void halbtc_enter_lps(struct btc_coexist *btcoexist)
{ … }
static void halbtc_normal_lps(struct btc_coexist *btcoexist)
{ … }
static void halbtc_pre_normal_lps(struct btc_coexist *btcoexist)
{ … }
static void halbtc_post_normal_lps(struct btc_coexist *btcoexist)
{ … }
static void halbtc_leave_low_power(struct btc_coexist *btcoexist)
{ … }
static void halbtc_normal_low_power(struct btc_coexist *btcoexist)
{ … }
static void halbtc_disable_low_power(struct btc_coexist *btcoexist,
bool low_pwr_disable)
{ … }
static void halbtc_aggregation_check(struct btc_coexist *btcoexist)
{ … }
static u32 halbtc_get_bt_patch_version(struct btc_coexist *btcoexist)
{ … }
static u32 halbtc_get_bt_coex_supported_feature(void *btc_context)
{ … }
static u32 halbtc_get_bt_coex_supported_version(void *btc_context)
{ … }
static u32 halbtc_get_bt_device_info(void *btc_context)
{ … }
static u32 halbtc_get_bt_forbidden_slot_val(void *btc_context)
{ … }
static u32 halbtc_get_wifi_link_status(struct btc_coexist *btcoexist)
{ … }
static s32 halbtc_get_wifi_rssi(struct rtl_priv *rtlpriv)
{ … }
static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf)
{ … }
static bool halbtc_set(void *void_btcoexist, u8 set_type, void *in_buf)
{ … }
static void halbtc_display_coex_statistics(struct btc_coexist *btcoexist,
struct seq_file *m)
{ … }
static void halbtc_display_bt_link_info(struct btc_coexist *btcoexist,
struct seq_file *m)
{ … }
static void halbtc_display_wifi_status(struct btc_coexist *btcoexist,
struct seq_file *m)
{ … }
static u8 halbtc_read_1byte(void *bt_context, u32 reg_addr)
{ … }
static u16 halbtc_read_2byte(void *bt_context, u32 reg_addr)
{ … }
static u32 halbtc_read_4byte(void *bt_context, u32 reg_addr)
{ … }
static void halbtc_write_1byte(void *bt_context, u32 reg_addr, u32 data)
{ … }
static void halbtc_bitmask_write_1byte(void *bt_context, u32 reg_addr,
u32 bit_mask, u8 data)
{ … }
static void halbtc_write_2byte(void *bt_context, u32 reg_addr, u16 data)
{ … }
static void halbtc_write_4byte(void *bt_context, u32 reg_addr, u32 data)
{ … }
static void halbtc_write_local_reg_1byte(void *btc_context, u32 reg_addr,
u8 data)
{ … }
static void halbtc_set_bbreg(void *bt_context, u32 reg_addr, u32 bit_mask,
u32 data)
{ … }
static u32 halbtc_get_bbreg(void *bt_context, u32 reg_addr, u32 bit_mask)
{ … }
static void halbtc_set_rfreg(void *bt_context, u8 rf_path, u32 reg_addr,
u32 bit_mask, u32 data)
{ … }
static u32 halbtc_get_rfreg(void *bt_context, u8 rf_path, u32 reg_addr,
u32 bit_mask)
{ … }
static void halbtc_fill_h2c_cmd(void *bt_context, u8 element_id,
u32 cmd_len, u8 *cmd_buf)
{ … }
void halbtc_send_wifi_port_id_cmd(void *bt_context)
{ … }
void halbtc_set_default_port_id_cmd(void *bt_context)
{ … }
static
void halbtc_set_bt_reg(void *btc_context, u8 reg_type, u32 offset, u32 set_val)
{ … }
static void halbtc_display_dbg_msg(void *bt_context, u8 disp_type,
struct seq_file *m)
{ … }
static u32 halbtc_get_bt_reg(void *btc_context, u8 reg_type, u32 offset)
{ … }
static bool halbtc_under_ips(struct btc_coexist *btcoexist)
{ … }
static
u32 halbtc_get_phydm_version(void *btc_context)
{ … }
static
void halbtc_phydm_modify_ra_pcr_threshold(void *btc_context,
u8 ra_offset_direction,
u8 ra_threshold_offset)
{ … }
static
u32 halbtc_phydm_query_phy_counter(void *btc_context, enum dm_info_query dm_id)
{ … }
static u8 halbtc_get_ant_det_val_from_bt(void *btc_context)
{ … }
static u8 halbtc_get_ble_scan_type_from_bt(void *btc_context)
{ … }
static u32 halbtc_get_ble_scan_para_from_bt(void *btc_context, u8 scan_type)
{ … }
static bool halbtc_get_bt_afh_map_from_bt(void *btc_context, u8 map_type,
u8 *afh_map)
{ … }
bool exhalbtc_initlize_variables(struct rtl_priv *rtlpriv)
{ … }
bool exhalbtc_initlize_variables_wifi_only(struct rtl_priv *rtlpriv)
{ … }
bool exhalbtc_bind_bt_coex_withadapter(void *adapter)
{ … }
void exhalbtc_power_on_setting(struct btc_coexist *btcoexist)
{ … }
void exhalbtc_pre_load_firmware(struct btc_coexist *btcoexist)
{ … }
void exhalbtc_init_hw_config(struct btc_coexist *btcoexist, bool wifi_only)
{ … }
void exhalbtc_init_hw_config_wifi_only(struct wifi_only_cfg *wifionly_cfg)
{ … }
void exhalbtc_init_coex_dm(struct btc_coexist *btcoexist)
{ … }
void exhalbtc_ips_notify(struct btc_coexist *btcoexist, u8 type)
{ … }
void exhalbtc_lps_notify(struct btc_coexist *btcoexist, u8 type)
{ … }
void exhalbtc_scan_notify(struct btc_coexist *btcoexist, u8 type)
{ … }
void exhalbtc_scan_notify_wifi_only(struct wifi_only_cfg *wifionly_cfg,
u8 is_5g)
{ … }
void exhalbtc_connect_notify(struct btc_coexist *btcoexist, u8 action)
{ … }
void exhalbtc_mediastatus_notify(struct btc_coexist *btcoexist,
enum rt_media_status media_status)
{ … }
void exhalbtc_special_packet_notify(struct btc_coexist *btcoexist, u8 pkt_type)
{ … }
void exhalbtc_bt_info_notify(struct btc_coexist *btcoexist,
u8 *tmp_buf, u8 length)
{ … }
void exhalbtc_rf_status_notify(struct btc_coexist *btcoexist, u8 type)
{ … }
void exhalbtc_halt_notify(struct btc_coexist *btcoexist)
{ … }
void exhalbtc_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state)
{ … }
void exhalbtc_coex_dm_switch(struct btc_coexist *btcoexist)
{ … }
void exhalbtc_periodical(struct btc_coexist *btcoexist)
{ … }
void exhalbtc_dbg_control(struct btc_coexist *btcoexist,
u8 code, u8 len, u8 *data)
{ … }
void exhalbtc_antenna_detection(struct btc_coexist *btcoexist, u32 cent_freq,
u32 offset, u32 span, u32 seconds)
{ … }
void exhalbtc_stack_update_profile_info(void)
{ … }
void exhalbtc_update_min_bt_rssi(struct btc_coexist *btcoexist, s8 bt_rssi)
{ … }
void exhalbtc_set_hci_version(struct btc_coexist *btcoexist, u16 hci_version)
{ … }
void exhalbtc_set_bt_patch_version(struct btc_coexist *btcoexist,
u16 bt_hci_version, u16 bt_patch_version)
{ … }
void exhalbtc_set_chip_type(struct btc_coexist *btcoexist, u8 chip_type)
{ … }
void exhalbtc_set_ant_num(struct rtl_priv *rtlpriv, u8 type, u8 ant_num)
{ … }
void exhalbtc_set_single_ant_path(struct btc_coexist *btcoexist,
u8 single_ant_path)
{ … }
void exhalbtc_display_bt_coex_info(struct btc_coexist *btcoexist,
struct seq_file *m)
{ … }
void exhalbtc_switch_band_notify(struct btc_coexist *btcoexist, u8 type)
{ … }
void exhalbtc_switch_band_notify_wifi_only(struct wifi_only_cfg *wifionly_cfg,
u8 is_5g)
{ … }