summaryrefslogtreecommitdiff
path: root/include/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/system.h')
-rw-r--r--include/system.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h
index cd42de01f7..65b802e775 100644
--- a/include/system.h
+++ b/include/system.h
@@ -172,6 +172,16 @@ const char *system_get_chip_vendor(void);
const char *system_get_chip_name(void);
const char *system_get_chip_revision(void);
+/**
+ * Get/Set VbNvContext in non-volatile storage. The block should be 16 bytes
+ * long, which is the current size of VbNvContext block.
+ *
+ * @param block Pointer to a buffer holding VbNvContext.
+ * @return 0 on success, !0 on error.
+ */
+int system_get_vbnvcontext(uint8_t *block);
+int system_set_vbnvcontext(const uint8_t *block);
+
/* TODO: request sleep. How do we want to handle transitioning
* to/from low-power states? */