TT-System-Firmware APIs 19.11.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
ccfgovr.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Tenstorrent AI ULC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef CCFGOVR_H
8#define CCFGOVR_H
9
10#include <stddef.h>
11#include <stdint.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#define CCFGOVR_TAG_A "ccfgovra"
18#define CCFGOVR_TAG_B "ccfgovrb"
19
20#define CCFGOVR_MAGIC 0x564F4343U
21#define CCFGOVR_SEQ_ERASED 0xFFFFFFFFU
22
23#define CCFGOVR_MAX_BANK_LEN 4096U
24
25/*
26 * Bump on any layout-changing edit to struct ccfgovr_bank_hdr
27 * or to the on-flash framing.
28 */
29#define CCFGOVR_HDR_VERSION 0U
30
32 uint32_t magic; /* must equal CCFGOVR_MAGIC */
33 uint32_t seq; /* monotonic; CCFGOVR_SEQ_ERASED is reserved */
34 uint32_t body_len; /* protobuf body length in bytes; multiple of 4 */
35 uint32_t version; /* reserved; must equal CCFGOVR_HDR_VERSION */
36 uint32_t cksum; /* CRC32 (IEEE 802.3) over hdr[0 .. offsetof(cksum)) || body[] */
37};
38
39#define CCFGOVR_MAX_BODY_LEN (CCFGOVR_MAX_BANK_LEN - sizeof(struct ccfgovr_bank_hdr))
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* CCFGOVR_H */
__UINT32_TYPE__ uint32_t
Definition ccfgovr.h:31
uint32_t magic
Definition ccfgovr.h:32
uint32_t body_len
Definition ccfgovr.h:34
uint32_t cksum
Definition ccfgovr.h:36
uint32_t seq
Definition ccfgovr.h:33
uint32_t version
Definition ccfgovr.h:35