|
TT Zephyr Platforms 19.5.0-rc1
Tenstorrent Firmware
|
#include <stdlib.h>#include <tenstorrent/spi_flash_buf.h>#include <tenstorrent/tt_boot_fs.h>#include <zephyr/drivers/flash.h>#include <zephyr/kernel.h>#include <zephyr/logging/log.h>#include <zephyr/drivers/dma.h>#include <zephyr/drivers/dma/dma_arc_hs.h>Functions | |
| LOG_MODULE_REGISTER (spi_flash_buf, CONFIG_TT_APP_LOG_LEVEL) | |
| int | spi_transfer_by_parts (const struct device *dev, size_t spi_address, size_t image_size, uint8_t *buf, size_t buf_size, uint8_t *tlb_dst, int(*cb)(uint8_t *src, uint8_t *dst, size_t len)) |
| static int | arc_dma_transfer_wrapper (uint8_t *src, uint8_t *dst, size_t len) |
| int | spi_arc_dma_transfer_to_tile (const struct device *dev, size_t spi_address, size_t image_size, uint8_t *buf, size_t buf_size, uint8_t *tlb_dst) |
Variables | |
| static const struct device *const | arc_dma_dev = DEVICE_DT_GET_OR_NULL(DT_NODELABEL(dma0)) |
| LOG_MODULE_REGISTER | ( | spi_flash_buf | , |
| CONFIG_TT_APP_LOG_LEVEL | ) |
| int spi_arc_dma_transfer_to_tile | ( | const struct device * | dev, |
| size_t | spi_address, | ||
| size_t | image_size, | ||
| uint8_t * | buf, | ||
| size_t | buf_size, | ||
| uint8_t * | tlb_dst ) |
| int spi_transfer_by_parts | ( | const struct device * | dev, |
| size_t | spi_address, | ||
| size_t | image_size, | ||
| uint8_t * | buf, | ||
| size_t | buf_size, | ||
| uint8_t * | tlb_dst, | ||
| int(* | cb )(uint8_t *src, uint8_t *dst, size_t len) ) |
|
static |