| 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 * Data structure and API definitions for a verified boot kernel image. | 5 * Data structure and API definitions for a verified boot kernel image. |
| 6 * (Firmware Portion) | 6 * (Firmware Portion) |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef VBOOT_REFERENCE_VBOOT_KERNEL_H_ | 9 #ifndef VBOOT_REFERENCE_VBOOT_KERNEL_H_ |
| 10 #define VBOOT_REFERENCE_VBOOT_KERNEL_H_ | 10 #define VBOOT_REFERENCE_VBOOT_KERNEL_H_ |
| 11 | 11 |
| 12 #include <stdint.h> | |
| 13 | |
| 14 #include "cgptlib.h" | 12 #include "cgptlib.h" |
| 15 | 13 |
| 16 /* Allocates and reads GPT data from the drive. The sector_bytes and | 14 /* Allocates and reads GPT data from the drive. The sector_bytes and |
| 17 * drive_sectors fields should be filled on input. The primary and | 15 * drive_sectors fields should be filled on input. The primary and |
| 18 * secondary header and entries are filled on output. | 16 * secondary header and entries are filled on output. |
| 19 * | 17 * |
| 20 * Returns 0 if successful, 1 if error. */ | 18 * Returns 0 if successful, 1 if error. */ |
| 21 int AllocAndReadGptData(GptData* gptdata); | 19 int AllocAndReadGptData(GptData* gptdata); |
| 22 | 20 |
| 23 /* Writes any changes for the GPT data back to the drive, then frees the | 21 /* Writes any changes for the GPT data back to the drive, then frees the |
| 24 * buffers. */ | 22 * buffers. */ |
| 25 int WriteAndFreeGptData(GptData* gptdata); | 23 int WriteAndFreeGptData(GptData* gptdata); |
| 26 | 24 |
| 27 #endif /* VBOOT_REFERENCE_VBOOT_KERNEL_H_ */ | 25 #endif /* VBOOT_REFERENCE_VBOOT_KERNEL_H_ */ |
| OLD | NEW |