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

Unified Diff: firmware/include/load_firmware_fw.h

Issue 6626045: Pass VbSharedData between LoadFirmware() and LoadKernel() (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Fixes from code review. Created 9 years, 9 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/include/load_kernel_fw.h » ('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 271063d7de7da1960a9e7994c4679565c1917a98..1e42f1c9c2fe67b91779cdcfca54ff0f033bcb04 100644
--- a/firmware/include/load_firmware_fw.h
+++ b/firmware/include/load_firmware_fw.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2011 The Chromium OS Authors. All rights reserved.
+/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
@@ -12,10 +12,8 @@
#include "sysincludes.h"
#include "vboot_nvstorage.h"
-/* Recommended size of kernel_sign_key_blob in bytes, for
- * implementations which must preallocate a transfer buffer between
- * boot phases */
-#define LOAD_FIRMWARE_KEY_BLOB_REC_SIZE 2104
+/* Recommended size of shared_data_blob in bytes. */
+#define LOAD_FIRMWARE_SHARED_DATA_REC_SIZE 16384
/* Return codes for LoadFirmware() and S3Resume(). */
#define LOAD_FIRMWARE_SUCCESS 0 /* Success */
@@ -29,19 +27,21 @@
typedef struct LoadFirmwareParams {
/* Inputs to LoadFirmware() */
- void *firmware_root_key_blob; /* Key used to sign firmware header */
- void *verification_block_0; /* Key block + preamble for firmware 0 */
- void *verification_block_1; /* Key block + preamble for firmware 1 */
+ void* gbb_data; /* Pointer to GBB data */
+ uint64_t gbb_size; /* Size of GBB data in bytes */
+ void* verification_block_0; /* Key block + preamble for firmware 0 */
+ void* verification_block_1; /* Key block + preamble for firmware 1 */
uint64_t verification_size_0; /* Verification block 0 size in bytes */
uint64_t verification_size_1; /* Verification block 1 size in bytes */
- void *kernel_sign_key_blob; /* Destination buffer for key to use
- * when loading kernel. Pass this
+ void* shared_data_blob; /* Destination buffer for data shared between
+ * LoadFirmware() and LoadKernel(). Pass this
* data to LoadKernel() in
- * LoadKernelParams.header_sign_key_blob. */
- uint64_t kernel_sign_key_size; /* Size of kernel signing key blob
- * buffer, in bytes. On output, this
- * will contain the actual key blob
- * size placed into the buffer. */
+ * LoadKernelParams.shared_data_blob. */
+ uint64_t shared_data_size; /* Size of shared data blob buffer, in bytes.
+ * On output, this will contain the actual
+ * data size placed into the buffer. Caller
+ * need only pass this much data to
+ * LoadKernel().*/
uint64_t boot_flags; /* Boot flags */
VbNvContext* nv_context; /* Context for NV storage. nv_context->raw
* must be filled before calling
« no previous file with comments | « no previous file | firmware/include/load_kernel_fw.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698