TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
asic_state.c File Reference
#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

Function Documentation

◆ asic_state_handler()

uint8_t asic_state_handler ( const union request * request,
struct response * response )
static

◆ enter_state0()

void enter_state0 ( void )
static

◆ enter_state3()

void enter_state3 ( void )
static

◆ get_asic_state()

AsicState get_asic_state ( void )

◆ lock_down_for_reset()

void lock_down_for_reset ( void )

◆ REGISTER_MESSAGE() [1/2]

REGISTER_MESSAGE ( TT_SMC_MSG_ASIC_STATE0 ,
asic_state_handler  )

◆ REGISTER_MESSAGE() [2/2]

REGISTER_MESSAGE ( TT_SMC_MSG_ASIC_STATE3 ,
asic_state_handler  )

◆ set_asic_state()

void set_asic_state ( AsicState state)

Variable Documentation

◆ asic_state

uint8_t asic_state = A0State