TT-System-Firmware APIs 19.17.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
chip_info.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Tenstorrent AI ULC
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef TT_BH_ARC_CHIP_INFO_H
7#define TT_BH_ARC_CHIP_INFO_H
8
9#include <stdint.h>
10#include <stdbool.h>
11
12/*
13 * Abstracts chip-configuration values for the recovery and mission bh_arc.
14 * Mission mode reads values from fwtable while recovery returns hardcoded values.
15 */
16
17/* PCIe operating mode. Values intentionally match the protobuf
18 * FwTable_PciPropertyTable_PcieMode enum so the fwtable backend can pass them
19 * through unchanged.
20 */
26
41
42/* An 80-bit board ID. The high member uses only its low 16 bits. */
43typedef struct {
47
48/* True if this is a UBB (Galaxy) board. Used to skip DMC cable-fault checks.
49 * Exposed as a semantic predicate rather than a raw board-type byte so that
50 * recovery code never needs to include the bh_fwtable / protobuf headers.
51 */
52bool bh_chip_info_is_ubb(void);
53
54/* Extra board power budget, in W, added to host-reported power. */
56
57/* Legacy board ID for PCIe. */
60
61/* PCIe property table for instance @p pcie_inst (0 or 1). */
62void bh_chip_info_pci_property(uint8_t pcie_inst, struct bh_pci_property *out);
63
64/* Feature-enable bits. */
67/* True to skip the boot-time DMC cable fault check. Recovery never bypasses it. */
69
70#endif /* TT_BH_ARC_CHIP_INFO_H */
void bh_chip_info_pci_property(uint8_t pcie_inst, struct bh_pci_property *out)
Definition chip_info_fwtable.c:49
bh_pcie_mode_t
Definition chip_info.h:21
@ BH_PCIE_MODE_DISABLED
Definition chip_info.h:22
@ BH_PCIE_MODE_EP
Definition chip_info.h:23
@ BH_PCIE_MODE_RP
Definition chip_info.h:24
bool bh_chip_info_feature_bypass_cable_fault_detection(void)
Definition chip_info_fwtable.c:79
uint32_t bh_chip_info_additional_board_power(void)
Definition chip_info_fwtable.c:34
uint64_t bh_chip_info_legacy_board_id(void)
Definition chip_info_fwtable.c:39
bool bh_chip_info_is_ubb(void)
Definition chip_info_fwtable.c:27
bool bh_chip_info_feature_noc_translation_en(void)
Definition chip_info_fwtable.c:74
uint32_t bh_chip_info_vendor_id(void)
Definition chip_info_fwtable.c:44
bool bh_chip_info_feature_cg_en(void)
Definition chip_info_fwtable.c:69
__UINT32_TYPE__ uint32_t
__UINT64_TYPE__ uint64_t
__UINT8_TYPE__ uint8_t
Definition chip_info.h:27
uint32_t num_serdes
Definition chip_info.h:29
uint32_t gen5_eq_pset_req_vec
Definition chip_info.h:39
uint32_t gen3_eq_pset_req_vec
Definition chip_info.h:35
uint32_t pcie_bar0_size
Definition chip_info.h:31
uint32_t pcie_bar4_size
Definition chip_info.h:33
uint32_t gen4_eq_pset_req_vec
Definition chip_info.h:38
bh_pcie_mode_t pcie_mode
Definition chip_info.h:28
uint32_t max_pcie_speed
Definition chip_info.h:30
uint32_t gen3_eq_fb_mode
Definition chip_info.h:36
uint32_t pcie_bar2_size
Definition chip_info.h:32
Definition chip_info.h:43
uint64_t low
Definition chip_info.h:44
uint32_t high
Definition chip_info.h:45