1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved. 4 * 5 * Taken from the coreboot version 6 */ 7 8 #ifndef __COREBOOT_TIMESTAMP_H__ 9 #define __COREBOOT_TIMESTAMP_H__ 10 11 #include <asm/cb_sysinfo.h> 12 13 void timestamp_init(void); 14 void timestamp_add(enum timestamp_id id, uint64_t ts_time); 15 void timestamp_add_now(enum timestamp_id id); 16 17 /** 18 * timestamp_add_to_bootstage - Add important coreboot timestamps to bootstage 19 * 20 * @return 0 if ok, -1 if no timestamps were found 21 */ 22 int timestamp_add_to_bootstage(void); 23 24 #endif 25