Debian Codegraph @

src/include/bootblock_common.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef __BOOTBLOCK_COMMON_H
4 #define __BOOTBLOCK_COMMON_H
5
6 #include <arch/cpu.h>
7 #include <main_decl.h>
8 #include <timestamp.h>
9 #include <types.h>
10
11 /*
12 * These are defined as weak no-ops that can be overridden by mainboard/SoC.
13 * The 'early' variants are called prior to console initialization. Also, the
14 * SoC functions are called prior to the mainboard functions.
15 */
16 void decompressor_soc_init(void);
17 void bootblock_mainboard_early_init(void);
18 void bootblock_mainboard_init(void);
19 void bootblock_soc_early_init(void);
20 void bootblock_soc_init(void);
21
22 /*
23 * C code entry point for the boot block.
24 */
25 asmlinkage void bootblock_c_entry(uint64_t base_timestamp);
26 asmlinkage void bootblock_c_entry_bist(uint64_t base_timestamp, uint32_t bist);
27
28 /* To be used when APs execute through bootblock too. */
29 asmlinkage void ap_bootblock_c_entry(void);
30
31 void bootblock_main_with_basetime(uint64_t base_timestamp);
32 void bootblock_main_with_timestamp(uint64_t base_timestamp,
33 struct timestamp_entry *timestamps, size_t num_timestamps);
34
35 /* This is the argument structure passed from decompressor to bootblock. */
36 struct bootblock_arg {
37 uint64_t base_timestamp;
38 void *metadata_hash_anchor;
39 uint32_t num_timestamps;
40 struct timestamp_entry timestamps[];
41 };
42
43 #endif /* __BOOTBLOCK_COMMON_H */