summaryrefslogtreecommitdiffstats
path: root/src/include/post.h
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-01-04 16:15:50 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-04-20 06:16:54 +0000
commitce39ba97bc1906e7fbfec09312fcfec2919cf03e (patch)
treeb87ea0d3fd38f847aba267a0ae79ea9d90e4e376 /src/include/post.h
parent229d5b2f46af0c3c1472311c715c2191dfe7cbbd (diff)
downloadcoreboot-ce39ba97bc1906e7fbfec09312fcfec2919cf03e.tar.gz
coreboot-ce39ba97bc1906e7fbfec09312fcfec2919cf03e.tar.bz2
coreboot-ce39ba97bc1906e7fbfec09312fcfec2919cf03e.zip
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>
Diffstat (limited to 'src/include/post.h')
-rw-r--r--src/include/post.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/include/post.h b/src/include/post.h
new file mode 100644
index 000000000000..5c1e816ea7d1
--- /dev/null
+++ b/src/include/post.h
@@ -0,0 +1,28 @@
+/* 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