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