TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
|
#include "asic_state.h"
#include <zephyr/kernel.h>
#include <tenstorrent/smc_msg.h>
#include <tenstorrent/msgqueue.h>
#include "regulator.h"
#include "aiclk_ppm.h"
#include "voltage.h"
Functions | |
static void | enter_state0 (void) |
static void | enter_state3 (void) |
void | lock_down_for_reset (void) |
static uint8_t | asic_state_handler (const union request *request, struct response *response) |
void | set_asic_state (AsicState state) |
AsicState | get_asic_state (void) |
REGISTER_MESSAGE (TT_SMC_MSG_ASIC_STATE0, asic_state_handler) | |
REGISTER_MESSAGE (TT_SMC_MSG_ASIC_STATE3, asic_state_handler) |
Variables | |
uint8_t | asic_state = A0State |
|
static |
|
static |
AsicState get_asic_state | ( | void | ) |
void lock_down_for_reset | ( | void | ) |
REGISTER_MESSAGE | ( | TT_SMC_MSG_ASIC_STATE0 | , |
asic_state_handler | ) |
REGISTER_MESSAGE | ( | TT_SMC_MSG_ASIC_STATE3 | , |
asic_state_handler | ) |
void set_asic_state | ( | AsicState | state | ) |