1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
5 * Taken from the coreboot version
8 #ifndef __COREBOOT_TIMESTAMP_H__
9 #define __COREBOOT_TIMESTAMP_H__
12 /* coreboot specific timestamp IDs */
13 TS_START_ROMSTAGE = 1,
14 TS_BEFORE_INITRAM = 2,
19 TS_START_RAMSTAGE = 10,
20 TS_DEVICE_ENUMERATE = 30,
21 TS_DEVICE_CONFIGURE = 40,
22 TS_DEVICE_ENABLE = 50,
23 TS_DEVICE_INITIALIZE = 60,
28 TS_ACPI_WAKE_JUMP = 98,
29 TS_SELFBOOT_JUMP = 99,
31 /* U-Boot entry IDs start at 1000 */
32 TS_U_BOOT_INITTED = 1000, /* This is where u-boot starts */
33 TS_U_BOOT_START_KERNEL = 1100, /* Right before jumping to kernel. */
36 void timestamp_init(void);
37 void timestamp_add(enum timestamp_id id, uint64_t ts_time);
38 void timestamp_add_now(enum timestamp_id id);
41 * timestamp_add_to_bootstage - Add important coreboot timestamps to bootstage
43 * @return 0 if ok, -1 if no timestamps were found
45 int timestamp_add_to_bootstage(void);