2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
6 * SPDX-License-Identifier: GPL-2.0
9 #ifndef __COREBOOT_TIMESTAMP_H__
10 #define __COREBOOT_TIMESTAMP_H__
13 /* coreboot specific timestamp IDs */
14 TS_START_ROMSTAGE = 1,
15 TS_BEFORE_INITRAM = 2,
20 TS_START_RAMSTAGE = 10,
21 TS_DEVICE_ENUMERATE = 30,
22 TS_DEVICE_CONFIGURE = 40,
23 TS_DEVICE_ENABLE = 50,
24 TS_DEVICE_INITIALIZE = 60,
29 TS_ACPI_WAKE_JUMP = 98,
30 TS_SELFBOOT_JUMP = 99,
32 /* U-Boot entry IDs start at 1000 */
33 TS_U_BOOT_INITTED = 1000, /* This is where u-boot starts */
34 TS_U_BOOT_START_KERNEL = 1100, /* Right before jumping to kernel. */
37 void timestamp_init(void);
38 void timestamp_add(enum timestamp_id id, uint64_t ts_time);
39 void timestamp_add_now(enum timestamp_id id);
42 * timestamp_add_to_bootstage - Add important coreboot timestamps to bootstage
44 * @return 0 if ok, -1 if no timestamps were found
46 int timestamp_add_to_bootstage(void);