TT Zephyr Platforms
18.11.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
post_code.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Tenstorrent AI ULC
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef TENSTORRENT_POST_CODE_H_
8
#define TENSTORRENT_POST_CODE_H_
9
10
#include <
stdint.h
>
11
12
#define POST_CODE_PREFIX 0xc0de
13
14
/* Post code sources */
15
#define POST_CODE_SRC_CMFW 0x0
16
17
/* List of post codes */
18
#define POST_CODE_ARC_INIT_STEP0 0x10
19
#define POST_CODE_ARC_INIT_STEP1 0x11
20
#define POST_CODE_ARC_INIT_STEP2 0x12
21
#define POST_CODE_ARC_INIT_STEP3 0x13
22
#define POST_CODE_ARC_INIT_STEP4 0x14
23
#define POST_CODE_ARC_INIT_STEP5 0x15
24
#define POST_CODE_ARC_INIT_STEP6 0x16
25
#define POST_CODE_ARC_INIT_STEP7 0x17
26
#define POST_CODE_ARC_INIT_STEP8 0x18
27
#define POST_CODE_ARC_INIT_STEP9 0x19
28
#define POST_CODE_ARC_INIT_STEPA 0x1A
29
#define POST_CODE_ARC_INIT_STEPB 0x1B
30
#define POST_CODE_ARC_INIT_STEPC 0x1C
31
#define POST_CODE_ARC_INIT_STEPD 0x1D
32
#define POST_CODE_ARC_INIT_STEPE 0x1E
33
#define POST_CODE_ARC_INIT_STEPF 0x1F
34
35
#define POST_CODE_ZEPHYR_INIT_DONE 0x20
36
37
#define POST_CODE_ARC_MSG_HANDLE_START 0x30
38
#define POST_CODE_ARG_MSG_QUEUE_START 0x31
39
/* values 0x31-0x3E are used for message queues 0-13 */
40
#define POST_CODE_ARG_MSG_QUEUE(i) (POST_CODE_ARG_MSG_QUEUE_START + (i))
41
#define POST_CODE_ARC_MSG_HANDLE_DONE 0x3F
42
43
#define POST_CODE_TELEMETRY_START 0x40
44
#define POST_CODE_TELEMETRY_END 0x41
45
46
#ifdef __cplusplus
47
extern
"C"
{
48
#endif
49
50
void
SetPostCode
(
uint8_t
fw_id,
uint16_t
post_code);
51
52
#ifdef __cplusplus
53
}
54
#endif
55
56
#endif
SetPostCode
void SetPostCode(uint8_t fw_id, uint16_t post_code)
Definition
post_code.c:12
stdint.h
uint8_t
__UINT8_TYPE__ uint8_t
uint16_t
__UINT16_TYPE__ uint16_t
tenstorrent
post_code.h
Generated by
1.14.0