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

Side by Side Diff: vboot_firmware/include/load_kernel_fw.h

Issue 2681003: Added recovery-mode return code to LoadKernel() (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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 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 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 * High-level firmware API for loading and verifying kernel. 5 * High-level firmware API for loading and verifying kernel.
6 * (Firmware Portion) 6 * (Firmware Portion)
7 */ 7 */
8 8
9 #ifndef VBOOT_REFERENCE_LOAD_KERNEL_FW_H_ 9 #ifndef VBOOT_REFERENCE_LOAD_KERNEL_FW_H_
10 #define VBOOT_REFERENCE_LOAD_KERNEL_FW_H_ 10 #define VBOOT_REFERENCE_LOAD_KERNEL_FW_H_
11 11
12 #include <stdint.h> 12 #include <stdint.h>
13 13
14 /* Interface provided by verified boot library to BDS */ 14 /* Interface provided by verified boot library to BDS */
15 15
16 /* Return codes for LoadKernel() */ 16 /* Return codes for LoadKernel() */
17 #define LOAD_KERNEL_SUCCESS 0 17 #define LOAD_KERNEL_SUCCESS 0 /* Success; good kernel found on device */
18 #define LOAD_KERNEL_NOT_FOUND 1 18 #define LOAD_KERNEL_NOT_FOUND 1 /* No kernel found on device */
19 #define LOAD_KERNEL_INVALID 2 19 #define LOAD_KERNEL_INVALID 2 /* Only invalid kernels found on device */
20 #define LOAD_KERNEL_RECOVERY 3 /* Internal error; reboot to recovery mode */
20 21
21 /* Boot modes for LoadKernel() */ 22 /* Boot modes for LoadKernel() */
22 #define BOOT_MODE_NORMAL 0 23 #define BOOT_MODE_NORMAL 0
23 #define BOOT_MODE_DEVELOPER 1 24 #define BOOT_MODE_DEVELOPER 1
24 #define BOOT_MODE_RECOVERY 2 25 #define BOOT_MODE_RECOVERY 2
25 26
26 typedef struct LoadKernelParams { 27 typedef struct LoadKernelParams {
27 /* Inputs to LoadKernel() */ 28 /* Inputs to LoadKernel() */
28 void *header_sign_key_blob; /* Key blob used to sign the kernel header */ 29 void *header_sign_key_blob; /* Key blob used to sign the kernel header */
29 uint64_t bytes_per_lba; /* Bytes per lba sector on current device */ 30 uint64_t bytes_per_lba; /* Bytes per lba sector on current device */
(...skipping 25 matching lines...) Expand all
55 uint64_t partition_number; /* Partition number, as returned from 56 uint64_t partition_number; /* Partition number, as returned from
56 * LoadKernel() in 57 * LoadKernel() in
57 * LoadKernelParams.partition_number */ 58 * LoadKernelParams.partition_number */
58 uint64_t original_address; /* Absolute bootloader start adddress, 59 uint64_t original_address; /* Absolute bootloader start adddress,
59 * as returned from LoadKernel() in 60 * as returned from LoadKernel() in
60 * LoadKernelParams.bootloader_start */ 61 * LoadKernelParams.bootloader_start */
61 } KernelBootloaderOptions; 62 } KernelBootloaderOptions;
62 63
63 64
64 #endif /* VBOOT_REFERENCE_LOAD_KERNEL_FW_H_ */ 65 #endif /* VBOOT_REFERENCE_LOAD_KERNEL_FW_H_ */
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698