![]() |
TT-System-Firmware APIs 19.17.99
Tenstorrent Firmware
|
#include "telemetry.h"#include "telemetry_platform.h"#include <stdint.h>#include <zephyr/arch/cpu.h>#include <zephyr/devicetree.h>#include <zephyr/sys/sys_io.h>
Data Structures | |
| struct | telemetry_entry |
| Represents an entry in the telemetry table. More... | |
| struct | telemetry_table |
| Represents the telemetry table containing telemetry data and metadata. More... | |
Macros | |
| #define | TELEMETRY_INFO_REG_ADDR (mem_addr_t) DT_REG_ADDR(DT_NODELABEL(telemetry_info)) |
| #define | GR_TAG_ENTRIES 3 |
| #define | GR_SLOT_TAG_BOARD_ID_HIGH 0 |
| #define | GR_SLOT_TAG_BOARD_ID_LOW 1 |
| #define | GR_SLOT_TAG_CM_FW_VERSION 2 |
| #define | TAG_ENTRY(tag) |
Functions | |
| BUILD_ASSERT (DT_NODE_HAS_STATUS(DT_NODELABEL(telemetry_info), okay), "Grendel telemetry requires telemetry_info status okay") | |
| int | telemetry_platform_slot (uint16_t tag) |
| uint32_t * | telemetry_platform_data (void) |
| void | telemetry_platform_write_static (uint32_t app_version) |
| void | telemetry_platform_update (void) |
| void | telemetry_platform_publish (void) |
Variables | |
| static struct telemetry_table | telemetry_table |
| #define GR_SLOT_TAG_BOARD_ID_HIGH 0 |
| #define GR_SLOT_TAG_BOARD_ID_LOW 1 |
| #define GR_SLOT_TAG_CM_FW_VERSION 2 |
| #define GR_TAG_ENTRIES 3 |
| #define TAG_ENTRY | ( | tag | ) |
| #define TELEMETRY_INFO_REG_ADDR (mem_addr_t) DT_REG_ADDR(DT_NODELABEL(telemetry_info)) |
| BUILD_ASSERT | ( | DT_NODE_HAS_STATUS(DT_NODELABEL(telemetry_info), okay) | , |
| "Grendel telemetry requires telemetry_info status okay" | ) |
| void telemetry_platform_publish | ( | void | ) |
Make the table and data addresses discoverable by the host.
| void telemetry_platform_update | ( | void | ) |
Refresh the dynamic values.
| void telemetry_platform_write_static | ( | uint32_t | app_version | ) |
Fill the values that do not change at runtime and the table header.
|
static |