TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
tt_bundle_loader.h File Reference
#include <errno.h>
#include <stdint.h>
#include <zephyr/toolchain.h>
Include dependency graph for tt_bundle_loader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  fw_bundle_lc_state
 Lifecycle state selection This field controls whether or not this image is loaded on a device based on the lifecycle state of that device. This is only enforced when secure boot is enabled. More...
union  fw_bundle_auth_flags
 Authenticated flags field Some sub-fields in flags are subject to bits in the selector_bits field. More...
union  fw_bundle_public_key_sel
union  fw_bundle_sem_ver
union  fw_bundle_unauthed_flags
struct  fw_bundle_manifest
struct  fw_bundle_toc_entry
struct  fw_bundle_toc
 The table of contents present in the FW bundle payload. More...

Macros

#define FW_BUNDLE_MANIFEST_UNUSED_WORD   (0xA5A5A5A5U)
 Indicates a word in the manifest is unused.
#define MANIFEST_ID_BL1   (0x314c4254U)
 "TBL1" - BL1 manifest
#define MANIFEST_ID_MIS   (0x324c4254U)
 "TBL2" - MIS manifest
#define FW_BUNDLE_TOC_ID   (0x434f5450U)
 "PTOC" - FW_BUNDLE_TOC_ID
#define TT_BUN2_STAGING_AREA_ADDR   0xc0066400UL
 Base address of the BUN2 staging area in SMC local address space.
#define TT_BUN3_STAGING_AREA_ADDR   0xc0066400UL
 Base address of the BUN3 staging area in SMC local address space.
#define FW_BUNDLE_ENCRYPTION_TYPE_AES   (0x01)
 AES-128-CBC.
#define FW_BUNDLE_SIGNATURE_TYPE_RSA   (0x01)
 RSA-3072, RSASSA-PKCS1-v1_5, SHA-256.
#define FW_BUNDLE_SIGNATURE_TYPE_ECC_P256   (0x02)
 ECC-P256.
#define FW_BUNDLE_FUSE_KEY_SEL_ROM   (0x0)
 Use key at key index from ROM.
#define FW_BUNDLE_FUSE_KEY_SEL_PUBK_HASH0   (0x1)
 Use PUBK_HASH0 from fuses.
#define FW_BUNDLE_FUSE_KEY_SEL_PUBK_HASH1   (0x2)
 Use PUBK_HASH1 from fuses.
#define FW_BUNDLE_FUSE_KEY_SEL_SOP_PUBK   (0x4)
 Use SoP_PUBK from fuses.
#define FW_BUNDLE_FUSE_KEY_SEL_SYS_PUBK   (0x5)
 Use SYS_PUBK from fuses.
#define FW_BUNDLE_IMG_TYPE_SEP_BL1   (0x0000314c42504553ULL)
 SEPBL1 image type.
#define FW_BUNDLE_IMG_TYPE_SEP_MIS   (0x0000324c42504553ULL)
 SEP Mission image type.
#define FW_BUNDLE_IMG_TYPE_SMC_BL0P5   (0x3550304c42434d53ULL)
 SMCBL0.5 image type.
#define FW_BUNDLE_IMG_TYPE_SMC_BL1   (0x0000314c42434d53ULL)
 SMC BL1 image type.
#define FW_BUNDLE_IMG_TYPE_SMC_MIS   (0x0000324c42434d53ULL)
 SMC mission image type.

Variables

struct fw_bundle_manifest __packed

Macro Definition Documentation

◆ FW_BUNDLE_ENCRYPTION_TYPE_AES

#define FW_BUNDLE_ENCRYPTION_TYPE_AES   (0x01)

AES-128-CBC.

◆ FW_BUNDLE_FUSE_KEY_SEL_PUBK_HASH0

#define FW_BUNDLE_FUSE_KEY_SEL_PUBK_HASH0   (0x1)

Use PUBK_HASH0 from fuses.

◆ FW_BUNDLE_FUSE_KEY_SEL_PUBK_HASH1

#define FW_BUNDLE_FUSE_KEY_SEL_PUBK_HASH1   (0x2)

Use PUBK_HASH1 from fuses.

◆ FW_BUNDLE_FUSE_KEY_SEL_ROM

#define FW_BUNDLE_FUSE_KEY_SEL_ROM   (0x0)

Use key at key index from ROM.

◆ FW_BUNDLE_FUSE_KEY_SEL_SOP_PUBK

#define FW_BUNDLE_FUSE_KEY_SEL_SOP_PUBK   (0x4)

Use SoP_PUBK from fuses.

◆ FW_BUNDLE_FUSE_KEY_SEL_SYS_PUBK

#define FW_BUNDLE_FUSE_KEY_SEL_SYS_PUBK   (0x5)

Use SYS_PUBK from fuses.

◆ FW_BUNDLE_IMG_TYPE_SEP_BL1

#define FW_BUNDLE_IMG_TYPE_SEP_BL1   (0x0000314c42504553ULL)

SEPBL1 image type.

◆ FW_BUNDLE_IMG_TYPE_SEP_MIS

#define FW_BUNDLE_IMG_TYPE_SEP_MIS   (0x0000324c42504553ULL)

SEP Mission image type.

◆ FW_BUNDLE_IMG_TYPE_SMC_BL0P5

#define FW_BUNDLE_IMG_TYPE_SMC_BL0P5   (0x3550304c42434d53ULL)

SMCBL0.5 image type.

◆ FW_BUNDLE_IMG_TYPE_SMC_BL1

#define FW_BUNDLE_IMG_TYPE_SMC_BL1   (0x0000314c42434d53ULL)

SMC BL1 image type.

◆ FW_BUNDLE_IMG_TYPE_SMC_MIS

#define FW_BUNDLE_IMG_TYPE_SMC_MIS   (0x0000324c42434d53ULL)

SMC mission image type.

◆ FW_BUNDLE_MANIFEST_UNUSED_WORD

#define FW_BUNDLE_MANIFEST_UNUSED_WORD   (0xA5A5A5A5U)

Indicates a word in the manifest is unused.

◆ FW_BUNDLE_SIGNATURE_TYPE_ECC_P256

#define FW_BUNDLE_SIGNATURE_TYPE_ECC_P256   (0x02)

ECC-P256.

◆ FW_BUNDLE_SIGNATURE_TYPE_RSA

#define FW_BUNDLE_SIGNATURE_TYPE_RSA   (0x01)

RSA-3072, RSASSA-PKCS1-v1_5, SHA-256.

◆ FW_BUNDLE_TOC_ID

#define FW_BUNDLE_TOC_ID   (0x434f5450U)

"PTOC" - FW_BUNDLE_TOC_ID

◆ MANIFEST_ID_BL1

#define MANIFEST_ID_BL1   (0x314c4254U)

"TBL1" - BL1 manifest

◆ MANIFEST_ID_MIS

#define MANIFEST_ID_MIS   (0x324c4254U)

"TBL2" - MIS manifest

◆ TT_BUN2_STAGING_AREA_ADDR

#define TT_BUN2_STAGING_AREA_ADDR   0xc0066400UL

Base address of the BUN2 staging area in SMC local address space.

◆ TT_BUN3_STAGING_AREA_ADDR

#define TT_BUN3_STAGING_AREA_ADDR   0xc0066400UL

Base address of the BUN3 staging area in SMC local address space.

Variable Documentation

◆ __packed

struct occp_execute_image_response __packed