TT-System-Firmware APIs 19.8.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
bh_power.h File Reference
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Enumerations

enum  bh_power_domain {
  BH_POWER_DOMAIN_AICLK ,
  BH_POWER_DOMAIN_MRISC ,
  BH_POWER_DOMAIN_TENSIX ,
  BH_POWER_DOMAIN_L2CPU ,
  BH_POWER_DOMAIN_COUNT
}

Functions

int32_t bh_set_l2cpu_enable (bool enable)
int bh_power_state_get (enum bh_power_domain domain, bool *state)
 Returns the power state of the specified domain.

Enumeration Type Documentation

◆ bh_power_domain

Enumerator
BH_POWER_DOMAIN_AICLK 
BH_POWER_DOMAIN_MRISC 
BH_POWER_DOMAIN_TENSIX 
BH_POWER_DOMAIN_L2CPU 
BH_POWER_DOMAIN_COUNT 

Function Documentation

◆ bh_power_state_get()

int bh_power_state_get ( enum bh_power_domain domain,
bool * state )

Returns the power state of the specified domain.

Parameters
[out]stateTrue if power state is high (busy for AICLK), false if power state is low (idle for AICLK)
Return values
0On success
-EINVALIf domain is invalid

◆ bh_set_l2cpu_enable()

int32_t bh_set_l2cpu_enable ( bool enable)