nRF WiFi
Loading...
Searching...
No Matches
hal_api_common.h File Reference

Header containing API declarations for the HAL Layer of the Wi-Fi driver. More...

#include "osal_api.h"
#include "rpu_if.h"
#include "bal_api.h"
#include "hal_structs_common.h"
#include "hal_mem.h"
#include "hal_reg.h"
#include "hal_fw_patch_loader.h"

Go to the source code of this file.

Data Structures

struct  nrf70_fw_addr_info
 Structure containing information about the firmware address. More...
 

Macros

#define NRF_WIFI_ADDR_REG_NAME_LEN   16
 

Functions

struct nrf_wifi_hal_privnrf_wifi_hal_init (struct nrf_wifi_hal_cfg_params *cfg_params, enum nrf_wifi_status(*intr_callbk_fn)(void *dev_ctx, void *event_data, unsigned int len), enum nrf_wifi_status(*rpu_recovery_callbk_fn)(void *mac_ctx, void *event_data, unsigned int len))
 Initialize the HAL layer.
 
void nrf_wifi_hal_deinit (struct nrf_wifi_hal_priv *hpriv)
 Deinitialize the HAL layer.
 
void nrf_wifi_hal_dev_rem (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx)
 
enum nrf_wifi_status nrf_wifi_hal_dev_init (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx)
 
void nrf_wifi_hal_dev_deinit (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx)
 
void nrf_wifi_hal_enable (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx)
 
void nrf_wifi_hal_disable (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx)
 
enum NRF_WIFI_HAL_STATUS nrf_wifi_hal_status_unlocked (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx)
 
enum nrf_wifi_status nrf_wifi_hal_ctrl_cmd_send (struct nrf_wifi_hal_dev_ctx *hal_ctx, void *cmd, unsigned int cmd_size)
 Send a control command to the RPU.
 
enum nrf_wifi_status hal_rpu_eventq_process (struct nrf_wifi_hal_dev_ctx *hal_ctx)
 Process events from the RPU.
 
void nrf_wifi_hal_proc_ctx_set (struct nrf_wifi_hal_dev_ctx *hal_ctx, enum RPU_PROC_TYPE proc)
 Set the processing context for the Wi-Fi HAL.
 
enum nrf_wifi_status nrf_wifi_hal_proc_reset (struct nrf_wifi_hal_dev_ctx *hal_ctx, enum RPU_PROC_TYPE rpu_proc)
 Reset the processing context for the Wi-Fi HAL.
 
enum nrf_wifi_status nrf_wifi_hal_fw_chk_boot (struct nrf_wifi_hal_dev_ctx *hal_ctx, enum RPU_PROC_TYPE rpu_proc)
 Check the boot status of the firmware for the Wi-Fi HAL.
 
enum nrf_wifi_status hal_rpu_ps_wake (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx)
 Wake up the RPU power save mode for the Wi-Fi HAL.
 
enum nrf_wifi_status nrf_wifi_hal_get_rpu_ps_state (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, int *rpu_ps_ctrl_state)
 Get the RPU power save state for the Wi-Fi HAL.
 
enum nrf_wifi_status nrf_wifi_hal_otp_info_get (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, struct host_rpu_umac_info *otp_info, unsigned int *otp_flags)
 Get the OTP information for the Wi-Fi HAL.
 
enum nrf_wifi_status nrf_wifi_hal_otp_ft_prog_ver_get (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, unsigned int *ft_prog_ver)
 Get the OTP firmware programming version for the Wi-Fi HAL.
 
enum nrf_wifi_status nrf_wifi_hal_otp_pack_info_get (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, unsigned int *package_info)
 Get the OTP package information for the Wi-Fi HAL.
 
enum nrf_wifi_status hal_rpu_ps_init (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx)
 
enum nrf_wifi_status nrf_wifi_hal_irq_handler (void *data)
 
enum nrf_wifi_status hal_rpu_msg_post (struct nrf_wifi_hal_dev_ctx *hal_dev_ctx, enum NRF_WIFI_HAL_MSG_TYPE msg_type, unsigned int queue_id, unsigned int msg_addr)
 

Variables

const struct nrf70_fw_addr_info nrf70_fw_addr_info []
 

Detailed Description

Header containing API declarations for the HAL Layer of the Wi-Fi driver.