1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /**
8  * @brief Header containing common (mode agnostic) command specific
9  * declarations for the FMAC IF Layer of the Wi-Fi driver.
10  */
11 
12 #ifndef __FMAC_CMD_COMMON_H__
13 #define __FMAC_CMD_COMMON_H__
14 
15 #include "fmac_structs_common.h"
16 
17 #define NRF_WIFI_FMAC_STATS_RECV_TIMEOUT 50 /* ms */
18 #define NRF_WIFI_FMAC_PS_CONF_EVNT_RECV_TIMEOUT 50 /* ms */
19 #define NRF_WIFI_FMAC_REG_SET_TIMEOUT_MS 2000 /* 2s */
20 
21 struct host_rpu_msg *umac_cmd_alloc(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
22 				    int type,
23 				    int size);
24 
25 enum nrf_wifi_status umac_cmd_cfg(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
26 				  void *params,
27 				  int len);
28 
29 enum nrf_wifi_status umac_cmd_deinit(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx);
30 
31 enum nrf_wifi_status umac_cmd_srcoex(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
32 				     void *cmd, unsigned int cmd_len);
33 
34 enum nrf_wifi_status umac_cmd_prog_stats_reset(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx);
35 
36 enum nrf_wifi_status umac_cmd_set_ps_exit_strategy(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx,
37 					enum ps_exit_strategy ps_exit_strategy);
38 #endif /* __FMAC_CMD_COMMON_H__ */