2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2012-10-23 18:04:33 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
|
2020-04-08 22:57:27 +00:00
|
|
|
*
|
|
|
|
* Taken from the coreboot version
|
2012-10-23 18:04:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __COREBOOT_TIMESTAMP_H__
|
|
|
|
#define __COREBOOT_TIMESTAMP_H__
|
|
|
|
|
2021-03-15 05:00:19 +00:00
|
|
|
#include <asm/cb_sysinfo.h>
|
2012-10-23 18:04:33 +00:00
|
|
|
|
|
|
|
void timestamp_init(void);
|
|
|
|
void timestamp_add(enum timestamp_id id, uint64_t ts_time);
|
|
|
|
void timestamp_add_now(enum timestamp_id id);
|
|
|
|
|
2013-04-17 16:13:47 +00:00
|
|
|
/**
|
|
|
|
* timestamp_add_to_bootstage - Add important coreboot timestamps to bootstage
|
|
|
|
*
|
|
|
|
* @return 0 if ok, -1 if no timestamps were found
|
|
|
|
*/
|
|
|
|
int timestamp_add_to_bootstage(void);
|
|
|
|
|
2012-10-23 18:04:33 +00:00
|
|
|
#endif
|