TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
init.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Tenstorrent AI ULC
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef LIB_TENSTORRENT_BH_ARC_INIT_H_
7#define LIB_TENSTORRENT_BH_ARC_INIT_H_
8
9#include "status_reg.h"
10
11#include <stdint.h>
12
13#define SCRATCHPAD_SIZE CONFIG_TT_BH_ARC_SCRATCHPAD_SIZE
14
21
22typedef enum {
25} FWID;
26
27/*
28 * Identifiers for the SMC init stages. Each enum value is the bit position
29 * in STATUS_ERROR_STATUS0 for that stage's failure.
30 */
39
41
49void record_init_failure(enum init_stage_id stage);
50
51#endif
init_stage_id
Definition init.h:31
@ INIT_STAGE_CABLE_FAULT
Definition init.h:33
@ INIT_STAGE_TENSIX
Definition init.h:34
@ INIT_STAGE_GDDR_TRAIN
Definition init.h:36
@ INIT_STAGE_REGULATOR
Definition init.h:32
@ INIT_STAGE_MRISC_LOAD
Definition init.h:35
@ INIT_STAGE_COUNT
Definition init.h:37
void record_init_failure(enum init_stage_id stage)
Record a failure from an init function.
Definition reset.c:79
HWInitStatus
Definition init.h:15
@ kHwInitNotStarted
Definition init.h:16
@ kHwInitStarted
Definition init.h:17
@ kHwInitError
Definition init.h:19
@ kHwInitDone
Definition init.h:18
FWID
Definition init.h:22
@ FW_ID_SMC_RECOVERY
Definition init.h:24
@ FW_ID_SMC_NORMAL
Definition init.h:23
uint32_t error_status0
Definition reset.c:77
__UINT32_TYPE__ uint32_t