![]() |
nRF WiFi
|
Header containing the OPs declarations for the Bus Abstraction Layer (BAL) of the Wi-Fi driver. More...
#include <bal_ops.h>
Data Fields | |
| void *(* | init )(void *cfg_params, enum nrf_wifi_status(*intr_callbk_fn)(void *hal_ctx)) |
| Initialize the bus. | |
| void(* | deinit )(void *bus_priv) |
| Deinitialize the bus. | |
| void *(* | dev_add )(void *bus_priv, void *bal_dev_ctx) |
| Add a device to the bus. | |
| void(* | dev_rem )(void *bus_dev_ctx) |
| Remove a device from the bus. | |
| enum nrf_wifi_status(* | dev_init )(void *bus_dev_ctx) |
| Initialize a device on the bus. | |
| void(* | dev_deinit )(void *bus_dev_ctx) |
| Deinitialize a device on the bus. | |
| unsigned int(* | read_word )(void *bus_dev_ctx, unsigned long addr_offset) |
| Read a word from the bus. | |
| void(* | write_word )(void *bus_dev_ctx, unsigned long addr_offset, unsigned int val) |
| Write a word to the bus. | |
| void(* | read_block )(void *bus_dev_ctx, void *dest_addr, unsigned long src_addr_offset, size_t len) |
| Read a block of data from the bus. | |
| void(* | write_block )(void *bus_dev_ctx, unsigned long dest_addr_offset, const void *src_addr, size_t len) |
| Write a block of data to the bus. | |
| unsigned long(* | dma_map )(void *bus_dev_ctx, unsigned long virt_addr, size_t len, enum nrf_wifi_osal_dma_dir dma_dir) |
| Map a DMA buffer. | |
| unsigned long(* | dma_unmap )(void *bus_dev_ctx, unsigned long phy_addr, size_t len, enum nrf_wifi_osal_dma_dir dma_dir) |
| Unmap a DMA buffer. | |
| void(* | rpu_ps_sleep )(void *bus_dev_ctx) |
| Put the device into power-saving sleep mode. | |
| void(* | rpu_ps_wake )(void *bus_dev_ctx) |
| Wake the device from power-saving sleep mode. | |
| int(* | rpu_ps_status )(void *bus_dev_ctx) |
| Get the power-saving status of the device. | |
Header containing the OPs declarations for the Bus Abstraction Layer (BAL) of the Wi-Fi driver.
Ops to be provided by a particular bus implementation.
This structure defines the operations that need to be implemented by a specific bus implementation.