![]() |
nRF WiFi
|
| 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.
| os_pcie_dev_ctx | Pointer to a OS specific PCIe device handle. |
| virt_addr | Virtual host address to be DMA mapped. |
| size | Size in bytes of the host memory to be DMA mapped. |
| dir | DMA 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.