TT Zephyr Platforms 19.5.0-rc1
Tenstorrent Firmware
Loading...
Searching...
No Matches
bh_fwtable.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_FWTABLE_H
7#define BH_FWTABLE_H
8
9#include <stdint.h>
10#include <zephyr/device.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16/*
17 * FIXME: these proto files as well as all of the entities within them need to be namespaced
18 * with a tt_bh_fwtable_ prefix (or something unique and similar).
19 */
20#include "fw_table.pb.h"
21#include "flash_info.pb.h"
22#include "read_only.pb.h"
23
24const FwTable *tt_bh_fwtable_get_fw_table(const struct device *dev);
25const FlashInfoTable *tt_bh_fwtable_get_flash_info_table(const struct device *dev);
26const ReadOnly *tt_bh_fwtable_get_read_only_table(const struct device *dev);
27
28/* Board type values extracted from board_id */
29#define BOARDTYPE_ORION 0x37
30#define BOARDTYPE_P100A 0x43
31#define BOARDTYPE_P150A 0x40
32#define BOARDTYPE_P150 0x41
33#define BOARDTYPE_P150C 0x42
34#define BOARDTYPE_P300 0x44
35#define BOARDTYPE_P300A 0x45
36#define BOARDTYPE_P300C 0x46
37#define BOARDTYPE_UBB 0x47
38
47
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* BH_FWTABLE_H*/
uint32_t tt_bh_fwtable_get_asic_location(const struct device *dev)
uint8_t tt_bh_fwtable_get_board_type(const struct device *dev)
const ReadOnly * tt_bh_fwtable_get_read_only_table(const struct device *dev)
const FwTable * tt_bh_fwtable_get_fw_table(const struct device *dev)
PcbType tt_bh_fwtable_get_pcb_type(const struct device *dev)
bool tt_bh_fwtable_is_p300_left_chip(void)
const FlashInfoTable * tt_bh_fwtable_get_flash_info_table(const struct device *dev)
PcbType
Definition bh_fwtable.h:39
@ PcbTypeP100
Definition bh_fwtable.h:41
@ PcbTypeUBB
Definition bh_fwtable.h:44
@ PcbTypeOrion
Definition bh_fwtable.h:40
@ PcbTypeP150
Definition bh_fwtable.h:42
@ PcbTypeUnknown
Definition bh_fwtable.h:45
@ PcbTypeP300
Definition bh_fwtable.h:43
__UINT32_TYPE__ uint32_t
__UINT8_TYPE__ uint8_t