13#ifndef __HAL_STRUCTS_COMMON_H__
14#define __HAL_STRUCTS_COMMON_H__
22#define MAX_HAL_RPU_READY_WAIT (1 * 1000 * 1000)
24#if defined(NRF_WIFI_LOW_POWER) || defined(__DOXYGEN__)
25#define RPU_PS_WAKE_INTERVAL_MS 1
26#define RPU_PS_WAKE_TIMEOUT_S 1
90#if defined(NRF_WIFI_LOW_POWER) || defined(__DOXYGEN__)
153#if defined(NRF70_DATA_TX) || defined(__DOXYGEN__)
246#if defined(NRF_WIFI_RPU_RECOVERY) || defined(__DOXYGEN__)
260#if defined(NRF_WIFI_LOW_POWER) || defined(__DOXYGEN__)
#define MAX_NUM_OF_RX_QUEUES
Definition lmac_if_common.h:200
RPU_PS_STATE
Enumeration of RPU power states.
Definition hal_structs_common.h:94
@ RPU_PS_STATE_MAX
Definition hal_structs_common.h:100
@ RPU_PS_STATE_ASLEEP
Definition hal_structs_common.h:96
@ RPU_PS_STATE_AWAKE
Definition hal_structs_common.h:98
NRF_WIFI_HAL_STATUS
Enumeration of NRF WiFi HAL status.
Definition hal_structs_common.h:107
@ NRF_WIFI_HAL_STATUS_ENABLED
Definition hal_structs_common.h:109
@ NRF_WIFI_HAL_STATUS_DISABLED
Definition hal_structs_common.h:111
NRF_WIFI_HAL_MSG_TYPE
Enumeration of NRF Wi-Fi HAL message types.
Definition hal_structs_common.h:75
@ NRF_WIFI_HAL_MSG_TYPE_CMD_DATA_MGMT
Definition hal_structs_common.h:83
@ NRF_WIFI_HAL_MSG_TYPE_EVENT
Definition hal_structs_common.h:79
@ NRF_WIFI_HAL_MSG_TYPE_MAX
Definition hal_structs_common.h:87
@ NRF_WIFI_HAL_MSG_TYPE_CMD_CTRL
Definition hal_structs_common.h:77
@ NRF_WIFI_HAL_MSG_TYPE_CMD_DATA_TX
Definition hal_structs_common.h:85
@ NRF_WIFI_HAL_MSG_TYPE_CMD_DATA_RX
Definition hal_structs_common.h:81
static const char * rpu_proc_to_str(enum RPU_PROC_TYPE proc)
Convert RPU_PROC_TYPE enum to string.
Definition hal_structs_common.h:47
RPU_PROC_TYPE
Enumeration of RPU processor types.
Definition hal_structs_common.h:32
@ RPU_PROC_TYPE_MCU_UMAC
Definition hal_structs_common.h:36
@ RPU_PROC_TYPE_MAX
Definition hal_structs_common.h:38
@ RPU_PROC_TYPE_MCU_LMAC
Definition hal_structs_common.h:34
NRF_WIFI_REGION_TYPE
Enumeration of NRF Wi-Fi region types.
Definition hal_structs_common.h:61
@ NRF_WIFI_REGION_TYPE_PKTRAM
Definition hal_structs_common.h:65
@ NRF_WIFI_REGION_TYPE_GRAM
Definition hal_structs_common.h:63
@ NRF_WIFI_REGION_TYPE_PBUS
Definition hal_structs_common.h:69
@ NRF_WIFI_REGION_TYPE_SYSBUS
Definition hal_structs_common.h:67
unsigned int len
Definition host_rpu_data_if.h:3
nrf_wifi_status
The status of an operation performed by the RPU driver.
Definition osal_structs.h:39
Information about Hostport Queues (HPQ) to be used for exchanging information between the Host and RP...
Definition rpu_if.h:374
Structure holding context information for the BAL.
Definition bal_structs.h:31
unsigned long virt_addr
Definition hal_structs_common.h:133
bool mapped
Definition hal_structs_common.h:131
unsigned int buf_len
Definition hal_structs_common.h:137
unsigned long phy_addr
Definition hal_structs_common.h:135
Structure to hold buffer mapping information for the HAL layer.
Definition hal_structs_common.h:129
unsigned char tx_buf_headroom_sz
Definition hal_structs_common.h:152
unsigned int max_event_size
Definition hal_structs_common.h:148
unsigned int max_cmd_size
Definition hal_structs_common.h:146
unsigned int max_ampdu_len_per_token
Definition hal_structs_common.h:162
unsigned int max_tx_frms
Definition hal_structs_common.h:155
unsigned char rx_buf_headroom_sz
Definition hal_structs_common.h:150
struct rx_buf_pool_params rx_buf_pool[MAX_NUM_OF_RX_QUEUES]
Definition hal_structs_common.h:158
unsigned int max_tx_frm_sz
Definition hal_structs_common.h:160
Structure to hold configuration parameters for the HAL layer in all modes of operation.
Definition hal_structs_common.h:144
unsigned long addr_rpu_pktram_base_rx
Definition hal_structs_common.h:241
struct nrf_wifi_hal_buf_map_info * tx_buf_info
Definition hal_structs_common.h:235
unsigned char idx
Definition hal_structs_common.h:209
void * cmd_q
Definition hal_structs_common.h:215
unsigned long addr_rpu_pktram_base_tx
Definition hal_structs_common.h:239
void * rpu_ps_lock
Definition hal_structs_common.h:266
bool is_wakeup_now_asserted
Definition hal_structs_common.h:248
unsigned long last_rpu_sleep_opp_time_ms
Definition hal_structs_common.h:254
void * event_q
Definition hal_structs_common.h:217
unsigned int event_data_len
Definition hal_structs_common.h:279
void * lock_rx
Definition hal_structs_common.h:231
int wdt_irq_ignored
Definition hal_structs_common.h:258
enum RPU_PS_STATE rpu_ps_state
Definition hal_structs_common.h:262
int wdt_irq_received
Definition hal_structs_common.h:256
unsigned int event_data_pending
Definition hal_structs_common.h:281
struct nrf_wifi_hal_buf_map_info * rx_buf_info[MAX_NUM_OF_RX_QUEUES]
Definition hal_structs_common.h:233
unsigned long last_wakeup_now_deasserted_time_ms
Definition hal_structs_common.h:252
unsigned int event_resubmit
Definition hal_structs_common.h:283
void * rpu_ps_timer
Definition hal_structs_common.h:264
unsigned long tx_frame_offset
Definition hal_structs_common.h:245
unsigned long addr_rpu_pktram_base_rx_pool[MAX_NUM_OF_RX_QUEUES]
Definition hal_structs_common.h:243
struct nrf_wifi_hal_priv * hpriv
Definition hal_structs_common.h:203
enum RPU_PROC_TYPE curr_proc
Definition hal_structs_common.h:225
void * lock_hal
Definition hal_structs_common.h:227
void * bal_dev_ctx
Definition hal_structs_common.h:207
void * event_tasklet
Definition hal_structs_common.h:229
unsigned long addr_rpu_pktram_base
Definition hal_structs_common.h:237
bool irq_ctx
Definition hal_structs_common.h:270
void * lock_recovery
Definition hal_structs_common.h:289
char * event_data_curr
Definition hal_structs_common.h:277
unsigned int num_cmds
Definition hal_structs_common.h:213
char * event_data
Definition hal_structs_common.h:275
void * mac_dev_ctx
Definition hal_structs_common.h:205
void * recovery_tasklet
Definition hal_structs_common.h:287
bool rpu_fw_booted
Definition hal_structs_common.h:272
bool dbg_enable
Definition hal_structs_common.h:268
enum NRF_WIFI_HAL_STATUS hal_status
Definition hal_structs_common.h:285
unsigned long last_wakeup_now_asserted_time_ms
Definition hal_structs_common.h:250
struct nrf_wifi_hal_info rpu_info
Definition hal_structs_common.h:211
Structure to hold per device context information for the HAL layer.
Definition hal_structs_common.h:201
unsigned int tx_cmd_base
Definition hal_structs_common.h:123
unsigned int rx_cmd_base
Definition hal_structs_common.h:121
struct host_rpu_hpqm_info hpqm_info
Definition hal_structs_common.h:119
Structure to hold RPU information.
Definition hal_structs_common.h:117
unsigned int len
Definition hal_structs_common.h:297
char data[0]
Definition hal_structs_common.h:299
Structure to hold information about a HAL message.
Definition hal_structs_common.h:295
enum nrf_wifi_status(* intr_callbk_fn)(void *mac_ctx, void *event_data, unsigned int len)
Definition hal_structs_common.h:186
unsigned long addr_pktram_base
Definition hal_structs_common.h:195
struct nrf_wifi_bal_priv * bpriv
Definition hal_structs_common.h:171
void(* rem_dev_callbk_fn)(void *mac_ctx)
Definition hal_structs_common.h:180
void(* deinit_dev_callbk_fn)(void *mac_ctx)
Definition hal_structs_common.h:184
unsigned char num_devs
Definition hal_structs_common.h:173
struct nrf_wifi_hal_cfg_params cfg_params
Definition hal_structs_common.h:193
enum nrf_wifi_status(* rpu_recovery_callbk_fn)(void *mac_ctx, void *event_data, unsigned int len)
Definition hal_structs_common.h:190
enum nrf_wifi_status(* init_dev_callbk_fn)(void *mac_ctx)
Definition hal_structs_common.h:182
void * add_dev_callbk_data
Definition hal_structs_common.h:175
Structure to hold context information for the HAL layer.
Definition hal_structs_common.h:169
Definition lmac_if_common.h:202