xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/phl_p2pps.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /******************************************************************************
2*4882a593Smuzhiyun  *
3*4882a593Smuzhiyun  * Copyright(c)2019 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_P2PPS_H_
16*4882a593Smuzhiyun #define _PHL_P2PPS_H_
17*4882a593Smuzhiyun #ifdef CONFIG_PHL_P2PPS
18*4882a593Smuzhiyun #ifdef RTW_WKARD_P2PPS_REFINE
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun enum rtw_phl_status
21*4882a593Smuzhiyun phl_p2pps_init(struct phl_info_t* phl_info);
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun void
24*4882a593Smuzhiyun phl_p2pps_deinit(struct phl_info_t* phl_info);
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun void
27*4882a593Smuzhiyun phl_p2pps_query_noa_with_cnt255(struct phl_info_t* phl_info,
28*4882a593Smuzhiyun 	struct rtw_wifi_role_t *w_role,
29*4882a593Smuzhiyun 	struct rtw_phl_noa_desc *desc);
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun void
32*4882a593Smuzhiyun phl_p2pps_tsf32_tog_handler(struct phl_info_t* phl_info);
33*4882a593Smuzhiyun 
34*4882a593Smuzhiyun void
35*4882a593Smuzhiyun phl_p2pps_noa_resume_all(struct phl_info_t *phl,
36*4882a593Smuzhiyun 	struct rtw_wifi_role_t *w_role);
37*4882a593Smuzhiyun void
38*4882a593Smuzhiyun phl_p2pps_noa_all_role_resume(struct phl_info_t *phl_info,
39*4882a593Smuzhiyun 	u8 band_idx);
40*4882a593Smuzhiyun 
41*4882a593Smuzhiyun void
42*4882a593Smuzhiyun phl_p2pps_noa_pause_all(struct phl_info_t *phl,
43*4882a593Smuzhiyun 	struct rtw_wifi_role_t *w_role);
44*4882a593Smuzhiyun void
45*4882a593Smuzhiyun phl_p2pps_noa_all_role_pause(struct phl_info_t *phl_info,
46*4882a593Smuzhiyun 	u8 band_idx);
47*4882a593Smuzhiyun 
48*4882a593Smuzhiyun void
49*4882a593Smuzhiyun phl_p2pps_noa_disable_all(struct phl_info_t *phl,
50*4882a593Smuzhiyun 	struct rtw_wifi_role_t *w_role);
51*4882a593Smuzhiyun 
52*4882a593Smuzhiyun enum rtw_phl_status
53*4882a593Smuzhiyun rtw_phl_p2pps_noa_update(void *phl,
54*4882a593Smuzhiyun 	struct rtw_phl_noa_desc *in_desc);
55*4882a593Smuzhiyun #endif
56*4882a593Smuzhiyun #else
57*4882a593Smuzhiyun #define phl_p2pps_init(_phl_info) RTW_PHL_STATUS_SUCCESS
58*4882a593Smuzhiyun #define phl_p2pps_deinit(_phl_info)
59*4882a593Smuzhiyun #define rtw_phl_p2pps_noa_update(_phl, _in_desc) RTW_PHL_STATUS_SUCCESS
60*4882a593Smuzhiyun #define phl_p2pps_tsf32_tog_handler(_phl_info)
61*4882a593Smuzhiyun #define phl_p2pps_query_noa_with_cnt255(_phl, _wrole, _desc)
62*4882a593Smuzhiyun #define phl_p2pps_noa_resume_all(_phl, _w_role)
63*4882a593Smuzhiyun #define phl_p2pps_noa_all_role_resume(_phl, _band_idx)
64*4882a593Smuzhiyun #define phl_p2pps_noa_pause_all(_phl, _w_role)
65*4882a593Smuzhiyun #define phl_p2pps_noa_all_role_pause(_phl, _band_idx)
66*4882a593Smuzhiyun #define phl_p2pps_noa_disable_all(_phl, _w_role)
67*4882a593Smuzhiyun #endif
68*4882a593Smuzhiyun #endif
69