summaryrefslogtreecommitdiff
path: root/include/chromeos/vboot_nvstorage_helper.h
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@chromium.org>2011-05-10 15:07:57 +0800
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:21 -0700
commitbdfc6085f392252b2b900af4ff3e04c70d39b406 (patch)
tree71b9e361eba7fb01780c847184c50be9f00f83fa /include/chromeos/vboot_nvstorage_helper.h
parent7f88d17a7e3a94c2bfde724ebdf810ae67eb8df1 (diff)
Developer firmware template and refactor common codes
This commit defines a template of developer firmware, and factors out common codes that will be used between normal and developer firmware. BUG=chromium-os:12191 TEST=manual 1. CROSS_COMPILE=armv7a-cros-linux-gnueabi- ./MAKEALL chromeos 2. Run normal and recovery boot flow on kaen Change-Id: Ib3db0aaa09a5ca964d521af6323ab4366fb7c9bd Reviewed-on: http://gerrit.chromium.org/gerrit/586 Reviewed-by: Che-Liang Chiou <clchiou@chromium.org> Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'include/chromeos/vboot_nvstorage_helper.h')
-rw-r--r--include/chromeos/vboot_nvstorage_helper.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/chromeos/vboot_nvstorage_helper.h b/include/chromeos/vboot_nvstorage_helper.h
index 4fe29f4f1a3..f897feaa8af 100644
--- a/include/chromeos/vboot_nvstorage_helper.h
+++ b/include/chromeos/vboot_nvstorage_helper.h
@@ -23,14 +23,21 @@
*
* See vboot_reference/firmware/include/vboot_nvstorage.h
*/
-int read_nvcontext(VbNvContext *vnc);
-int write_nvcontext(VbNvContext *vnc);
+int read_nvcontext(VbNvContext *nvcxt);
+int write_nvcontext(VbNvContext *nvcxt);
/*
- * Clear the recovery request in the non-volatile storage.
+ * Set the recovery request in the non-volatile storage.
*
* Return zero if success, non-zero if fail.
*/
int clear_recovery_request(void);
+/*
+ * Set the recovery request to <reason> and reboot. This function never returns.
+ *
+ * If <nvcxt> is NULL, this function loads the nvcxt from non-volatile storage.
+ */
+void reboot_to_recovery_mode(VbNvContext *nvcxt, uint32_t reason);
+
#endif /* CHROMEOS_VBOOT_NVSTORAGE_HELPER_H_ */