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