xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/hal_api_btc.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2019 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 #ifndef _HAL_API_BTC_H_
16 #define _HAL_API_BTC_H_
17 
18 #ifdef CONFIG_BTCOEX
19 enum rtw_hal_status
20 rtw_hal_btc_init(struct rtw_phl_com_t *phl_com,
21 			struct hal_info_t *hal_info);
22 
23 void rtw_hal_btc_deinit(struct rtw_phl_com_t *phl_com,
24 				struct hal_info_t *hal_info);
25 #else
26 #define rtw_hal_btc_init(_phl_com_, _hal_info_) RTW_HAL_STATUS_SUCCESS
27 #define rtw_hal_btc_deinit(_phl_com_, _hal_info_)
28 #endif
29 
30 void rtw_hal_btc_switch_band_ntfy(void *hinfo, enum phl_phy_idx phy_idx,
31 				  enum band_type band);
32 void rtw_hal_btc_radio_state_ntfy(void *hinfo, u8 rf_state);
33 
34 u32 rtw_hal_btc_process_c2h(void *hal, struct rtw_c2h_info *c2h);
35 void rtw_hal_btc_init_coex_cfg_ntfy(void *hinfo);
36 bool rtw_hal_btc_proc_cmd(struct hal_info_t *hal_info, struct rtw_proc_cmd *incmd,
37 						char *output, u32 out_len);
38 u32 rtw_hal_btc_req_bt_slot_t(void *hinfo);
39 
40 #endif /*_HAL_API_BTC_H_*/
41