summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-10-04 14:59:54 +0800
committerCommit Bot <commit-bot@chromium.org>2019-10-21 04:48:31 +0000
commit7a58d44d2b241a739bb5d10daca1ae5a98f92544 (patch)
tree81a222e12dc297da066b35e2f358844c1fadc02d
parenta2d9c10ad4a3569e05690c396b93e7b21813b347 (diff)
downloadvboot-7a58d44d2b241a739bb5d10daca1ae5a98f92544.tar.gz
vboot: remove some more junk from vboot_struct.h
BUG=b:124141368 TEST=make clean && make runtests BRANCH=none Change-Id: If322882e53aabb9e488a393a0053f16fcabd626c Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1839732 Tested-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
-rw-r--r--firmware/include/vboot_struct.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/firmware/include/vboot_struct.h b/firmware/include/vboot_struct.h
index 5d633a3f..1451a1cf 100644
--- a/firmware/include/vboot_struct.h
+++ b/firmware/include/vboot_struct.h
@@ -258,14 +258,6 @@ typedef struct VbKernelPreambleHeader {
/* NvStorage uses 64-byte record, not 16-byte */
#define VBSD_NVDATA_V2 0x00100000
-/*
- * Supported flags by header version. It's ok to add new flags while keeping
- * struct version 2 as long as flag-NOT-present is the correct value for
- * existing hardware (Stumpy/Lumpy).
- */
-#define VBSD_FLAGS_VERSION_1 0x00000007 /* Alex, ZGB */
-#define VBSD_FLAGS_VERSION_2 0x00000F7F
-
/* Result codes for VbSharedDataHeader.check_fw_a_result (and b_result) */
#define VBSD_LF_CHECK_NOT_DONE 0
#define VBSD_LF_CHECK_DEV_MISMATCH 1
@@ -334,10 +326,6 @@ typedef struct VbSharedDataKernelPart {
/* Number of kernel partitions to track per call. Must be power of 2. */
#define VBSD_MAX_KERNEL_PARTS 8
-/* Flags for VbSharedDataKernelCall.flags */
-/* Error initializing TPM in recovery mode */
-#define VBSD_LK_FLAG_REC_TPM_INIT_ERROR 0x00000001
-
/* Result codes for VbSharedDataKernelCall.check_result */
#define VBSD_LKC_CHECK_NOT_DONE 0
#define VBSD_LKC_CHECK_DEV_SWITCH_MISMATCH 1
@@ -489,16 +477,11 @@ typedef struct VbSharedDataHeader {
*/
} __attribute__((packed)) VbSharedDataHeader;
-/*
- * Size of VbSharedDataheader for each version
- *
- * TODO: crossystem needs not to fail if called on a v1 system where
- * sizeof(VbSharedDataHeader) was smaller
- */
+/* Size of VbSharedDataheader for each version */
#define VB_SHARED_DATA_HEADER_SIZE_V1 1072
#define VB_SHARED_DATA_HEADER_SIZE_V2 1096
-#define VB_SHARED_DATA_VERSION 2 /* Version for struct_version */
+#define VB_SHARED_DATA_VERSION 2 /* Version for struct_version */
#ifdef __cplusplus
}