open-sdr / openwifi

open-source IEEE 802.11 WiFi baseband FPGA (chip) design: driver, software
GNU Affero General Public License v3.0
3.88k stars 658 forks source link

Which DMA hardware is used in openwifi driver? #204

Closed feiger313 closed 2 years ago

feiger313 commented 2 years ago

Please ask whether the DMA used in the driver is from the FPD_DMA in the PS or the AXI_DMA in the pl?

JiaoXianjun commented 2 years ago

tx dma https://github.com/open-sdr/openwifi/blob/c6dd9e71e5a911d3150bcd980890353e9bd4b066/kernel_boot/boards/zed_fmcs2/devicetree.dts#L844

rx dma https://github.com/open-sdr/openwifi/blob/c6dd9e71e5a911d3150bcd980890353e9bd4b066/kernel_boot/boards/zed_fmcs2/devicetree.dts#L872

feiger313 commented 2 years ago

Thank you, Dr. Jiao, for understanding this problem. priv->tx_chan = dma_request_slave_channel(&(priv->pdev->dev), "tx_dma_mm2s"); It turns out that "tx_dma_mm2s" will associate the device tree