1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /****************************************************************************** 3 * 4 * Copyright(c) 2016 - 2017 Realtek Corporation. 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 17 #if (BT_SUPPORT == 1 && COEX_SUPPORT == 1) 18 19 #if (RTL8822B_SUPPORT == 1) 20 21 /* ******************************************* 22 * The following is for 8822B 1ANT BT Co-exist definition 23 * ******************************************* */ 24 #define BT_8822B_1ANT_COEX_DBG 0 25 #define BT_AUTO_REPORT_ONLY_8822B_1ANT 1 26 27 #define BT_INFO_8822B_1ANT_B_FTP BIT(7) 28 #define BT_INFO_8822B_1ANT_B_A2DP BIT(6) 29 #define BT_INFO_8822B_1ANT_B_HID BIT(5) 30 #define BT_INFO_8822B_1ANT_B_SCO_BUSY BIT(4) 31 #define BT_INFO_8822B_1ANT_B_ACL_BUSY BIT(3) 32 #define BT_INFO_8822B_1ANT_B_INQ_PAGE BIT(2) 33 #define BT_INFO_8822B_1ANT_B_SCO_ESCO BIT(1) 34 #define BT_INFO_8822B_1ANT_B_CONNECTION BIT(0) 35 36 #define BT_INFO_8822B_1ANT_A2DP_BASIC_RATE(_BT_INFO_EXT_) \ 37 (((_BT_INFO_EXT_&BIT(0))) ? true : false) 38 39 #define BTC_RSSI_COEX_THRESH_TOL_8822B_1ANT 2 40 41 #define BT_8822B_1ANT_WIFI_NOISY_THRESH 150 /* max: 255 */ 42 #define BT_8822B_1ANT_DEFAULT_ISOLATION 15 /* unit: dB */ 43 44 /* for Antenna detection */ 45 #define BT_8822B_1ANT_ANTDET_PSDTHRES_BACKGROUND 50 46 #define BT_8822B_1ANT_ANTDET_PSDTHRES_2ANT_BADISOLATION 70 47 #define BT_8822B_1ANT_ANTDET_PSDTHRES_2ANT_GOODISOLATION 55 48 #define BT_8822B_1ANT_ANTDET_PSDTHRES_1ANT 35 49 #define BT_8822B_1ANT_ANTDET_RETRY_INTERVAL 10 /* retry timer if ant det is fail, unit: second */ 50 #define BT_8822B_1ANT_ANTDET_ENABLE 0 51 #define BT_8822B_1ANT_ANTDET_COEXMECHANISMSWITCH_ENABLE 0 52 53 #define BT_8822B_1ANT_LTECOEX_INDIRECTREG_ACCESS_TIMEOUT 30000 54 55 56 57 enum bt_8822b_1ant_signal_state { 58 BT_8822B_1ANT_SIG_STA_SET_TO_LOW = 0x0, 59 BT_8822B_1ANT_SIG_STA_SET_BY_HW = 0x0, 60 BT_8822B_1ANT_SIG_STA_SET_TO_HIGH = 0x1, 61 BT_8822B_1ANT_SIG_STA_MAX 62 }; 63 64 enum bt_8822b_1ant_path_ctrl_owner { 65 BT_8822B_1ANT_PCO_BTSIDE = 0x0, 66 BT_8822B_1ANT_PCO_WLSIDE = 0x1, 67 BT_8822B_1ANT_PCO_MAX 68 }; 69 70 enum bt_8822b_1ant_gnt_ctrl_type { 71 BT_8822B_1ANT_GNT_CTRL_BY_PTA = 0x0, 72 BT_8822B_1ANT_GNT_CTRL_BY_SW = 0x1, 73 BT_8822B_1ANT_GNT_CTRL_MAX 74 }; 75 76 enum bt_8822b_1ant_gnt_ctrl_block { 77 BT_8822B_1ANT_GNT_BLOCK_RFC_BB = 0x0, 78 BT_8822B_1ANT_GNT_BLOCK_RFC = 0x1, 79 BT_8822B_1ANT_GNT_BLOCK_BB = 0x2, 80 BT_8822B_1ANT_GNT_BLOCK_MAX 81 }; 82 83 enum bt_8822b_1ant_lte_coex_table_type { 84 BT_8822B_1ANT_CTT_WL_VS_LTE = 0x0, 85 BT_8822B_1ANT_CTT_BT_VS_LTE = 0x1, 86 BT_8822B_1ANT_CTT_MAX 87 }; 88 89 enum bt_8822b_1ant_lte_break_table_type { 90 BT_8822B_1ANT_LBTT_WL_BREAK_LTE = 0x0, 91 BT_8822B_1ANT_LBTT_BT_BREAK_LTE = 0x1, 92 BT_8822B_1ANT_LBTT_LTE_BREAK_WL = 0x2, 93 BT_8822B_1ANT_LBTT_LTE_BREAK_BT = 0x3, 94 BT_8822B_1ANT_LBTT_MAX 95 }; 96 97 enum bt_info_src_8822b_1ant { 98 BT_INFO_SRC_8822B_1ANT_WIFI_FW = 0x0, 99 BT_INFO_SRC_8822B_1ANT_BT_RSP = 0x1, 100 BT_INFO_SRC_8822B_1ANT_BT_ACTIVE_SEND = 0x2, 101 BT_INFO_SRC_8822B_1ANT_MAX 102 }; 103 104 enum bt_8822b_1ant_bt_status { 105 BT_8822B_1ANT_BT_STATUS_NON_CONNECTED_IDLE = 0x0, 106 BT_8822B_1ANT_BT_STATUS_CONNECTED_IDLE = 0x1, 107 BT_8822B_1ANT_BT_STATUS_INQ_PAGE = 0x2, 108 BT_8822B_1ANT_BT_STATUS_ACL_BUSY = 0x3, 109 BT_8822B_1ANT_BT_STATUS_SCO_BUSY = 0x4, 110 BT_8822B_1ANT_BT_STATUS_ACL_SCO_BUSY = 0x5, 111 BT_8822B_1ANT_BT_STATUS_MAX 112 }; 113 114 enum bt_8822b_1ant_wifi_status { 115 BT_8822B_1ANT_WIFI_STATUS_NON_CONNECTED_IDLE = 0x0, 116 BT_8822B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCAN = 0x1, 117 BT_8822B_1ANT_WIFI_STATUS_CONNECTED_SCAN = 0x2, 118 BT_8822B_1ANT_WIFI_STATUS_CONNECTED_SPECIFIC_PKT = 0x3, 119 BT_8822B_1ANT_WIFI_STATUS_CONNECTED_IDLE = 0x4, 120 BT_8822B_1ANT_WIFI_STATUS_CONNECTED_BUSY = 0x5, 121 BT_8822B_1ANT_WIFI_STATUS_MAX 122 }; 123 124 enum bt_8822b_1ant_coex_algo { 125 BT_8822B_1ANT_COEX_ALGO_UNDEFINED = 0x0, 126 BT_8822B_1ANT_COEX_ALGO_SCO = 0x1, 127 BT_8822B_1ANT_COEX_ALGO_HID = 0x2, 128 BT_8822B_1ANT_COEX_ALGO_A2DP = 0x3, 129 BT_8822B_1ANT_COEX_ALGO_A2DP_PANHS = 0x4, 130 BT_8822B_1ANT_COEX_ALGO_PANEDR = 0x5, 131 BT_8822B_1ANT_COEX_ALGO_PANHS = 0x6, 132 BT_8822B_1ANT_COEX_ALGO_PANEDR_A2DP = 0x7, 133 BT_8822B_1ANT_COEX_ALGO_PANEDR_HID = 0x8, 134 BT_8822B_1ANT_COEX_ALGO_HID_A2DP_PANEDR = 0x9, 135 BT_8822B_1ANT_COEX_ALGO_HID_A2DP = 0xa, 136 BT_8822B_1ANT_COEX_ALGO_NOPROFILEBUSY = 0xb, 137 BT_8822B_1ANT_COEX_ALGO_A2DPSINK = 0xc, 138 BT_8822B_1ANT_COEX_ALGO_MAX 139 }; 140 141 enum bt_8822b_1ant_ext_ant_switch_type { 142 BT_8822B_1ANT_EXT_ANT_SWITCH_USE_SPDT = 0x0, 143 BT_8822B_1ANT_EXT_ANT_SWITCH_USE_SP3T = 0x1, 144 BT_8822B_1ANT_EXT_ANT_SWITCH_MAX 145 }; 146 147 enum bt_8822b_1ant_ext_ant_switch_ctrl_type { 148 BT_8822B_1ANT_EXT_ANT_SWITCH_CTRL_BY_BBSW = 0x0, 149 BT_8822B_1ANT_EXT_ANT_SWITCH_CTRL_BY_PTA = 0x1, 150 BT_8822B_1ANT_EXT_ANT_SWITCH_CTRL_BY_ANTDIV = 0x2, 151 BT_8822B_1ANT_EXT_ANT_SWITCH_CTRL_BY_MAC = 0x3, 152 BT_8822B_1ANT_EXT_ANT_SWITCH_CTRL_BY_BT = 0x4, 153 BT_8822B_1ANT_EXT_ANT_SWITCH_CTRL_MAX 154 }; 155 156 enum bt_8822b_1ant_ext_ant_switch_pos_type { 157 BT_8822B_1ANT_EXT_ANT_SWITCH_TO_BT = 0x0, 158 BT_8822B_1ANT_EXT_ANT_SWITCH_TO_WLG = 0x1, 159 BT_8822B_1ANT_EXT_ANT_SWITCH_TO_WLA = 0x2, 160 BT_8822B_1ANT_EXT_ANT_SWITCH_TO_NOCARE = 0x3, 161 BT_8822B_1ANT_EXT_ANT_SWITCH_TO_MAX 162 }; 163 164 enum bt_8822b_1ant_phase { 165 BT_8822B_1ANT_PHASE_COEX_INIT = 0x0, 166 BT_8822B_1ANT_PHASE_WLANONLY_INIT = 0x1, 167 BT_8822B_1ANT_PHASE_WLAN_OFF = 0x2, 168 BT_8822B_1ANT_PHASE_2G_RUNTIME = 0x3, 169 BT_8822B_1ANT_PHASE_5G_RUNTIME = 0x4, 170 BT_8822B_1ANT_PHASE_BTMPMODE = 0x5, 171 BT_8822B_1ANT_PHASE_COEX_POWERON = 0x6, 172 BT_8822B_1ANT_PHASE_2G_FREERUN_ANT_WL = 0x7, 173 BT_8822B_1ANT_PHASE_2G_FREERUN_ANT_BT = 0x8, 174 BT_8822B_1ANT_PHASE_MCC_DUALBAND_RUNTIME = 0x9, 175 BT_8822B_1ANT_PHASE_MAX 176 }; 177 178 /*ADD SCOREBOARD TO FIX BT LPS 32K ISSUE WHILE WL BUSY*/ 179 enum bt_8822b_1ant_Scoreboard { 180 BT_8822B_1ANT_SCOREBOARD_ACTIVE = BIT(0), 181 BT_8822B_1ANT_SCOREBOARD_ONOFF = BIT(1), 182 BT_8822B_1ANT_SCOREBOARD_SCAN = BIT(2), 183 BT_8822B_1ANT_SCOREBOARD_UNDERTEST = BIT(3), 184 BT_8822B_1ANT_SCOREBOARD_RXGAIN = BIT(4), 185 BT_8822B_1ANT_SCOREBOARD_WLBUSY = BIT(6) 186 }; 187 188 struct coex_dm_8822b_1ant { 189 /* hw setting */ 190 u32 pre_ant_pos_type; 191 u32 cur_ant_pos_type; 192 /* fw mechanism */ 193 boolean cur_ignore_wlan_act; 194 boolean pre_ignore_wlan_act; 195 u8 pre_ps_tdma; 196 u8 cur_ps_tdma; 197 u8 ps_tdma_para[5]; 198 u8 ps_tdma_du_adj_type; 199 boolean auto_tdma_adjust; 200 boolean pre_ps_tdma_on; 201 boolean cur_ps_tdma_on; 202 boolean pre_bt_auto_report; 203 boolean cur_bt_auto_report; 204 u8 pre_lps; 205 u8 cur_lps; 206 u8 pre_rpwm; 207 u8 cur_rpwm; 208 u8 pre_bt_dec_pwr_lvl; 209 u8 cur_bt_dec_pwr_lvl; 210 u8 pre_fw_dac_swing_lvl; 211 u8 cur_fw_dac_swing_lvl; 212 213 /* sw mechanism */ 214 boolean pre_low_penalty_ra; 215 boolean cur_low_penalty_ra; 216 u32 pre_val0x6c0; 217 u32 cur_val0x6c0; 218 u32 pre_val0x6c4; 219 u32 cur_val0x6c4; 220 u32 pre_val0x6c8; 221 u32 cur_val0x6c8; 222 u8 pre_val0x6cc; 223 u8 cur_val0x6cc; 224 boolean limited_dig; 225 226 u32 backup_arfr_cnt1; /* Auto Rate Fallback Retry cnt */ 227 u32 backup_arfr_cnt2; /* Auto Rate Fallback Retry cnt */ 228 u16 backup_retry_limit; 229 u8 backup_ampdu_max_time; 230 231 /* algorithm related */ 232 u8 pre_algorithm; 233 u8 cur_algorithm; 234 u8 bt_status; 235 u8 wifi_chnl_info[3]; 236 237 u32 pre_ra_mask; 238 u32 cur_ra_mask; 239 u8 pre_arfr_type; 240 u8 cur_arfr_type; 241 u8 pre_retry_limit_type; 242 u8 cur_retry_limit_type; 243 u8 pre_ampdu_time_type; 244 u8 cur_ampdu_time_type; 245 u32 arp_cnt; 246 247 u32 pre_ext_ant_switch_status; 248 u32 cur_ext_ant_switch_status; 249 250 u8 error_condition; 251 boolean pre_agc_table_en; 252 boolean cur_agc_table_en; 253 }; 254 255 struct coex_sta_8822b_1ant { 256 boolean bt_disabled; 257 boolean bt_link_exist; 258 boolean sco_exist; 259 boolean a2dp_exist; 260 boolean hid_exist; 261 boolean pan_exist; 262 u8 num_of_profile; 263 264 boolean under_lps; 265 boolean under_ips; 266 u32 specific_pkt_period_cnt; 267 u32 high_priority_tx; 268 u32 high_priority_rx; 269 u32 low_priority_tx; 270 u32 low_priority_rx; 271 boolean is_hiPri_rx_overhead; 272 s8 bt_rssi; 273 u8 pre_bt_rssi_state; 274 u8 pre_wifi_rssi_state[4]; 275 u8 bt_info_c2h[BT_INFO_SRC_8822B_1ANT_MAX][10]; 276 u32 bt_info_c2h_cnt[BT_INFO_SRC_8822B_1ANT_MAX]; 277 boolean bt_whck_test; 278 boolean c2h_bt_inquiry_page; 279 boolean c2h_bt_remote_name_req; 280 boolean c2h_bt_page; /* Add for win8.1 page out issue */ 281 boolean wifi_is_high_pri_task; /* Add for win8.1 page out issue */ 282 283 u8 bt_info_ext; 284 u8 bt_info_ext2; 285 u32 pop_event_cnt; 286 u8 scan_ap_num; 287 u8 bt_retry_cnt; 288 289 u32 crc_ok_cck; 290 u32 crc_ok_11g; 291 u32 crc_ok_11n; 292 u32 crc_ok_11n_vht; 293 294 u32 crc_err_cck; 295 u32 crc_err_11g; 296 u32 crc_err_11n; 297 u32 crc_err_11n_vht; 298 299 boolean cck_lock; 300 boolean cck_lock_ever; 301 boolean cck_lock_warn; 302 303 u8 coex_table_type; 304 305 boolean force_lps_ctrl; 306 307 boolean concurrent_rx_mode_on; 308 309 u16 score_board; 310 u8 isolation_btween_wb; /* 0~ 50 */ 311 312 u8 a2dp_bit_pool; 313 u8 cut_version; 314 boolean acl_busy; 315 boolean bt_create_connection; 316 317 u32 bt_coex_supported_feature; 318 u32 bt_coex_supported_version; 319 320 u8 bt_ble_scan_type; 321 u32 bt_ble_scan_para[3]; 322 323 boolean run_time_state; 324 boolean freeze_coexrun_by_btinfo; 325 326 boolean is_A2DP_3M; 327 boolean voice_over_HOGP; 328 u8 bt_info; 329 boolean is_autoslot; 330 u8 forbidden_slot; 331 u8 hid_busy_num; 332 u8 hid_pair_cnt; 333 334 u32 cnt_RemoteNameReq; 335 u32 cnt_setupLink; 336 u32 cnt_ReInit; 337 u32 cnt_IgnWlanAct; 338 u32 cnt_Page; 339 u32 cnt_RoleSwitch; 340 341 u16 bt_reg_vendor_ac; 342 u16 bt_reg_vendor_ae; 343 344 boolean is_setupLink; 345 u8 wl_noisy_level; 346 u32 gnt_error_cnt; 347 u8 bt_afh_map[10]; 348 u8 bt_relink_downcount; 349 boolean is_tdma_btautoslot; 350 boolean is_tdma_btautoslot_hang; 351 352 u8 switch_band_notify_to; 353 boolean is_rf_state_off; 354 355 boolean is_hid_low_pri_tx_overhead; 356 boolean is_bt_multi_link; 357 boolean is_bt_a2dp_sink; 358 359 boolean is_set_ps_state_fail; 360 u8 cnt_set_ps_state_fail; 361 362 u8 wl_fw_dbg_info[10]; 363 u8 wl_rx_rate; 364 u8 wl_rts_rx_rate; 365 u8 wl_center_channel; 366 367 u16 score_board_WB; 368 }; 369 370 struct rfe_type_8822b_1ant { 371 372 u8 rfe_module_type; 373 boolean ext_ant_switch_exist; 374 u8 ext_ant_switch_type; 375 /* iF 0: ANTSW(rfe_sel9)=0, ANTSWB(rfe_sel8)=1 => Ant to BT/5G */ 376 u8 ext_ant_switch_ctrl_polarity; 377 }; 378 379 380 #define BT_8822B_1ANT_ANTDET_PSD_POINTS 256 /* MAX:1024 */ 381 #define BT_8822B_1ANT_ANTDET_PSD_AVGNUM 1 /* MAX:3 */ 382 #define BT_8822B_1ANT_ANTDET_BUF_LEN 16 383 384 struct psdscan_sta_8822b_1ant { 385 386 u32 ant_det_bt_le_channel; /* BT LE Channel ex:2412 */ 387 u32 ant_det_bt_tx_time; 388 u32 ant_det_pre_psdscan_peak_val; 389 boolean ant_det_is_ant_det_available; 390 u32 ant_det_psd_scan_peak_val; 391 boolean ant_det_is_btreply_available; 392 u32 ant_det_psd_scan_peak_freq; 393 394 u8 ant_det_result; 395 u8 ant_det_peak_val[BT_8822B_1ANT_ANTDET_BUF_LEN]; 396 u8 ant_det_peak_freq[BT_8822B_1ANT_ANTDET_BUF_LEN]; 397 u32 ant_det_try_count; 398 u32 ant_det_fail_count; 399 u32 ant_det_inteval_count; 400 u32 ant_det_thres_offset; 401 402 u32 real_cent_freq; 403 s32 real_offset; 404 u32 real_span; 405 406 u32 psd_band_width; /* unit: Hz */ 407 u32 psd_point; /* 128/256/512/1024 */ 408 u32 psd_report[1024]; /* unit:dB (20logx), 0~255 */ 409 u32 psd_report_max_hold[1024]; /* unit:dB (20logx), 0~255 */ 410 u32 psd_start_point; 411 u32 psd_stop_point; 412 u32 psd_max_value_point; 413 u32 psd_max_value; 414 u32 psd_start_base; 415 u32 psd_avg_num; /* 1/8/16/32 */ 416 u32 psd_gen_count; 417 boolean is_psd_running; 418 boolean is_psd_show_max_only; 419 boolean is_AntDet_running; 420 }; 421 422 /* ******************************************* 423 * The following is interface which will notify coex module. 424 * ******************************************* */ 425 void ex_halbtc8822b1ant_power_on_setting(IN struct btc_coexist *btcoexist); 426 void ex_halbtc8822b1ant_pre_load_firmware(IN struct btc_coexist *btcoexist); 427 void ex_halbtc8822b1ant_init_hw_config(IN struct btc_coexist *btcoexist, 428 IN boolean wifi_only); 429 void ex_halbtc8822b1ant_init_coex_dm(IN struct btc_coexist *btcoexist); 430 void ex_halbtc8822b1ant_ips_notify(IN struct btc_coexist *btcoexist, 431 IN u8 type); 432 void ex_halbtc8822b1ant_lps_notify(IN struct btc_coexist *btcoexist, 433 IN u8 type); 434 void ex_halbtc8822b1ant_scan_notify(IN struct btc_coexist *btcoexist, 435 IN u8 type); 436 void ex_halbtc8822b1ant_scan_notify_without_bt(IN struct btc_coexist *btcoexist, 437 IN u8 type); 438 void ex_halbtc8822b1ant_switchband_notify(IN struct btc_coexist *btcoexist, 439 IN u8 type); 440 void ex_halbtc8822b1ant_switchband_notify_without_bt(IN struct btc_coexist 441 *btcoexist, 442 IN u8 type); 443 void ex_halbtc8822b1ant_connect_notify(IN struct btc_coexist *btcoexist, 444 IN u8 type); 445 void ex_halbtc8822b1ant_media_status_notify(IN struct btc_coexist *btcoexist, 446 IN u8 type); 447 void ex_halbtc8822b1ant_specific_packet_notify(IN struct btc_coexist *btcoexist, 448 IN u8 type); 449 void ex_halbtc8822b1ant_bt_info_notify(IN struct btc_coexist *btcoexist, 450 IN u8 *tmp_buf, IN u8 length); 451 void ex_halbtc8822b1ant_wl_fwdbginfo_notify(IN struct btc_coexist *btcoexist, 452 IN u8 *tmp_buf, IN u8 length); 453 void ex_halbtc8822b1ant_rx_rate_change_notify(IN struct btc_coexist *btcoexist, 454 IN BOOLEAN is_data_frame, IN u8 btc_rate_id); 455 void ex_halbtc8822b1ant_rf_status_notify(IN struct btc_coexist *btcoexist, 456 IN u8 type); 457 void ex_halbtc8822b1ant_halt_notify(IN struct btc_coexist *btcoexist); 458 void ex_halbtc8822b1ant_pnp_notify(IN struct btc_coexist *btcoexist, 459 IN u8 pnp_state); 460 void ex_halbtc8822b1ant_ScoreBoardStatusNotify(IN struct btc_coexist *btcoexist, 461 IN u8 *tmp_buf, IN u8 length); 462 void ex_halbtc8822b1ant_coex_dm_reset(IN struct btc_coexist *btcoexist); 463 void ex_halbtc8822b1ant_periodical(IN struct btc_coexist *btcoexist); 464 void ex_halbtc8822b1ant_display_simple_coex_info(IN struct btc_coexist *btcoexist); 465 466 void ex_halbtc8822b1ant_display_coex_info(IN struct btc_coexist *btcoexist); 467 void ex_halbtc8822b1ant_antenna_detection(IN struct btc_coexist *btcoexist, 468 IN u32 cent_freq, IN u32 offset, IN u32 span, IN u32 seconds); 469 void ex_halbtc8822b1ant_antenna_isolation(IN struct btc_coexist *btcoexist, 470 IN u32 cent_freq, IN u32 offset, IN u32 span, IN u32 seconds); 471 472 void ex_halbtc8822b1ant_psd_scan(IN struct btc_coexist *btcoexist, 473 IN u32 cent_freq, IN u32 offset, IN u32 span, IN u32 seconds); 474 void ex_halbtc8822b1ant_display_ant_detection(IN struct btc_coexist *btcoexist); 475 476 void ex_halbtc8822b1ant_dbg_control(IN struct btc_coexist *btcoexist, 477 IN u8 op_code, IN u8 op_len, IN u8 *pdata); 478 479 #else 480 #define ex_halbtc8822b1ant_power_on_setting(btcoexist) 481 #define ex_halbtc8822b1ant_pre_load_firmware(btcoexist) 482 #define ex_halbtc8822b1ant_init_hw_config(btcoexist, wifi_only) 483 #define ex_halbtc8822b1ant_init_coex_dm(btcoexist) 484 #define ex_halbtc8822b1ant_ips_notify(btcoexist, type) 485 #define ex_halbtc8822b1ant_lps_notify(btcoexist, type) 486 #define ex_halbtc8822b1ant_scan_notify(btcoexist, type) 487 #define ex_halbtc8822b1ant_scan_notify_without_bt(btcoexist, type) 488 #define ex_halbtc8822b1ant_switchband_notify(btcoexist, type) 489 #define ex_halbtc8822b1ant_switchband_notify_without_bt(btcoexist, type) 490 #define ex_halbtc8822b1ant_connect_notify(btcoexist, type) 491 #define ex_halbtc8822b1ant_media_status_notify(btcoexist, type) 492 #define ex_halbtc8822b1ant_specific_packet_notify(btcoexist, type) 493 #define ex_halbtc8822b1ant_bt_info_notify(btcoexist, tmp_buf, length) 494 #define ex_halbtc8822b1ant_wl_fwdbginfo_notify(btcoexist, tmp_buf, length) 495 #define ex_halbtc8822b1ant_rx_rate_change_notify(btcoexist, is_data_frame, btc_rate_id) 496 #define ex_halbtc8822b1ant_rf_status_notify(btcoexist, type) 497 #define ex_halbtc8822b1ant_halt_notify(btcoexist) 498 #define ex_halbtc8822b1ant_pnp_notify(btcoexist, pnp_state) 499 #define ex_halbtc8822b1ant_ScoreBoardStatusNotify(btcoexist, tmp_buf, length) 500 #define ex_halbtc8822b1ant_coex_dm_reset(btcoexist) 501 #define ex_halbtc8822b1ant_periodical(btcoexist) 502 #define ex_halbtc8822b1ant_display_coex_info(btcoexist) 503 #define ex_halbtc8822b1ant_antenna_detection(btcoexist, cent_freq, offset, span, seconds) 504 #define ex_halbtc8822b1ant_antenna_isolation(btcoexist, cent_freq, offset, span, seconds) 505 #define ex_halbtc8822b1ant_psd_scan(btcoexist, cent_freq, offset, span, seconds) 506 #define ex_halbtc8822b1ant_display_ant_detection(btcoexist) 507 #define ex_halbtc8822b1ant_dbg_control(btcoexist, op_code, op_len, pdata) 508 #endif 509 #else 510 511 void ex_halbtc8822b1ant_init_hw_config_without_bt(IN struct btc_coexist 512 *btcoexist); 513 void ex_halbtc8822b1ant_switch_band_without_bt(IN struct btc_coexist *btcoexist, 514 IN boolean wifi_only_5g); 515 516 517 #endif 518