| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* Non-volatile storage routines for verified boot. | 6 /* Non-volatile storage routines for verified boot. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef VBOOT_REFERENCE_NVSTORAGE_H_ | 9 #ifndef VBOOT_REFERENCE_NVSTORAGE_H_ |
| 10 #define VBOOT_REFERENCE_NVSTORAGE_H_ | 10 #define VBOOT_REFERENCE_NVSTORAGE_H_ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 /* Request recovery mode on next boot; see VBNB_RECOVERY_* below for | 42 /* Request recovery mode on next boot; see VBNB_RECOVERY_* below for |
| 43 * currently defined reason codes. 8-bit value. */ | 43 * currently defined reason codes. 8-bit value. */ |
| 44 VBNV_RECOVERY_REQUEST, | 44 VBNV_RECOVERY_REQUEST, |
| 45 /* Localization index for screen bitmaps displayed by firmware. | 45 /* Localization index for screen bitmaps displayed by firmware. |
| 46 * 8-bit value. */ | 46 * 8-bit value. */ |
| 47 VBNV_LOCALIZATION_INDEX, | 47 VBNV_LOCALIZATION_INDEX, |
| 48 /* Field reserved for kernel/user-mode use; 32-bit value. */ | 48 /* Field reserved for kernel/user-mode use; 32-bit value. */ |
| 49 VBNV_KERNEL_FIELD, | 49 VBNV_KERNEL_FIELD, |
| 50 /* Firmware checked RW slot B before slot A on the current boot because | 50 /* Firmware checked RW slot B before slot A on the current boot because |
| 51 * VBNV_TRY_B_COUNT was non-zero at that time. 0=no; 1=yes. */ | 51 * VBNV_TRY_B_COUNT was non-zero at that time. 0=no; 1=yes. */ |
| 52 VBNV_FW_USED_TRY_B, | 52 VBNV_TRIED_FIRMWARE_B, |
| 53 /* Firmware verified the kernel key block signature using the key stored | 53 /* Firmware verified the kernel key block signature using the key stored |
| 54 * in the firmware. 0=no, just used the key block hash; 1=yes, used the | 54 * in the firmware. 0=no, just used the key block hash; 1=yes, used the |
| 55 * key block signature. */ | 55 * key block signature. */ |
| 56 VBNV_FW_VERIFIED_KERNEL_KEY, | 56 VBNV_FW_VERIFIED_KERNEL_KEY, |
| 57 } VbNvParam; | 57 } VbNvParam; |
| 58 | 58 |
| 59 | 59 |
| 60 /* Recovery reason codes for VBNV_RECOVERY_REQUEST */ | 60 /* Recovery reason codes for VBNV_RECOVERY_REQUEST */ |
| 61 /* Recovery not requested. */ | 61 /* Recovery not requested. */ |
| 62 #define VBNV_RECOVERY_NOT_REQUESTED 0x00 | 62 #define VBNV_RECOVERY_NOT_REQUESTED 0x00 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 int VbNvGet(VbNvContext* context, VbNvParam param, uint32_t* dest); | 135 int VbNvGet(VbNvContext* context, VbNvParam param, uint32_t* dest); |
| 136 | 136 |
| 137 /* Set a NV storage param to a new value. Returns 0 if success, | 137 /* Set a NV storage param to a new value. Returns 0 if success, |
| 138 * non-zero if error. | 138 * non-zero if error. |
| 139 * | 139 * |
| 140 * This may only be called between VbNvSetup() and VbNvTeardown(). */ | 140 * This may only be called between VbNvSetup() and VbNvTeardown(). */ |
| 141 int VbNvSet(VbNvContext* context, VbNvParam param, uint32_t value); | 141 int VbNvSet(VbNvContext* context, VbNvParam param, uint32_t value); |
| 142 | 142 |
| 143 | 143 |
| 144 #endif /* VBOOT_REFERENCE_NVSTORAGE_H_ */ | 144 #endif /* VBOOT_REFERENCE_NVSTORAGE_H_ */ |
| OLD | NEW |