xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/phl_cmd_general.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 _PHL_CMD_GENERAL_H_
16 #define _PHL_CMD_GENERAL_H_
17 
18 enum rtw_phl_status
19 phl_cmd_get_cur_cmdinfo(struct phl_info_t *phl_info,
20 					u8 band_idx,
21 					struct phl_msg *msg,
22 					u8 **cmd, u32 *cmd_len);
23 
24 enum rtw_phl_status phl_register_cmd_general(struct phl_info_t *phl_info);
25 
26 enum rtw_phl_status
27 phl_cmd_enqueue(struct phl_info_t *phl_info,
28                 enum phl_band_idx band_idx,
29                 enum phl_msg_evt_id evt_id,
30                 u8 *cmd_buf,
31                 u32 cmd_len,
32                 void (*cmd_complete)(void *priv, u8 *cmd, u32 cmd_len, enum rtw_phl_status status),
33                 enum phl_cmd_type cmd_type,
34                 u32 cmd_timeout);
35 #endif /*_PHL_CMD_GENERAL_H_*/
36