OLD | NEW |
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 "sysincludes.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 /* Success; good kernel found on device */ | 17 #define LOAD_KERNEL_SUCCESS 0 /* Success; good kernel found on device */ |
18 #define LOAD_KERNEL_NOT_FOUND 1 /* No kernel found on device */ | 18 #define LOAD_KERNEL_NOT_FOUND 1 /* No kernel found on device */ |
19 #define LOAD_KERNEL_INVALID 2 /* Only invalid kernels found on device */ | 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 #define LOAD_KERNEL_RECOVERY 3 /* Internal error; reboot to recovery mode */ |
21 | 21 |
22 /* Boot flags for LoadKernel().boot_flags */ | 22 /* Boot flags for LoadKernel().boot_flags */ |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 uint64_t partition_number; /* Partition number, as returned from | 57 uint64_t partition_number; /* Partition number, as returned from |
58 * LoadKernel() in | 58 * LoadKernel() in |
59 * LoadKernelParams.partition_number */ | 59 * LoadKernelParams.partition_number */ |
60 uint64_t original_address; /* Absolute bootloader start adddress, | 60 uint64_t original_address; /* Absolute bootloader start adddress, |
61 * as returned from LoadKernel() in | 61 * as returned from LoadKernel() in |
62 * LoadKernelParams.bootloader_start */ | 62 * LoadKernelParams.bootloader_start */ |
63 } KernelBootloaderOptions; | 63 } KernelBootloaderOptions; |
64 | 64 |
65 | 65 |
66 #endif /* VBOOT_REFERENCE_LOAD_KERNEL_FW_H_ */ | 66 #endif /* VBOOT_REFERENCE_LOAD_KERNEL_FW_H_ */ |
OLD | NEW |