Software APIs
sw
device
tests
penetrationtests
json
rom_fi_commands.h
1
// Copyright lowRISC contributors (OpenTitan project).
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
// SPDX-License-Identifier: Apache-2.0
4
5
#ifndef OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_JSON_ROM_FI_COMMANDS_H_
6
#define OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_JSON_ROM_FI_COMMANDS_H_
7
#include "sw/device/lib/ujson/ujson_derive.h"
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
12
// clang-format off
13
14
#define ROMFI_SUBCOMMAND(_, value) \
15
value(_, Init) \
16
value(_, Read)
17
UJSON_SERDE_ENUM(RomFiSubcommand, rom_fi_subcommand_t, ROMFI_SUBCOMMAND);
18
19
20
#define ROMFI_DIGEST(field, string) \
21
field(digest, uint32_t, 8) \
22
field(alerts, uint32_t, 3) \
23
field(err_status, uint32_t) \
24
field(ast_alerts, uint32_t, 2)
25
UJSON_SERDE_STRUCT(RomFiDigest, rom_fi_digest_t, ROMFI_DIGEST);
26
27
// clang-format on
28
29
#ifdef __cplusplus
30
}
31
#endif
32
#endif
// OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_JSON_ROM_FI_COMMANDS_H_
Return to
OpenTitan Documentation