xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/phl_btc.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2019 - 2020 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 __PHL_BTC_H__
16 #define __PHL_BTC_H__
17 
18 /* For EXTERNAL application to notify btc (expose) */
19 /* @phl: refer to phl_infi_t
20  * @notify: notification event
21  * @ntfy: notify information (optional)
22  * return value:
23  * 	0: no wait
24  * 	1: have to wait call back info->ntfy_cb()
25  *	-1: Failure
26  */
27 int rtw_phl_btc_notify(void *phl, enum RTW_PHL_BTC_NOTIFY notify,
28 	struct rtw_phl_btc_ntfy *info);
29 void rtw_phl_btc_role_notify(void *phl, u8 role_id, enum role_state rstate);
30 void rtw_phl_btc_hub_msg_hdl(void *phl, struct phl_msg *msg);
31 void rtw_phl_btc_packet_event_notify(void *phl, u8 role_id, u8 pkt_evt_type);
32 u8 rtw_phl_btc_pkt_2_evt_type(u8 packet_type);
33 
34 #endif /* __PHL_BTC_H__ */
35