![]() |
TT-System-Firmware APIs 19.8.99
Tenstorrent Firmware
|
Host request to initiate a PCIe DMA transfer. More...
#include <msgqueue.h>
Data Fields | |
| uint8_t | command_code |
| The command code corresponding to TT_SMC_MSG_PCIE_DMA_CHIP_TO_HOST_TRANSFER or TT_SMC_MSG_PCIE_DMA_HOST_TO_CHIP_TRANSFER. | |
| uint8_t | completion_data |
| Completion data written to the MSI completion address. | |
| uint8_t | pad [2] |
| Two bytes of padding. | |
| uint32_t | transfer_size_bytes |
| Transfer size in bytes. | |
| uint64_t | chip_addr |
| Chip-side address for the transfer. | |
| uint64_t | host_addr |
| Host-side address for the transfer. | |
| uint64_t | msi_completion_addr |
| MSI completion address on the host. | |
Host request to initiate a PCIe DMA transfer.
Messages of this type are processed by pcie_dma_transfer_handler.
For TT_SMC_MSG_PCIE_DMA_HOST_TO_CHIP_TRANSFER the DMA reads from the host and writes to the chip. For TT_SMC_MSG_PCIE_DMA_CHIP_TO_HOST_TRANSFER the DMA reads from the chip and writes to the host.
On completion an MSI is sent to the host at msi_completion_addr with the completion_data value.
| uint64_t pcie_dma_transfer_rqst::chip_addr |
Chip-side address for the transfer.
| uint8_t pcie_dma_transfer_rqst::command_code |
The command code corresponding to TT_SMC_MSG_PCIE_DMA_CHIP_TO_HOST_TRANSFER or TT_SMC_MSG_PCIE_DMA_HOST_TO_CHIP_TRANSFER.
| uint8_t pcie_dma_transfer_rqst::completion_data |
Completion data written to the MSI completion address.
| uint64_t pcie_dma_transfer_rqst::host_addr |
Host-side address for the transfer.
| uint64_t pcie_dma_transfer_rqst::msi_completion_addr |
MSI completion address on the host.
| uint8_t pcie_dma_transfer_rqst::pad[2] |
Two bytes of padding.
| uint32_t pcie_dma_transfer_rqst::transfer_size_bytes |
Transfer size in bytes.