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

Side by Side Diff: firmware/lib/cgptlib/include/gpt.h

Issue 2799019: Modify the size of the attributes field to comply with msc limitations. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Fix the attribute field to allow compilation in the BIOS environment. 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 | « firmware/lib/cgptlib/include/cgptlib_internal.h ('k') | tests/Makefile » ('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 * Defines EFI related structure. See more details in EFI 2.3 spec. 5 * Defines EFI related structure. See more details in EFI 2.3 spec.
6 * 6 *
7 * To download EFI standard, please visit UEFI homepage: 7 * To download EFI standard, please visit UEFI homepage:
8 * http://www.uefi.org/ 8 * http://www.uefi.org/
9 */ 9 */
10 #ifndef VBOOT_REFERENCE_CGPTLIB_GPT_H_ 10 #ifndef VBOOT_REFERENCE_CGPTLIB_GPT_H_
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 /* GPT partition entry defines the starting and ending LBAs of a partition. 89 /* GPT partition entry defines the starting and ending LBAs of a partition.
90 * It also contains the unique GUID, type, and attribute bits. 90 * It also contains the unique GUID, type, and attribute bits.
91 * 91 *
92 * You may find more details in chapter 5 of EFI standard. 92 * You may find more details in chapter 5 of EFI standard.
93 */ 93 */
94 typedef struct { 94 typedef struct {
95 Guid type; 95 Guid type;
96 Guid unique; 96 Guid unique;
97 uint64_t starting_lba; 97 uint64_t starting_lba;
98 uint64_t ending_lba; 98 uint64_t ending_lba;
99 uint64_t attributes; 99 union {
100 struct {
101 uint64_t : 48;
102 uint16_t gpt_att : 16;
103 } __attribute__((packed)) fields;
104 uint64_t whole;
105 } attrs;
100 uint16_t name[36]; /* UTF-16 encoded partition name */ 106 uint16_t name[36]; /* UTF-16 encoded partition name */
101 uint8_t reserved[]; /* nothing, really */ 107 uint8_t reserved[]; /* nothing, really */
102 } __attribute__((packed)) GptEntry; 108 } __attribute__((packed)) GptEntry;
103 109
104 #endif /* VBOOT_REFERENCE_CGPTLIB_GPT_H_ */ 110 #endif /* VBOOT_REFERENCE_CGPTLIB_GPT_H_ */
OLDNEW
« no previous file with comments | « firmware/lib/cgptlib/include/cgptlib_internal.h ('k') | tests/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698