linux/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c

// SPDX-License-Identifier: GPL-2.0
/* Copyright(c) 2012  Realtek Corporation.*/

/**************************************************************
 *   include files
 **************************************************************/
#include "halbt_precomp.h"
/**************************************************************
 *   Global variables, these are static variables
 **************************************************************/
static struct coex_dm_8192e_2ant glcoex_dm_8192e_2ant;
static struct coex_dm_8192e_2ant *coex_dm =;
static struct coex_sta_8192e_2ant glcoex_sta_8192e_2ant;
static struct coex_sta_8192e_2ant *coex_sta =;

static const char *const glbt_info_src_8192e_2ant[] =;

static u32 glcoex_ver_date_8192e_2ant =;
static u32 glcoex_ver_8192e_2ant =;

/**************************************************************
 *   local function proto type if needed
 **************************************************************/
/**************************************************************
 *   local function start with btc8192e2ant_
 **************************************************************/
static u8 btc8192e2ant_bt_rssi_state(struct btc_coexist *btcoexist,
				     u8 level_num, u8 rssi_thresh,
				     u8 rssi_thresh1)
{}

static u8 btc8192e2ant_wifi_rssi_state(struct btc_coexist *btcoexist,
				       u8 index, u8 level_num, u8 rssi_thresh,
				       u8 rssi_thresh1)
{}

static void btc8192e2ant_monitor_bt_enable_disable(struct btc_coexist
						   *btcoexist)
{}

static u32 btc8192e2ant_decide_ra_mask(struct btc_coexist *btcoexist,
				       u8 ss_type, u32 ra_mask_type)
{}

static void btc8192e2ant_update_ra_mask(struct btc_coexist *btcoexist,
					bool force_exec, u32 dis_rate_mask)
{}

static void btc8192e2ant_auto_rate_fallback_retry(struct btc_coexist *btcoexist,
						  bool force_exec, u8 type)
{}

static void btc8192e2ant_retry_limit(struct btc_coexist *btcoexist,
				     bool force_exec, u8 type)
{}

static void btc8192e2ant_ampdu_maxtime(struct btc_coexist *btcoexist,
				       bool force_exec, u8 type)
{}

static void btc8192e2ant_limited_tx(struct btc_coexist *btcoexist,
				    bool force_exec, u8 ra_mask_type,
				    u8 arfr_type, u8 retry_limit_type,
				    u8 ampdu_time_type)
{}

static void btc8192e2ant_limited_rx(struct btc_coexist *btcoexist,
				    bool force_exec, bool rej_ap_agg_pkt,
				    bool bt_ctrl_agg_buf_size,
				    u8 agg_buf_size)
{}

static void btc8192e2ant_monitor_bt_ctr(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_query_bt_info(struct btc_coexist *btcoexist)
{}

static
bool btc8192e2ant_is_wifi_status_changed(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_update_bt_link_info(struct btc_coexist *btcoexist)
{}

static u8 btc8192e2ant_action_algorithm(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_set_fw_dac_swing_level(struct btc_coexist *btcoexist,
						u8 dac_swing_lvl)
{}

static void btc8192e2ant_set_fw_dec_bt_pwr(struct btc_coexist *btcoexist,
					   u8 dec_bt_pwr_lvl)
{}

static void btc8192e2ant_dec_bt_pwr(struct btc_coexist *btcoexist,
				    bool force_exec, u8 dec_bt_pwr_lvl)
{}

static void btc8192e2ant_set_bt_auto_report(struct btc_coexist *btcoexist,
					    bool enable_auto_report)
{}

static void btc8192e2ant_bt_auto_report(struct btc_coexist *btcoexist,
					bool force_exec,
					bool enable_auto_report)
{}

static void btc8192e2ant_fw_dac_swing_lvl(struct btc_coexist *btcoexist,
					  bool force_exec, u8 fw_dac_swing_lvl)
{}

static void btc8192e2ant_set_sw_rf_rx_lpf_corner(struct btc_coexist *btcoexist,
						 bool rx_rf_shrink_on)
{}

static void btc8192e2ant_rf_shrink(struct btc_coexist *btcoexist,
				   bool force_exec, bool rx_rf_shrink_on)
{}

static void btc8192e2ant_set_dac_swing_reg(struct btc_coexist *btcoexist,
					   u32 level)
{}

static void btc8192e2ant_set_sw_full_swing(struct btc_coexist *btcoexist,
					   bool sw_dac_swing_on,
					   u32 sw_dac_swing_lvl)
{}

static void btc8192e2ant_dac_swing(struct btc_coexist *btcoexist,
				   bool force_exec, bool dac_swing_on,
				   u32 dac_swing_lvl)
{}

static void btc8192e2ant_set_agc_table(struct btc_coexist *btcoexist,
				       bool agc_table_en)
{}

static void btc8192e2ant_agc_table(struct btc_coexist *btcoexist,
				   bool force_exec, bool agc_table_en)
{}

static void btc8192e2ant_set_coex_table(struct btc_coexist *btcoexist,
					u32 val0x6c0, u32 val0x6c4,
					u32 val0x6c8, u8 val0x6cc)
{}

static void btc8192e2ant_coex_table(struct btc_coexist *btcoexist,
				    bool force_exec, u32 val0x6c0, u32 val0x6c4,
				    u32 val0x6c8, u8 val0x6cc)
{}

static void btc8192e2ant_coex_table_with_type(struct btc_coexist *btcoexist,
					      bool force_exec, u8 type)
{}

static void btc8192e2ant_set_fw_ignore_wlan_act(struct btc_coexist *btcoexist,
						bool enable)
{}

static void btc8192e2ant_ignore_wlan_act(struct btc_coexist *btcoexist,
					 bool force_exec, bool enable)
{}

static void btc8192e2ant_set_fw_ps_tdma(struct btc_coexist *btcoexist, u8 byte1,
					u8 byte2, u8 byte3, u8 byte4, u8 byte5)
{}

static void btc8192e2ant_sw_mechanism1(struct btc_coexist *btcoexist,
				       bool shrink_rx_lpf, bool low_penalty_ra,
				       bool limited_dig, bool btlan_constrain)
{}

static void btc8192e2ant_sw_mechanism2(struct btc_coexist *btcoexist,
				       bool agc_table_shift, bool adc_backoff,
				       bool sw_dac_swing, u32 dac_swing_lvl)
{}

static void btc8192e2ant_ps_tdma(struct btc_coexist *btcoexist,
				 bool force_exec, bool turn_on, u8 type)
{}

static void btc8192e2ant_set_switch_ss_type(struct btc_coexist *btcoexist,
					    u8 ss_type)
{}

static void btc8192e2ant_switch_ss_type(struct btc_coexist *btcoexist,
					bool force_exec, u8 new_ss_type)
{}

static void btc8192e2ant_coex_all_off(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_init_coex_dm(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_action_bt_inquiry(struct btc_coexist *btcoexist)
{}

static bool btc8192e2ant_is_common_action(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_tdma_duration_adjust(struct btc_coexist *btcoexist,
					      bool sco_hid, bool tx_pause,
					      u8 max_interval)
{}

/* SCO only or SCO+PAN(HS) */
static void btc8192e2ant_action_sco(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_action_sco_pan(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_action_hid(struct btc_coexist *btcoexist)
{}

/* A2DP only / PAN(EDR) only/ A2DP+PAN(HS) */
static void btc8192e2ant_action_a2dp(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_action_pan_edr(struct btc_coexist *btcoexist)
{}

/* PAN(HS) only */
static void btc8192e2ant_action_pan_hs(struct btc_coexist *btcoexist)
{}

/* PAN(EDR)+A2DP */
static void btc8192e2ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_action_pan_edr_hid(struct btc_coexist *btcoexist)
{}

/* HID+A2DP+PAN(EDR) */
static void btc8192e2ant_action_hid_a2dp_pan_edr(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_action_hid_a2dp(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_run_coexist_mechanism(struct btc_coexist *btcoexist)
{}

static void btc8192e2ant_init_hwconfig(struct btc_coexist *btcoexist,
				       bool backup)
{}

/************************************************************
 *   extern function start with ex_btc8192e2ant_
 ************************************************************/

void ex_btc8192e2ant_init_hwconfig(struct btc_coexist *btcoexist)
{}

void ex_btc8192e2ant_init_coex_dm(struct btc_coexist *btcoexist)
{}

void ex_btc8192e2ant_display_coex_info(struct btc_coexist *btcoexist,
				       struct seq_file *m)
{}

void ex_btc8192e2ant_ips_notify(struct btc_coexist *btcoexist, u8 type)
{}

void ex_btc8192e2ant_lps_notify(struct btc_coexist *btcoexist, u8 type)
{}

void ex_btc8192e2ant_scan_notify(struct btc_coexist *btcoexist, u8 type)
{}

void ex_btc8192e2ant_connect_notify(struct btc_coexist *btcoexist, u8 type)
{}

void ex_btc8192e2ant_media_status_notify(struct btc_coexist *btcoexist,
					 u8 type)
{}

void ex_btc8192e2ant_special_packet_notify(struct btc_coexist *btcoexist,
					   u8 type)
{}

void ex_btc8192e2ant_bt_info_notify(struct btc_coexist *btcoexist,
				    u8 *tmp_buf, u8 length)
{}

void ex_btc8192e2ant_halt_notify(struct btc_coexist *btcoexist)
{}

void ex_btc8192e2ant_periodical(struct btc_coexist *btcoexist)
{}