]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Guid/PcdDataBaseSignatureGuid.h
MdeModulePkg PCD: Update PCD database structure definition to match BaseTools
[mirror_edk2.git] / MdeModulePkg / Include / Guid / PcdDataBaseSignatureGuid.h
index ac95f7e21ae8712a04c64252cc64a1199a7da374..d2e848800b75d97c7976f699c010a6e302b52404 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Guid for Pcd DataBase Signature.\r
 \r
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2016, 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
@@ -23,7 +23,7 @@ extern EFI_GUID gPcdDataBaseSignatureGuid;
 //\r
 // Common definitions\r
 //\r
-typedef UINT8 SKU_ID;\r
+typedef UINT64 SKU_ID;\r
 \r
 #define PCD_TYPE_SHIFT        28\r
 \r
@@ -62,7 +62,7 @@ typedef struct  {
 } DYNAMICEX_MAPPING;\r
 \r
 typedef struct {\r
-  UINT32  SkuDataStartOffset;   // Offset(with TYPE info) from the PCD_DB.\r
+  UINT32  SkuDataStartOffset;   // Offset(with DATUM TYPE info) from the PCD_DB.\r
   UINT32  SkuIdTableOffset;     // Offset from the PCD_DB.\r
 } SKU_HEAD;\r
 \r
@@ -95,6 +95,7 @@ typedef struct {
     GUID                  Signature;            // PcdDataBaseGuid.\r
     UINT32                BuildVersion;\r
     UINT32                Length;\r
+    SKU_ID                SystemSkuId;          // Current SkuId value.\r
     UINT32                UninitDataBaseSize;   // Total size for PCD those default value with 0.\r
     TABLE_OFFSET          LocalTokenNumberTableOffset;\r
     TABLE_OFFSET          ExMapTableOffset;\r
@@ -106,14 +107,15 @@ typedef struct {
     UINT16                LocalTokenCount;      // LOCAL_TOKEN_NUMBER for all.\r
     UINT16                ExTokenCount;         // EX_TOKEN_NUMBER for DynamicEx.\r
     UINT16                GuidTableCount;       // The Number of Guid in GuidTable.\r
-    SKU_ID                SystemSkuId;          // Current SkuId value.\r
-    UINT8                 Pad;                  // Pad bytes to satisfy the alignment.\r
+    UINT8                 Pad[2];               // Pad bytes to satisfy the alignment.\r
 \r
     //\r
     // Default initialized external PCD database binary structure\r
     //\r
     // Padding is needed to keep necessary alignment\r
     //\r
+    //SKU_ID                         SkuIdTable[];            // SkuIds system supports.\r
+    //SKU_ID                         SkuIndexTable[];         // SkuIds for each PCD with SKU enable.\r
     //UINT64                         ValueUint64[];\r
     //UINT32                         ValueUint32[];\r
     //VPD_HEAD                       VpdHead[];               // VPD Offset\r
@@ -129,8 +131,6 @@ typedef struct {
     //UINT16                         ValueUint16[];\r
     //UINT8                          ValueUint8[];\r
     //BOOLEAN                        ValueBoolean[];\r
-    //UINT8                          SkuIdTable[];            // SkuIds system supports.\r
-    //UINT8                          SkuIndexTable[];         // SkuIds for each PCD with SKU enable.\r
 \r
 } PCD_DATABASE_INIT;\r
 \r