nRF WiFi
Loading...
Searching...
No Matches

◆ nrf_wifi_osal_bus_pcie_dev_dma_map()

void * nrf_wifi_osal_bus_pcie_dev_dma_map ( void * os_pcie_dev_ctx,
void * virt_addr,
size_t size,
enum nrf_wifi_osal_dma_dir dir )

Map host memory for DMA access.

Parameters
os_pcie_dev_ctxPointer to a OS specific PCIe device handle.
virt_addrVirtual host address to be DMA mapped.
sizeSize in bytes of the host memory to be DMA mapped.
dirDMA direction.

Maps host memory of size bytes pointed to by the virtual address virt_addr to be used by the device(dma_dev) for DMAing contents. The contents are available for DMAing to the device if dir has a value of NRF_WIFI_OSAL_DMA_DIR_TO_DEV. Conversely the device can DMA contents to the host memory if dir has a value of NRF_WIFI_OSAL_DMA_DIR_FROM_DEV. The function returns the DMA address of the mapped memory.