TT-System-Firmware APIs 19.8.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
pcie_dma_transfer_rqst Struct Reference

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.

Detailed Description

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.

Field Documentation

◆ chip_addr

uint64_t pcie_dma_transfer_rqst::chip_addr

Chip-side address for the transfer.

◆ command_code

uint8_t pcie_dma_transfer_rqst::command_code

◆ completion_data

uint8_t pcie_dma_transfer_rqst::completion_data

Completion data written to the MSI completion address.

◆ host_addr

uint64_t pcie_dma_transfer_rqst::host_addr

Host-side address for the transfer.

◆ msi_completion_addr

uint64_t pcie_dma_transfer_rqst::msi_completion_addr

MSI completion address on the host.

◆ pad

uint8_t pcie_dma_transfer_rqst::pad[2]

Two bytes of padding.

◆ transfer_size_bytes

uint32_t pcie_dma_transfer_rqst::transfer_size_bytes

Transfer size in bytes.


The documentation for this struct was generated from the following file: