TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
power.c File Reference
#include <tenstorrent/smc_msg.h>
#include <tenstorrent/msgqueue.h>
#include <zephyr/logging/log.h>
#include "aiclk_ppm.h"
#include "gddr.h"

Enumerations

enum  power_bit_flags_e {
  power_bit_flag_aiclk ,
  power_bit_flag_mrisc ,
  power_bit_flag_max
}
enum  power_settings_e { power_settings_max }

Functions

 LOG_MODULE_REGISTER (power, CONFIG_TT_APP_LOG_LEVEL)
static int32_t apply_power_settings (const struct power_setting_rqst *power_setting)
static uint8_t power_setting_msg_handler (const union request *request, struct response *response)
 Handles the request to set the power settings.
 REGISTER_MESSAGE (TT_SMC_MSG_POWER_SETTING, power_setting_msg_handler)

Enumeration Type Documentation

◆ power_bit_flags_e

Enumerator
power_bit_flag_aiclk 
power_bit_flag_mrisc 
power_bit_flag_max 

◆ power_settings_e

Enumerator
power_settings_max 

Function Documentation

◆ apply_power_settings()

int32_t apply_power_settings ( const struct power_setting_rqst * power_setting)
static

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( power ,
CONFIG_TT_APP_LOG_LEVEL  )

◆ power_setting_msg_handler()

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

Handles the request to set the power settings.

Parameters
[in]requestThe request, of type power_setting_rqst_t, with command code TT_SMC_MSG_POWER_SETTING
[out]responseThe response to the host
Returns
0 for success. 1 for Failure.

◆ REGISTER_MESSAGE()