1 /****************************************************************************** 2 * 3 * Copyright(c) 2016 - 2017 Realtek Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 *****************************************************************************/ 15 16 #if (BT_SUPPORT == 1 && COEX_SUPPORT == 1) 17 18 /* ******************************************* 19 * The following is interface which will notify coex module. 20 * ********************************************/ 21 void rtw_btc_ex_power_on_setting(struct btc_coexist *btc); 22 void rtw_btc_ex_pre_load_firmware(struct btc_coexist *btc); 23 void rtw_btc_ex_init_hw_config(struct btc_coexist *btc, boolean wifi_only); 24 void rtw_btc_ex_init_coex_dm(struct btc_coexist *btc); 25 void rtw_btc_ex_ips_notify(struct btc_coexist *btc, u8 type); 26 void rtw_btc_ex_lps_notify(struct btc_coexist *btc, u8 type); 27 void rtw_btc_ex_scan_notify(struct btc_coexist *btc, u8 type); 28 void rtw_btc_ex_scan_notify_without_bt(struct btc_coexist *btc, u8 type); 29 void rtw_btc_ex_switchband_notify(struct btc_coexist *btc, u8 type); 30 void rtw_btc_ex_switchband_notify_without_bt(struct btc_coexist *btc, u8 type); 31 void rtw_btc_ex_connect_notify(struct btc_coexist *btc, u8 type); 32 void rtw_btc_ex_media_status_notify(struct btc_coexist *btc, u8 type); 33 void rtw_btc_ex_specific_packet_notify(struct btc_coexist *btc, u8 type); 34 void rtw_btc_ex_bt_info_notify(struct btc_coexist *btc, u8 *tmp_buf, u8 length); 35 void rtw_btc_ex_wl_fwdbginfo_notify(struct btc_coexist *btc, u8 *tmp_buf, 36 u8 length); 37 void rtw_btc_ex_rx_rate_change_notify(struct btc_coexist *btc, 38 BOOLEAN is_data_frame, 39 u8 btc_rate_id); 40 void rtw_btc_ex_tx_rate_change_notify(struct btc_coexist *btc, u8 tx_rate, 41 u8 tx_retry_ratio, u8 macid); 42 void rtw_btc_ex_rf_status_notify(struct btc_coexist *btc, u8 type); 43 void rtw_btc_ex_halt_notify(struct btc_coexist *btc); 44 void rtw_btc_ex_pnp_notify(struct btc_coexist *btc, u8 pnp_state); 45 void rtw_btc_ex_coex_dm_reset(struct btc_coexist *btc); 46 void rtw_btc_ex_periodical(struct btc_coexist *btc); 47 void rtw_btc_ex_timerup_notify(struct btc_coexist *btc, u32 type); 48 void rtw_btc_ex_wl_status_change_notify(struct btc_coexist *btc, u32 type); 49 void rtw_btc_ex_display_simple_coex_info(struct btc_coexist *btc); 50 void rtw_btc_ex_display_coex_info(struct btc_coexist *btc); 51 void rtw_btc_ex_dbg_control(struct btc_coexist *btc, u8 op_code, u8 op_len, 52 u8 *pdata); 53 void rtw_btc_ex_wl_rfk_notify(struct btc_coexist *btc, u8 path, 54 u8 type, u8 state); 55 56 #else 57 #define rtw_btc_ex_power_on_setting(btc) 58 #define rtw_btc_ex_pre_load_firmware(btc) 59 #define rtw_btc_ex_init_hw_config(btc, wifi_only) 60 #define rtw_btc_ex_init_coex_dm(btc) 61 #define rtw_btc_ex_ips_notify(btc, type) 62 #define rtw_btc_ex_lps_notify(btc, type) 63 #define rtw_btc_ex_scan_notify(btc, type) 64 #define rtw_btc_ex_scan_notify_without_bt(btc, type) 65 #define rtw_btc_ex_switchband_notify(btc, type) 66 #define rtw_btc_ex_switchband_notify_without_bt(btc, type) 67 #define rtw_btc_ex_connect_notify(btc, type) 68 #define rtw_btc_ex_media_status_notify(btc, type) 69 #define rtw_btc_ex_specific_packet_notify(btc, type) 70 #define rtw_btc_ex_bt_info_notify(btc, tmp_buf, length) 71 #define rtw_btc_ex_wl_fwdbginfo_notify(btc, tmp_buf, length) 72 #define rtw_btc_ex_rx_rate_change_notify(btc, is_data_frame, btc_rate_id) 73 #define rtw_btc_ex_tx_rate_change_notify(btcoexist, tx_rate, tx_retry_ratio, \ 74 macid) 75 #define rtw_btc_ex_rf_status_notify(btc, type) 76 #define rtw_btc_ex_halt_notify(btc) 77 #define rtw_btc_ex_pnp_notify(btc, pnp_state) 78 #define rtw_btc_ex_coex_dm_reset(btc) 79 #define rtw_btc_ex_periodical(btc) 80 #define rtw_btc_ex_timerup_notify(btc, type) 81 #define rtw_btc_ex_wl_status_change_notify(btc, type) 82 #define rtw_btc_ex_display_coex_info(btc) 83 #define rtw_btc_ex_dbg_control(btc, op_code, op_len, pdata) 84 #define rtw_btc_ex_wl_rfk_notify(btc, path, type, state) 85 #endif 86