Software APIs
rom_ctrl_regs.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Generated register defines for rom_ctrl
4 */
5
6// Copyright information found in source file:
7// Copyright lowRISC contributors (OpenTitan project).
8
9// Licensing information found in source file:
10// Licensed under the Apache License, Version 2.0, see LICENSE for details.
11// SPDX-License-Identifier: Apache-2.0
12
13#ifndef _ROM_CTRL_REG_DEFS_
14#define _ROM_CTRL_REG_DEFS_
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19// Number of alerts
20#define ROM_CTRL_PARAM_NUM_ALERTS 1
21
22// Register width
23#define ROM_CTRL_PARAM_REG_WIDTH 32
24
25// Alert Test Register
26#define ROM_CTRL_ALERT_TEST_REG_OFFSET 0x0
27#define ROM_CTRL_ALERT_TEST_REG_RESVAL 0x80000000u
28#define ROM_CTRL_ALERT_TEST_FATAL_BIT 0
29#define ROM_CTRL_ALERT_TEST_REGWEN_BIT 31
30
31// The cause of a fatal alert.
32#define ROM_CTRL_FATAL_ALERT_CAUSE_REG_OFFSET 0x4
33#define ROM_CTRL_FATAL_ALERT_CAUSE_REG_RESVAL 0x0u
34#define ROM_CTRL_FATAL_ALERT_CAUSE_CHECKER_ERROR_BIT 0
35#define ROM_CTRL_FATAL_ALERT_CAUSE_INTEGRITY_ERROR_BIT 1
36
37// The digest computed from the contents of ROM (common parameters)
38#define ROM_CTRL_DIGEST_DIGEST_FIELD_WIDTH 32
39#define ROM_CTRL_DIGEST_MULTIREG_COUNT 8
40
41// The digest computed from the contents of ROM
42#define ROM_CTRL_DIGEST_0_REG_OFFSET 0x8
43#define ROM_CTRL_DIGEST_0_REG_RESVAL 0x0u
44
45// The digest computed from the contents of ROM
46#define ROM_CTRL_DIGEST_1_REG_OFFSET 0xc
47#define ROM_CTRL_DIGEST_1_REG_RESVAL 0x0u
48
49// The digest computed from the contents of ROM
50#define ROM_CTRL_DIGEST_2_REG_OFFSET 0x10
51#define ROM_CTRL_DIGEST_2_REG_RESVAL 0x0u
52
53// The digest computed from the contents of ROM
54#define ROM_CTRL_DIGEST_3_REG_OFFSET 0x14
55#define ROM_CTRL_DIGEST_3_REG_RESVAL 0x0u
56
57// The digest computed from the contents of ROM
58#define ROM_CTRL_DIGEST_4_REG_OFFSET 0x18
59#define ROM_CTRL_DIGEST_4_REG_RESVAL 0x0u
60
61// The digest computed from the contents of ROM
62#define ROM_CTRL_DIGEST_5_REG_OFFSET 0x1c
63#define ROM_CTRL_DIGEST_5_REG_RESVAL 0x0u
64
65// The digest computed from the contents of ROM
66#define ROM_CTRL_DIGEST_6_REG_OFFSET 0x20
67#define ROM_CTRL_DIGEST_6_REG_RESVAL 0x0u
68
69// The digest computed from the contents of ROM
70#define ROM_CTRL_DIGEST_7_REG_OFFSET 0x24
71#define ROM_CTRL_DIGEST_7_REG_RESVAL 0x0u
72
73// The expected digest, stored in the top words of ROM (common parameters)
74#define ROM_CTRL_EXP_DIGEST_DIGEST_FIELD_WIDTH 32
75#define ROM_CTRL_EXP_DIGEST_MULTIREG_COUNT 8
76
77// The expected digest, stored in the top words of ROM
78#define ROM_CTRL_EXP_DIGEST_0_REG_OFFSET 0x28
79#define ROM_CTRL_EXP_DIGEST_0_REG_RESVAL 0x0u
80
81// The expected digest, stored in the top words of ROM
82#define ROM_CTRL_EXP_DIGEST_1_REG_OFFSET 0x2c
83#define ROM_CTRL_EXP_DIGEST_1_REG_RESVAL 0x0u
84
85// The expected digest, stored in the top words of ROM
86#define ROM_CTRL_EXP_DIGEST_2_REG_OFFSET 0x30
87#define ROM_CTRL_EXP_DIGEST_2_REG_RESVAL 0x0u
88
89// The expected digest, stored in the top words of ROM
90#define ROM_CTRL_EXP_DIGEST_3_REG_OFFSET 0x34
91#define ROM_CTRL_EXP_DIGEST_3_REG_RESVAL 0x0u
92
93// The expected digest, stored in the top words of ROM
94#define ROM_CTRL_EXP_DIGEST_4_REG_OFFSET 0x38
95#define ROM_CTRL_EXP_DIGEST_4_REG_RESVAL 0x0u
96
97// The expected digest, stored in the top words of ROM
98#define ROM_CTRL_EXP_DIGEST_5_REG_OFFSET 0x3c
99#define ROM_CTRL_EXP_DIGEST_5_REG_RESVAL 0x0u
100
101// The expected digest, stored in the top words of ROM
102#define ROM_CTRL_EXP_DIGEST_6_REG_OFFSET 0x40
103#define ROM_CTRL_EXP_DIGEST_6_REG_RESVAL 0x0u
104
105// The expected digest, stored in the top words of ROM
106#define ROM_CTRL_EXP_DIGEST_7_REG_OFFSET 0x44
107#define ROM_CTRL_EXP_DIGEST_7_REG_RESVAL 0x0u
108
109#ifdef __cplusplus
110} // extern "C"
111#endif
112#endif // _ROM_CTRL_REG_DEFS_
113// End generated register defines for rom_ctrl