]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Uefi/UefiGpt.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / Uefi / UefiGpt.h
index b3579a091c3638cd37b2ca99363b9a671770a494..af7fb2ff3dc262a4c90a762a0be04ac2f49fae2b 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
   EFI Guid Partition Table Format Definition.\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
-The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -22,8 +16,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define PRIMARY_PART_HEADER_LBA 1\r
 ///\r
 /// EFI Partition Table Signature: "EFI PART".\r
-/// \r
+///\r
 #define EFI_PTAB_HEADER_ID      SIGNATURE_64 ('E','F','I',' ','P','A','R','T')\r
+///\r
+/// Minimum bytes reserve for EFI entry array buffer.\r
+///\r
+#define EFI_GPT_PART_ENTRY_MIN_SIZE 16384\r
 \r
 #pragma pack(1)\r
 \r
@@ -69,7 +67,8 @@ typedef struct {
   ///\r
   /// The size, in bytes, of each the GUID Partition\r
   /// Entry structures in the GUID Partition Entry\r
-  /// array. Must be a multiple of 8.\r
+  /// array. This field shall be set to a value of 128 x 2^n where n is\r
+  /// an integer greater than or equal to zero (e.g., 128, 256, 512, etc.).\r
   ///\r
   UINT32            SizeOfPartitionEntry;\r
   ///\r
@@ -118,7 +117,7 @@ typedef struct {
   ///             this partition. By not producing an EFI_BLOCK_IO_PROTOCOL partition, file system\r
   ///             mappings will not be created for this partition in UEFI.\r
   /// Bit 2:      This bit is set aside to let systems with traditional PC-AT BIOS firmware implementations\r
-  ///             inform certain limited, special-purpose software running on these systems that a GPT \r
+  ///             inform certain limited, special-purpose software running on these systems that a GPT\r
   ///             partition may be bootable. The UEFI boot manager must ignore this bit when selecting\r
   ///             a UEFI-compliant application, e.g., an OS loader.\r
   /// Bits 3-47:  Undefined and must be zero. Reserved for expansion by future versions of the UEFI\r