TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
tt_smc_remoteproc.h File Reference

Tenstorrent SMC Remote Processor APIs. More...

#include <stddef.h>
#include <stdint.h>
#include <zephyr/device.h>
Include dependency graph for tt_smc_remoteproc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int tt_smc_remoteproc_load (const struct device *dev, uint64_t addr, const uint8_t *bin_data, size_t bin_size)
 Write binary data into remote SMC memory.
int tt_smc_remoteproc_boot (const struct device *dev, uint64_t addr)
 Boot a previously loaded SMC image.

Detailed Description

Tenstorrent SMC Remote Processor APIs.

Function Documentation

◆ tt_smc_remoteproc_boot()

int tt_smc_remoteproc_boot ( const struct device * dev,
uint64_t addr )

Boot a previously loaded SMC image.

Start execution of the image already placed at addr on the remote SMC CPU.

Parameters
devPointer to the tt_smc_remoteproc device.
addrAddress of the loaded image entry point in the remote SMC memory map.
Returns
0 on success, or a negative errno code on failure.

◆ tt_smc_remoteproc_load()

int tt_smc_remoteproc_load ( const struct device * dev,
uint64_t addr,
const uint8_t * bin_data,
size_t bin_size )

Write binary data into remote SMC memory.

Copy an arbitrary block of binary data into the remote SMC address space at addr.

Parameters
devPointer to the tt_smc_remoteproc device.
addrTarget address in the remote SMC memory map.
bin_dataPointer to the binary data to write.
bin_sizeNumber of bytes in bin_data.
Returns
0 on success, or a negative errno code on failure.