TT-System-Firmware APIs
19.8.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
bh_power.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Tenstorrent AI ULC
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
6
#ifndef BH_POWER_H
7
#define BH_POWER_H
8
9
#include <
stdbool.h
>
10
#include <
stdint.h
>
11
12
enum
bh_power_domain
{
13
BH_POWER_DOMAIN_AICLK
,
14
BH_POWER_DOMAIN_MRISC
,
15
BH_POWER_DOMAIN_TENSIX
,
16
BH_POWER_DOMAIN_L2CPU
,
17
BH_POWER_DOMAIN_COUNT
,
18
};
19
20
int32_t
bh_set_l2cpu_enable
(
bool
enable);
21
31
int
bh_power_state_get
(
enum
bh_power_domain
domain,
bool
*
state
);
32
33
#endif
bh_power_domain
bh_power_domain
Definition
bh_power.h:12
BH_POWER_DOMAIN_COUNT
@ BH_POWER_DOMAIN_COUNT
Definition
bh_power.h:17
BH_POWER_DOMAIN_MRISC
@ BH_POWER_DOMAIN_MRISC
Definition
bh_power.h:14
BH_POWER_DOMAIN_AICLK
@ BH_POWER_DOMAIN_AICLK
Definition
bh_power.h:13
BH_POWER_DOMAIN_TENSIX
@ BH_POWER_DOMAIN_TENSIX
Definition
bh_power.h:15
BH_POWER_DOMAIN_L2CPU
@ BH_POWER_DOMAIN_L2CPU
Definition
bh_power.h:16
bh_power_state_get
int bh_power_state_get(enum bh_power_domain domain, bool *state)
Returns the power state of the specified domain.
Definition
bh_power.c:59
bh_set_l2cpu_enable
int32_t bh_set_l2cpu_enable(bool enable)
Definition
bh_power.c:32
state
state
stdbool.h
stdint.h
int32_t
__INT32_TYPE__ int32_t
tenstorrent
bh_power.h
Generated by
1.14.0