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

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

Issue 3056014: Make LoadKernel() pass back the kernel partition's UniqueGuid. (Closed) Base URL: ssh://git@chromiumos-git//vboot_reference.git
Patch Set: Created 10 years, 5 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 | firmware/lib/cgptlib/cgptlib_internal.c » ('j') | firmware/lib/vboot_kernel.c » ('J')
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_
(...skipping 26 matching lines...) Expand all
37 * (normally at 0x100000) */ 37 * (normally at 0x100000) */
38 uint64_t kernel_buffer_size; /* Size of kernel buffer in bytes */ 38 uint64_t kernel_buffer_size; /* Size of kernel buffer in bytes */
39 uint64_t boot_flags; /* Boot flags */ 39 uint64_t boot_flags; /* Boot flags */
40 40
41 /* Outputs from LoadKernel(); valid only if LoadKernel() returns 41 /* Outputs from LoadKernel(); valid only if LoadKernel() returns
42 * LOAD_KERNEL_SUCCESS */ 42 * LOAD_KERNEL_SUCCESS */
43 uint64_t partition_number; /* Partition number to boot on current device 43 uint64_t partition_number; /* Partition number to boot on current device
44 * (1...M) */ 44 * (1...M) */
45 uint64_t bootloader_address; /* Address of bootloader image in RAM */ 45 uint64_t bootloader_address; /* Address of bootloader image in RAM */
46 uint64_t bootloader_size; /* Size of bootloader image in bytes */ 46 uint64_t bootloader_size; /* Size of bootloader image in bytes */
47 uint8_t partition_guid[16]; /* UniquePartitionGuid for boot partition */
47 } LoadKernelParams; 48 } LoadKernelParams;
48 49
49 int LoadKernel(LoadKernelParams* params); 50 int LoadKernel(LoadKernelParams* params);
50 /* Attempts to load the kernel from the current device. 51 /* Attempts to load the kernel from the current device.
51 * 52 *
52 * Returns LOAD_KERNEL_SUCCESS if successful, error code on failure. */ 53 * Returns LOAD_KERNEL_SUCCESS if successful, error code on failure. */
53 54
54 55
55 typedef struct KernelBootloaderOptions { 56 typedef struct KernelBootloaderOptions {
56 /* The bootloader is loaded using the EFI LoadImage() and StartImage() 57 /* The bootloader is loaded using the EFI LoadImage() and StartImage()
57 * calls. Pass this struct via loaded_image->load_options. */ 58 * calls. Pass this struct via loaded_image->load_options. */
58 uint64_t drive_number; /* Drive number of boot device (0...N) */ 59 uint64_t drive_number; /* Drive number of boot device (0...N) */
59 uint64_t partition_number; /* Partition number, as returned from 60 uint64_t partition_number; /* Partition number, as returned from
60 * LoadKernel() in 61 * LoadKernel() in
61 * LoadKernelParams.partition_number */ 62 * LoadKernelParams.partition_number */
62 uint64_t original_address; /* Absolute bootloader start adddress, 63 uint64_t original_address; /* Absolute bootloader start adddress,
63 * as returned from LoadKernel() in 64 * as returned from LoadKernel() in
64 * LoadKernelParams.bootloader_start */ 65 * LoadKernelParams.bootloader_start */
66 uint8_t partition_guid[16]; /* UniquePartitionGuid for boot partition */
65 } KernelBootloaderOptions; 67 } KernelBootloaderOptions;
66 68
67 69
68 #endif /* VBOOT_REFERENCE_LOAD_KERNEL_FW_H_ */ 70 #endif /* VBOOT_REFERENCE_LOAD_KERNEL_FW_H_ */
OLDNEW
« no previous file with comments | « no previous file | firmware/lib/cgptlib/cgptlib_internal.c » ('j') | firmware/lib/vboot_kernel.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698