TT-System-Firmware APIs 19.13.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
35
36/* True if this is a UBB (Galaxy) board. Used to skip DMC cable-fault checks.
37 * Exposed as a semantic predicate rather than a raw board-type byte so that
38 * recovery code never needs to include the bh_fwtable / protobuf headers.
39 */
40bool bh_chip_info_is_ubb(void);
41
42/* Extra board power budget, in W, added to host-reported power. */
44
45/* Read-only board identity. */
48
49/* PCIe property table for instance @p pcie_inst (0 or 1). */
50void bh_chip_info_pci_property(uint8_t pcie_inst, struct bh_pci_property *out);
51
52/* Feature-enable bits. */
55
56#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:47
uint64_t bh_chip_info_board_id(void)
Definition chip_info_fwtable.c:37
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
uint32_t bh_chip_info_additional_board_power(void)
Definition chip_info_fwtable.c:32
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:68
uint32_t bh_chip_info_vendor_id(void)
Definition chip_info_fwtable.c:42
bool bh_chip_info_feature_cg_en(void)
Definition chip_info_fwtable.c:63
__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 pcie_bar0_size
Definition chip_info.h:31
uint32_t pcie_bar4_size
Definition chip_info.h:33
bh_pcie_mode_t pcie_mode
Definition chip_info.h:28
uint32_t max_pcie_speed
Definition chip_info.h:30
uint32_t pcie_bar2_size
Definition chip_info.h:32