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 and API definitions for a verified boot kernel image. | |
6 * (Firmware Portion) | |
7 */ | |
8 | |
9 #ifndef VBOOT_REFERENCE_VBOOT_KERNEL_H_ | |
10 #define VBOOT_REFERENCE_VBOOT_KERNEL_H_ | |
11 | |
12 #include <stdint.h> | |
13 | |
14 #include "cgptlib.h" | |
15 #include "cryptolib.h" | |
16 #include "vboot_common.h" | |
gauravsh
2010/06/10 14:44:13
nit: alphas order for includes
| |
17 #include "load_kernel_fw.h" | |
18 | |
19 /* TODO: temporary hack */ | |
20 void FakePartitionAttributes(GptData* gpt); | |
21 | |
22 /* Allocates and reads GPT data from the drive. The sector_bytes and | |
23 * drive_sectors fields should be filled on input. The primary and | |
24 * secondary header and entries are filled on output. | |
25 * | |
26 * Returns 0 if successful, 1 if error. */ | |
27 int AllocAndReadGptData(GptData* gptdata); | |
28 | |
29 /* Writes any changes for the GPT data back to the drive, then frees the | |
30 * buffers. */ | |
31 void WriteAndFreeGptData(GptData* gptdata); | |
32 | |
33 /* Alternate LoadKernel() implementation; see load_kernel_fw.h */ | |
34 int LoadKernel2(LoadKernelParams* params); | |
35 | |
gauravsh
2010/06/10 14:44:13
nit: extra new line
| |
36 | |
37 #endif /* VBOOT_REFERENCE_VBOOT_KERNEL_H_ */ | |
OLD | NEW |