Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1509)

Unified Diff: firmware/include/load_firmware_fw.h

Issue 2865015: Add boot flags to LoadFirmware(), for TPM init (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | firmware/lib/vboot_firmware.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/include/load_firmware_fw.h
diff --git a/firmware/include/load_firmware_fw.h b/firmware/include/load_firmware_fw.h
index 8ba67cf7b8e53da31175e0e55b38eb7d0eff6d34..2332564bc923678aa43309008a609206b6e58277 100644
--- a/firmware/include/load_firmware_fw.h
+++ b/firmware/include/load_firmware_fw.h
@@ -20,6 +20,9 @@
#define LOAD_FIRMWARE_SUCCESS 0 /* Success */
#define LOAD_FIRMWARE_RECOVERY 1 /* Reboot to recovery mode */
+/* Boot flags for LoadFirmware().boot_flags */
+#define BOOT_FLAG_DEVELOPER UINT64_C(0x01) /* Developer switch is on */
+
typedef struct LoadFirmwareParams {
/* Inputs to LoadFirmware() */
void *firmware_root_key_blob; /* Key used to sign firmware header */
@@ -35,6 +38,7 @@ typedef struct LoadFirmwareParams {
* buffer, in bytes. On output, this
* will contain the actual key blob
* size placed into the buffer. */
+ uint64_t boot_flags; /* Boot flags */
/* Outputs from LoadFirmware(); valid only if LoadFirmware() returns
* LOAD_FIRMWARE_SUCCESS. */
« no previous file with comments | « no previous file | firmware/lib/vboot_firmware.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698