nRF WiFi
Loading...
Searching...
No Matches
fmac_api_common.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
15#ifndef __FMAC_API_COMMON_H__
16#define __FMAC_API_COMMON_H__
17
18#include "osal_api.h"
20#include "host_rpu_sys_if.h"
21#include <patch_info.h>
22#include "fmac_cmd_common.h"
23#include "fmac_structs_common.h"
24
25
26#ifndef MIN
27#define MIN(a, b) (((a) < (b)) ? (a) : (b))
28#endif
29
40
41
50
51
60
72 const void *fw_data,
73 unsigned int fw_size,
74 struct nrf_wifi_fmac_fw_info *fw_info);
75
76
88
101
115 enum RPU_PROC_TYPE rpu_proc,
116 struct nrf_wifi_fmac_fw_chunk_info *fw_chunk);
117
130 struct nrf_wifi_fmac_fw_info *fmac_fw);
131
142 unsigned int *fw_ver);
143
157 unsigned char he_ltf,
158 unsigned char he_gi,
159 unsigned char enabled);
160
161
174 void *cmd, unsigned int cmd_len);
175
176
190 unsigned char if_idx,
191 struct nrf_wifi_umac_mcast_cfg *mcast_info);
192
193
205 unsigned char vif_idx,
206 unsigned char *mac_addr);
207
208
219 struct nrf_wifi_fmac_reg_info *reg_info);
220
231 struct nrf_wifi_fmac_reg_info *reg_info);
232
244 unsigned char if_idx);
245
256
260#endif /* __FMAC_API_COMMON_H__ */
enum nrf_wifi_status nrf_wifi_fmac_set_reg(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, struct nrf_wifi_fmac_reg_info *reg_info)
Set regulatory domain in RPU.
enum nrf_wifi_status nrf_wifi_fmac_fw_reset(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
Reset the processors in the RPU WLAN device.
enum nrf_wifi_status nrf_wifi_fmac_otp_mac_addr_get(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, unsigned char vif_idx, unsigned char *mac_addr)
Fetch MAC address from OTP.
void nrf_wifi_fmac_deinit(struct nrf_wifi_fmac_priv *fpriv)
De-initialize the UMAC IF layer.
enum nrf_wifi_status nrf_wifi_sys_fmac_get_power_save_info(void *fmac_dev_ctx, unsigned char if_idx)
Get the current power save information.
enum nrf_wifi_status nrf_wifi_fmac_fw_chunk_load(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, enum RPU_PROC_TYPE rpu_proc, struct nrf_wifi_fmac_fw_chunk_info *fw_chunk)
Load a chunk of the Firmware to the RPU WLAN device.
enum nrf_wifi_status nrf_wifi_fmac_fw_parse(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, const void *fw_data, unsigned int fw_size, struct nrf_wifi_fmac_fw_info *fw_info)
Parse the Firmware(s) to be loaded to the RPU WLAN device.
void nrf_wifi_fmac_dev_rem(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
Removes a RPU instance.
enum nrf_wifi_status nrf_wifi_validate_fw_header(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, struct nrf70_fw_image_info *info)
Validate the firmware header.
enum nrf_wifi_status nrf_wifi_sys_fmac_set_mcast_addr(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, unsigned char if_idx, struct nrf_wifi_umac_mcast_cfg *mcast_info)
Set the Multicast filter address.
enum nrf_wifi_status nrf_wifi_fmac_ver_get(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, unsigned int *fw_ver)
Get FW versions from the RPU.
enum nrf_wifi_status nrf_wifi_fmac_get_reg(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, struct nrf_wifi_fmac_reg_info *reg_info)
Get regulatory domain from RPU.
enum nrf_wifi_status nrf_wifi_fmac_conf_ltf_gi(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, unsigned char he_ltf, unsigned char he_gi, unsigned char enabled)
Configure HE LTF and GI parameters.
enum nrf_wifi_status nrf_wifi_fmac_conf_srcoex(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, void *cmd, unsigned int cmd_len)
Configure SR coexistence parameters in RPU.
enum nrf_wifi_status nrf_wifi_fmac_fw_boot(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
Boot the Firmware(s) to the RPU WLAN device.
enum nrf_wifi_status nrf_wifi_fmac_fw_load(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx, struct nrf_wifi_fmac_fw_info *fmac_fw)
Loads the Firmware(s) to the RPU WLAN device.
enum nrf_wifi_status nrf_wifi_fmac_stats_reset(struct nrf_wifi_fmac_dev_ctx *fmac_dev_ctx)
Issue a request to reset stats of the RPU.
Header containing API declarations for the HAL Layer of the Wi-Fi driver.
RPU_PROC_TYPE
Enumeration of RPU processor types.
Definition hal_structs_common.h:32
unsigned int cmd
Definition host_rpu_data_if.h:1
unsigned char mac_addr[6]
Definition host_rpu_data_if.h:7
unsigned char he_gi
Definition host_rpu_sys_if.h:53
unsigned char he_ltf
Definition host_rpu_sys_if.h:7
struct nrf_wifi_umac_scan_info info
Definition host_rpu_umac_if.h:3
unsigned char enabled
Definition host_rpu_umac_if.h:5
nrf_wifi_status
The status of an operation performed by the RPU driver.
Definition osal_structs.h:39
Definition patch_info.h:50
Structure to hold common fmac dev context parameter data.
Definition fmac_structs_common.h:153
Structure to hold FW patch chunk information.
Definition fmac_structs_common.h:89
Structure to hold FW patch information for LMAC and UMAC.
Definition fmac_structs_common.h:74
Structure to hold common fmac priv parameter data.
Definition fmac_structs_common.h:140
Structure to hold Regulatory parameter data.
Definition fmac_structs_common.h:125
This structure represents the parameters used to configure the multicast address filter.
Definition host_rpu_umac_if.h:1217