summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-07-13 12:00:49 -0500
committerAaron Durbin <adurbin@chromium.org>2016-07-15 08:35:15 +0200
commitb743b1a843e1204ca27deb04050b0a0f6c828add (patch)
treebf864861ec280290601bb00c2a1cebbec553dfa2
parentf1e22d5c39cd341f90463908a6cfe5db4fecacda (diff)
downloadcoreboot-b743b1a843e1204ca27deb04050b0a0f6c828add.tar.xz
lib: add poweroff() declaration
Add a function to power off the system within the halt.h header. BUG=chrome-os-partner:54977 Change-Id: I21ca9de38d4ca67c77272031cc20f3f1d015f8fa Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/15684 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins)
-rw-r--r--src/include/halt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/halt.h b/src/include/halt.h
index d31c2ca181..7ecd41a6cd 100644
--- a/src/include/halt.h
+++ b/src/include/halt.h
@@ -25,4 +25,8 @@
*/
void __attribute__((noreturn)) halt(void);
#endif /* __ROMCC__ */
+
+/* Power off the system. */
+void poweroff(void);
+
#endif /* __HALT_H__ */