|
TT Zephyr Platforms 19.5.0-rc1
Tenstorrent Firmware
|
#include <zephyr/logging/log.h>#include <zephyr/shell/shell.h>#include <stdlib.h>#include <tenstorrent/bh_power.h>#include "telemetry.h"#include "smbus_target.h"#include "gddr.h"#include "asic_state.h"#include "noc_init.h"Functions | |
| LOG_MODULE_REGISTER (tt_shell, CONFIG_LOG_DEFAULT_LEVEL) | |
| static int | l2cpu_enable_handler (const struct shell *sh, size_t argc, char **argv) |
| static int | tensix_enable_handler (const struct shell *sh, size_t argc, char **argv) |
| static int | mrisc_power_handler (const struct shell *sh, size_t argc, char **argv) |
| static int | asic_state_handler (const struct shell *sh, size_t argc, char **argv) |
| static int | telem_handler (const struct shell *sh, size_t argc, char **argv) |
| SHELL_STATIC_SUBCMD_SET_CREATE (sub_tt_commands, SHELL_CMD_ARG(mrisc_power, NULL, "[off|on]", mrisc_power_handler, 2, 0), SHELL_CMD_ARG(tensix_power, NULL, "[off|on]", tensix_enable_handler, 2, 0), SHELL_CMD_ARG(l2cpu_power, NULL, "[off|on]", l2cpu_enable_handler, 2, 0), SHELL_CMD_ARG(asic_state, NULL, "[|0|3]", asic_state_handler, 1, 1), SHELL_CMD_ARG(telem, NULL, "<Telemetry Index> [|x|f|d]", telem_handler, 2, 1), SHELL_SUBCMD_SET_END) | |
| SHELL_CMD_REGISTER (tt, &sub_tt_commands, "Tensorrent commands", NULL) | |
| LOG_MODULE_REGISTER | ( | tt_shell | , |
| CONFIG_LOG_DEFAULT_LEVEL | ) |
| SHELL_CMD_REGISTER | ( | tt | , |
| & | sub_tt_commands, | ||
| "Tensorrent commands" | , | ||
| NULL | ) |
| SHELL_STATIC_SUBCMD_SET_CREATE | ( | sub_tt_commands | , |
| SHELL_CMD_ARG(mrisc_power, NULL, "[off|on]", mrisc_power_handler, 2, 0) | , | ||
| SHELL_CMD_ARG(tensix_power, NULL, "[off|on]", tensix_enable_handler, 2, 0) | , | ||
| SHELL_CMD_ARG(l2cpu_power, NULL, "[off|on]", l2cpu_enable_handler, 2, 0) | , | ||
| SHELL_CMD_ARG(asic_state, NULL, "[|0|3]", asic_state_handler, 1, 1) | , | ||
| SHELL_CMD_ARG(telem, NULL, "<Telemetry Index> [|x|f|d]", telem_handler, 2, 1) | , | ||
| SHELL_SUBCMD_SET_END | ) |