|
TT Zephyr Platforms 19.5.0-rc1
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) |
| Handles the request to change ASIC state. | |
| 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 |
Handles the request to change ASIC state.
| [in] | request | The request, of type asic_state_rqst, with command code TT_SMC_MSG_ASIC_STATE0 or TT_SMC_MSG_ASIC_STATE3 |
| [out] | response | The response to the host |
|
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 | ) |