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

Side by Side Diff: src/platform/vboot_reference/cgptlib/cgptlib.h

Issue 2231002: complete 'cgpt show' and refactor for incoming commands. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
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 | src/platform/vboot_reference/cgptlib/cgptlib.c » ('j') | 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 5
6 #ifndef VBOOT_REFERENCE_CGPTLIB_H_ 6 #ifndef VBOOT_REFERENCE_CGPTLIB_H_
7 #define VBOOT_REFERENCE_CGPTLIB_H_ 7 #define VBOOT_REFERENCE_CGPTLIB_H_
8 8
9 #include "gpt.h" 9 #include "gpt.h"
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 uint64_t drive_sectors; /* Size of drive in LBA sectors, in sectors */ 81 uint64_t drive_sectors; /* Size of drive in LBA sectors, in sectors */
82 82
83 /* Outputs */ 83 /* Outputs */
84 uint8_t modified; /* Which inputs have been modified? 84 uint8_t modified; /* Which inputs have been modified?
85 * 0x01 = header1 85 * 0x01 = header1
86 * 0x02 = header2 86 * 0x02 = header2
87 * 0x04 = table1 87 * 0x04 = table1
88 * 0x08 = table2 */ 88 * 0x08 = table2 */
89 int current_kernel; /* the current chromeos kernel index in partition table. 89 int current_kernel; /* the current chromeos kernel index in partition table.
90 * -1 means not found on drive. */ 90 * -1 means not found on drive. */
91
92 /* Internal variables */
93 uint32_t valid_headers, valid_entries;
91 } GptData; 94 } GptData;
92 95
93 int GptInit(GptData *gpt); 96 int GptInit(GptData *gpt);
94 /* Initializes the GPT data structure's internal state. The following fields 97 /* Initializes the GPT data structure's internal state. The following fields
95 * must be filled before calling this function: 98 * must be filled before calling this function:
96 * 99 *
97 * primary_header 100 * primary_header
98 * secondary_header 101 * secondary_header
99 * primary_entries 102 * primary_entries
100 * secondary_entries 103 * secondary_entries
(...skipping 27 matching lines...) Expand all
128 * of update (GPT_UPDATE_ENTRY_*). 131 * of update (GPT_UPDATE_ENTRY_*).
129 * 132 *
130 * On return the modified field may be set, if the GPT data has been modified 133 * On return the modified field may be set, if the GPT data has been modified
131 * and should be written to disk. 134 * and should be written to disk.
132 * 135 *
133 * Returns GPT_SUCCESS if successful, else 136 * Returns GPT_SUCCESS if successful, else
134 * GPT_ERROR_INVALID_UPDATE_TYPE, invalid 'update_type' is given. 137 * GPT_ERROR_INVALID_UPDATE_TYPE, invalid 'update_type' is given.
135 */ 138 */
136 139
137 #endif /* VBOOT_REFERENCE_CGPTLIB_H_ */ 140 #endif /* VBOOT_REFERENCE_CGPTLIB_H_ */
OLDNEW
« no previous file with comments | « no previous file | src/platform/vboot_reference/cgptlib/cgptlib.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698