coreboot-kgpe-d16/src/include/post.h
Kyösti Mälkki ce39ba97bc drivers/pc80/rtc: Reorganize prototypes
Change-Id: Idea18f437c31ebe83dd61a185e614106a1f8f976
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38199
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
2020-04-20 06:16:54 +00:00

28 lines
587 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */
#ifndef __POST_H__
#define __POST_H__
#include <stdint.h>
#include <device/device.h>
void cmos_post_init(void);
void cmos_post_code(u8 value);
void cmos_post_extra(u32 value);
void cmos_post_path(const struct device *dev);
int cmos_post_previous_boot(u8 *code, u32 *extra);
static inline void post_log_path(const struct device *dev)
{
if (CONFIG(CMOS_POST) && dev)
cmos_post_path(dev);
}
static inline void post_log_clear(void)
{
if (CONFIG(CMOS_POST))
cmos_post_extra(0);
}
#endif