![]() |
TT-System-Firmware APIs 19.8.99
Tenstorrent Firmware
|
Host request to read or write SPI EEPROM. More...
#include <msgqueue.h>
Data Fields | |
| uint8_t | command_code |
| The command code corresponding to TT_SMC_MSG_READ_EEPROM or TT_SMC_MSG_WRITE_EEPROM. | |
| uint8_t | buffer_mem_type |
| Buffer memory type (0 = CSM scratch buffer) | |
| uint8_t | pad [2] |
| Two bytes of padding. | |
| uint32_t | spi_address |
| SPI flash address to read from or write to. | |
| uint32_t | num_bytes |
| Number of bytes to transfer. | |
| uint32_t | csm_addr |
| CSM buffer address for the data. | |
Host request to read or write SPI EEPROM.
Read messages are processed by read_eeprom_handler. Write messages are processed by write_eeprom_handler.
The host must use flash unlock (TT_SMC_MSG_FLASH_UNLOCK) before writing. The CSM buffer address must fall within the SPI global buffer region.
| uint8_t eeprom_rqst::buffer_mem_type |
Buffer memory type (0 = CSM scratch buffer)
| uint8_t eeprom_rqst::command_code |
The command code corresponding to TT_SMC_MSG_READ_EEPROM or TT_SMC_MSG_WRITE_EEPROM.
| uint32_t eeprom_rqst::csm_addr |
CSM buffer address for the data.
| uint32_t eeprom_rqst::num_bytes |
Number of bytes to transfer.
| uint8_t eeprom_rqst::pad[2] |
Two bytes of padding.
| uint32_t eeprom_rqst::spi_address |
SPI flash address to read from or write to.