OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 * |
| 5 * Data structure of Google Binary Block (GBB) |
| 6 */ |
| 7 |
| 8 #ifndef VBOOT_REFERENCE_GBB_HEADER_H_ |
| 9 #define VBOOT_REFERENCE_GBB_HEADER_H_ |
| 10 |
| 11 #include <stdint.h> |
| 12 |
| 13 #define GBB_HEADER_SIZE (0x80) |
| 14 |
| 15 #define GBB_SIGNATURE "$GBB" |
| 16 #define GBB_SIGNATURE_SIZE (4) |
| 17 |
| 18 #define GBB_MAJOR_VER (0x01) |
| 19 #define GBB_MINOR_VER (0x00) |
| 20 |
| 21 #ifdef __cplusplus |
| 22 extern "C" { |
| 23 #endif // __cplusplus |
| 24 |
| 25 typedef struct GoogleBinaryBlockHeader { |
| 26 uint8_t signature[GBB_SIGNATURE_SIZE]; // GBB_SIGNATURE "$GBB" |
| 27 uint16_t major_version; // see GBB_MAJOR_VER |
| 28 uint16_t minor_version; // see GBB_MINOR_VER |
| 29 uint32_t header_size; // size of GBB header in bytes |
| 30 uint32_t reserved; |
| 31 |
| 32 uint32_t hwid_offset; // HWID offset from header |
| 33 uint32_t hwid_size; // HWID size in bytes |
| 34 uint32_t rootkey_offset; // Root Key offset from header |
| 35 uint32_t rootkey_size; // Root Key size in bytes |
| 36 uint32_t bmpfv_offset; // BMP FV offset from header |
| 37 uint32_t bmpfv_size; // BMP FV size in bytes |
| 38 |
| 39 uint8_t pad[88]; // to match GBB_HEADER_SIZE |
| 40 } GoogleBinaryBlockHeader; |
| 41 |
| 42 #ifdef __cplusplus |
| 43 } |
| 44 #endif // __cplusplus |
| 45 |
| 46 #endif /* VBOOT_REFERENCE_GBB_HEADER_H_ */ |
| 47 |
OLD | NEW |