forked from tenstorrent/tt-kmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ttkmd_arc_if.h
47 lines (40 loc) · 1.14 KB
/
ttkmd_arc_if.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// SPDX-FileCopyrightText: © 2023 Tenstorrent Inc.
// SPDX-License-Identifier: GPL-2.0-only
// *************************************** //
// THIS FILE IS AUTO GENERATED //
// *************************************** //
#ifndef _TTKMD_ARC_IF_H_
#define _TTKMD_ARC_IF_H_
#ifdef __KERNEL__
#include <linux/types.h>
#else
#include <stdint.h>
#endif
#define TTKMD_ARC_MAGIC_NUMBER_0 (0x54544b4d)
#define TTKMD_ARC_MAGIC_NUMBER_1 (0x44415243)
#define TTKMD_ARC_IF_VERSION 0x6
typedef struct {
uint32_t magic_number[2];
uint32_t version;
uint8_t stage2_init;
uint8_t padding0[3];
uint8_t aiclk_ppm_en;
uint8_t padding1[3];
uint32_t aiclk_ppm_ovr;
uint8_t ddr_train_en;
uint8_t ddr_test_mode;
uint8_t padding2[2];
uint32_t ddr_freq_ovr;
uint8_t watchdog_fw_load;
uint8_t watchdog_fw_en;
uint8_t smbus_fw_load;
uint8_t smbus_fw_en;
uint32_t watchdog_fw_reset_vec;
uint32_t feature_disable_ovr;
uint32_t smbus_fw_reset_vec;
} ttkmd_arc_if_t; // 12 * 4 = 48B
typedef union {
uint32_t val[0x1000 / sizeof(uint32_t)];
ttkmd_arc_if_t f;
} ttkmd_arc_if_u; // 1024 * 4 = 4096B
#endif