X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FUefi%2FUefiGpt.h;h=f2d0fa0b09f69c85fd5f81edc0b2f6bc70600379;hp=bac0c2668d9f1988434fc32dfeb13a998d03f972;hb=08855193cafebaa2e071ffb5f083bcb3cb6d4df0;hpb=41c333aa68924a545d233165083122c1c48e0c89 diff --git a/MdePkg/Include/Uefi/UefiGpt.h b/MdePkg/Include/Uefi/UefiGpt.h index bac0c2668d..f2d0fa0b09 100644 --- a/MdePkg/Include/Uefi/UefiGpt.h +++ b/MdePkg/Include/Uefi/UefiGpt.h @@ -1,14 +1,14 @@ /** @file EFI Guid Partition Table Format Definition. - Copyright (c) 2006 - 2009, Intel Corporation - All rights reserved. This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under +the terms and conditions of the BSD License that accompanies this distribution. +The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php. + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ @@ -21,19 +21,19 @@ /// #define PRIMARY_PART_HEADER_LBA 1 /// -/// EFI Partition Table Signature: "EFI PART" +/// EFI Partition Table Signature: "EFI PART". /// #define EFI_PTAB_HEADER_ID SIGNATURE_64 ('E','F','I',' ','P','A','R','T') #pragma pack(1) /// -/// GPT Partition Table Header +/// GPT Partition Table Header. /// typedef struct { /// /// The table header for the GPT partition Table. - /// This header contains EFI_PTAB_HEADER_ID + /// This header contains EFI_PTAB_HEADER_ID. /// EFI_TABLE_HEADER Header; /// @@ -69,7 +69,8 @@ typedef struct { /// /// The size, in bytes, of each the GUID Partition /// Entry structures in the GUID Partition Entry - /// array. Must be a multiple of 8. + /// array. This field shall be set to a value of 128 x 2^n where n is + /// an integer greater than or equal to zero (e.g., 128, 256, 512, etc.). /// UINT32 SizeOfPartitionEntry; /// @@ -82,7 +83,7 @@ typedef struct { } EFI_PARTITION_TABLE_HEADER; /// -/// GPT Partition Entry +/// GPT Partition Entry. /// typedef struct { /// @@ -110,22 +111,26 @@ typedef struct { /// partition indicates that deletion or modification of the contents can result in loss of platform /// features or failure for the platform to boot or operate. The system cannot function normally if /// this partition is removed, and it should be considered part of the hardware of the system. - /// Actions such as running diagnostics, system recovery, or even OS install or boot could + /// Actions such as running diagnostics, system recovery, or even OS install or boot, could /// potentially stop working if this partition is removed. Unless OS software or firmware /// recognizes this partition, it should never be removed or modified as the UEFI firmware or /// platform hardware may become non-functional. - /// Bit 1: If this bit is set firmware must not produce an EFI_BLOCK_IO_PROTOCOL device for - /// this partition. By not producing EFI_BLOCK_IO_PROTOCOL partition, file system + /// Bit 1: If this bit is set, then firmware must not produce an EFI_BLOCK_IO_PROTOCOL device for + /// this partition. By not producing an EFI_BLOCK_IO_PROTOCOL partition, file system /// mappings will not be created for this partition in UEFI. - /// Bits 2-47: Undefined and must be zero. Reserved for expansion by future versions of the UEFI + /// Bit 2: This bit is set aside to let systems with traditional PC-AT BIOS firmware implementations + /// inform certain limited, special-purpose software running on these systems that a GPT + /// partition may be bootable. The UEFI boot manager must ignore this bit when selecting + /// a UEFI-compliant application, e.g., an OS loader. + /// Bits 3-47: Undefined and must be zero. Reserved for expansion by future versions of the UEFI /// specification. /// Bits 48-63: Reserved for GUID specific use. The use of these bits will vary depending on the /// PartitionTypeGUID. Only the owner of the PartitionTypeGUID is allowed - /// to modify these bits. They must be preserved if Bits 0¨C47 are modified.. + /// to modify these bits. They must be preserved if Bits 0-47 are modified.. /// UINT64 Attributes; /// - /// Unicode string. + /// Null-terminated name of the partition. /// CHAR16 PartitionName[36]; } EFI_PARTITION_ENTRY;