]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. delete Include/Guid/VariableInfo.h
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 27 Feb 2009 05:35:08 +0000 (05:35 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 27 Feb 2009 05:35:08 +0000 (05:35 +0000)
2. move VariableFormat.h into GUID directory and change the “Signature” field of the VARIABLE_STORE_HEADER to gEfiVariableGuid value.
3. merging VARIABLE_INFO_ENTRY structure into the new Include/Guid/VariableFormat.h
4. change gEfiVariableInfoGuid into gEfiVariableGuid.
5. modify FDF files to use new guid value instead of the original signature.
6. all code related to signature is changed to use guid value.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7728 6f19259b-4bc3-4df7-8a09-765794883524

30 files changed:
DuetPkg/DxeIpl/DxeIpl.h
DuetPkg/DxeIpl/DxeIpl.inf
DuetPkg/DxeIpl/HobGeneration.c
DuetPkg/FSVariable/FSVariable.c
DuetPkg/FSVariable/FSVariable.h
DuetPkg/FSVariable/FSVariable.inf
DuetPkg/FSVariable/FileStorage.c
DuetPkg/FSVariable/MemStorage.c
DuetPkg/FSVariable/VariableStorage.h
IntelFrameworkModulePkg/Universal/VariablePei/Variable.c
IntelFrameworkModulePkg/Universal/VariablePei/Variable.h
IntelFrameworkModulePkg/Universal/VariablePei/VariablePei.inf
MdeModulePkg/Application/VariableInfo/VariableInfo.c
MdeModulePkg/Application/VariableInfo/VariableInfo.inf
MdeModulePkg/Include/Guid/VariableFormat.h [new file with mode: 0644]
MdeModulePkg/Include/Guid/VariableInfo.h [deleted file]
MdeModulePkg/Include/VariableFormat.h [deleted file]
MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOver.h
MdeModulePkg/MdeModulePkg.dec
MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c
MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
MdeModulePkg/Universal/Variable/EmuRuntimeDxe/Variable.h
MdeModulePkg/Universal/Variable/Pei/Variable.c
MdeModulePkg/Universal/Variable/Pei/Variable.h
MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.h
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
Nt32Pkg/Nt32Pkg.fdf
UnixPkg/UnixPkg.fdf

index c8c67948a2b264edeaa7e30d27ebe44a93880898..8b6e9a8c8aa1ebf0d1d8c8f4986c45a4863a24f8 100644 (file)
@@ -18,6 +18,7 @@
 #include <Guid/Mps.h>\r
 #include <Guid/FlashMapHob.h>\r
 #include <Guid/SystemNvDataGuid.h>\r
 #include <Guid/Mps.h>\r
 #include <Guid/FlashMapHob.h>\r
 #include <Guid/SystemNvDataGuid.h>\r
+#include <Guid/VariableFormat.h>\r
 \r
 #include <Protocol/Decompress.h>\r
 #include <Protocol/StatusCode.h>\r
 \r
 #include <Protocol/Decompress.h>\r
 #include <Protocol/StatusCode.h>\r
@@ -29,7 +30,6 @@
 #include <Library/PrintLib.h>\r
 #include <Library/IoLib.h>\r
 \r
 #include <Library/PrintLib.h>\r
 #include <Library/IoLib.h>\r
 \r
-#include <VariableFormat.h>\r
 #include <CpuIA32.h>\r
 \r
 #endif // _DUET_DXEIPL_H_\r
 #include <CpuIA32.h>\r
 \r
 #endif // _DUET_DXEIPL_H_\r
index 6a2ba5de15bd8959581df3940e0e469a47850818..826aee15b8f979f206e6e9491ab0e55b5aafa428 100644 (file)
@@ -39,6 +39,9 @@
   ReportStatusCodeLib\r
   IoLib\r
 \r
   ReportStatusCodeLib\r
   IoLib\r
 \r
+[Guids]\r
+  gEfiVariableGuid\r
+\r
 [Sources.common]\r
   DxeIpl.h\r
   DxeInit.c\r
 [Sources.common]\r
   DxeIpl.h\r
   DxeInit.c\r
index 0b215eba3a822c24947fb7255b0362e72574d8eb..93bf2891a53fbecb12b64f2767b9135d4d0650ac 100644 (file)
@@ -738,7 +738,7 @@ PrepareHobNvStorage (
 */\r
 {\r
   STATIC VARIABLE_STORE_HEADER VarStoreHeader = {\r
 */\r
 {\r
   STATIC VARIABLE_STORE_HEADER VarStoreHeader = {\r
-    VARIABLE_STORE_SIGNATURE,\r
+    gEfiVariableGuid,\r
     0xffffffff,                 // will be fixed in Variable driver\r
     VARIABLE_STORE_FORMATTED,\r
     VARIABLE_STORE_HEALTHY,\r
     0xffffffff,                 // will be fixed in Variable driver\r
     VARIABLE_STORE_FORMATTED,\r
     VARIABLE_STORE_HEALTHY,\r
index 18b93c08cc0854703c170d8ef781b4e0fe372c75..d20b3a78e3ed4598c9ed2500b67c792b57c2767e 100644 (file)
@@ -22,7 +22,7 @@ Abstract:
 #include "FSVariable.h"\r
 \r
 VARIABLE_STORE_HEADER mStoreHeaderTemplate = {\r
 #include "FSVariable.h"\r
 \r
 VARIABLE_STORE_HEADER mStoreHeaderTemplate = {\r
-  VARIABLE_STORE_SIGNATURE,\r
+  gEfiVariableGuid,\r
   VOLATILE_VARIABLE_STORE_SIZE,\r
   VARIABLE_STORE_FORMATTED,\r
   VARIABLE_STORE_HEALTHY,\r
   VOLATILE_VARIABLE_STORE_SIZE,\r
   VARIABLE_STORE_FORMATTED,\r
   VARIABLE_STORE_HEALTHY,\r
@@ -100,15 +100,18 @@ Returns:
 \r
 --*/\r
 {\r
 \r
 --*/\r
 {\r
-  if ((VarStoreHeader->Signature == mStoreHeaderTemplate.Signature) &&\r
+  if (CompareGuid (&VarStoreHeader->Signature, &mStoreHeaderTemplate.Signature) &&\r
       (VarStoreHeader->Format == mStoreHeaderTemplate.Format) &&\r
       (VarStoreHeader->State == mStoreHeaderTemplate.State)\r
      ) {\r
     return EfiValid;\r
       (VarStoreHeader->Format == mStoreHeaderTemplate.Format) &&\r
       (VarStoreHeader->State == mStoreHeaderTemplate.State)\r
      ) {\r
     return EfiValid;\r
-  } else if (VarStoreHeader->Signature == VAR_DEFAULT_VALUE_32 &&\r
-           VarStoreHeader->Size == VAR_DEFAULT_VALUE_32 &&\r
-           VarStoreHeader->Format == VAR_DEFAULT_VALUE &&\r
-           VarStoreHeader->State == VAR_DEFAULT_VALUE\r
+  } else if (((UINT32 *)(&VarStoreHeader->Signature))[0] == VAR_DEFAULT_VALUE_32 &&\r
+             ((UINT32 *)(&VarStoreHeader->Signature))[1] == VAR_DEFAULT_VALUE_32 &&\r
+             ((UINT32 *)(&VarStoreHeader->Signature))[2] == VAR_DEFAULT_VALUE_32 &&\r
+             ((UINT32 *)(&VarStoreHeader->Signature))[3] == VAR_DEFAULT_VALUE_32 &&\r
+             VarStoreHeader->Size == VAR_DEFAULT_VALUE_32 &&\r
+             VarStoreHeader->Format == VAR_DEFAULT_VALUE &&\r
+             VarStoreHeader->State == VAR_DEFAULT_VALUE\r
           ) {\r
 \r
     return EfiRaw;\r
           ) {\r
 \r
     return EfiRaw;\r
index 9fdd0a77fdb889414d85b98c4b3250ff70f82c3a..6da525cbf6c2f48925a0f4ac09374b6ca6afb629 100644 (file)
@@ -38,6 +38,7 @@ Abstract:
 \r
 #include <Guid/HobList.h>\r
 #include <Guid/FlashMapHob.h>\r
 \r
 #include <Guid/HobList.h>\r
 #include <Guid/FlashMapHob.h>\r
+#include <Guid/VariableFormat.h>\r
 \r
 #include <Protocol/Variable.h>\r
 #include <Protocol/VariableWrite.h>\r
 \r
 #include <Protocol/Variable.h>\r
 #include <Protocol/VariableWrite.h>\r
@@ -46,7 +47,6 @@ Abstract:
 \r
 \r
 #include "EfiFlashMap.h"\r
 \r
 \r
 #include "EfiFlashMap.h"\r
-#include "VariableFormat.h"\r
 #include "VariableStorage.h"\r
 \r
 #define VOLATILE_VARIABLE_STORE_SIZE  (64 * 1024)\r
 #include "VariableStorage.h"\r
 \r
 #define VOLATILE_VARIABLE_STORE_SIZE  (64 * 1024)\r
index 52a805d0361625e613accd6a0390dc237f1c0f9c..c2a8c84b526b8d08d650cffb3d261ef1c188aa77 100644 (file)
@@ -57,6 +57,7 @@
 [Guids]\r
   gEfiHobListGuid\r
   gEfiFlashMapHobGuid\r
 [Guids]\r
   gEfiHobListGuid\r
   gEfiFlashMapHobGuid\r
+  gEfiVariableGuid\r
 \r
 [Protocols]\r
   gEfiVariableArchProtocolGuid\r
 \r
 [Protocols]\r
   gEfiVariableArchProtocolGuid\r
index df11ae16b8d11995c4d2f562a04ae881b9058a41..0c25efa8c3c5b30a46a59cef52115c147a874509 100644 (file)
@@ -247,7 +247,7 @@ FileStorageConstructor (
   ASSERT_EFI_ERROR (Status);\r
   ZeroMem (Dev, sizeof(VS_DEV));\r
 \r
   ASSERT_EFI_ERROR (Status);\r
   ZeroMem (Dev, sizeof(VS_DEV));\r
 \r
-  Dev->Signature          = VARIABLE_STORE_SIGNATURE;\r
+  CopyGuid (&Dev->Signature, &gEfiVariableGuid);\r
   Dev->Size               = Size;\r
   VAR_DATA_PTR (Dev)      = (UINT8 *) (UINTN) NvStorageBase;\r
   VAR_FILE_VOLUMEID (Dev) = VolumeId;\r
   Dev->Size               = Size;\r
   VAR_DATA_PTR (Dev)      = (UINT8 *) (UINTN) NvStorageBase;\r
   VAR_FILE_VOLUMEID (Dev) = VolumeId;\r
index cb8c864fce21799802b283e9ab1fba7111936051..02582d953ad908def33a4f307e8d3d03790873e2 100644 (file)
@@ -59,7 +59,7 @@ MemStorageConstructor (
 \r
   ZeroMem (Dev, sizeof(VS_DEV));\r
 \r
 \r
   ZeroMem (Dev, sizeof(VS_DEV));\r
 \r
-  Dev->Signature   = VARIABLE_STORE_SIGNATURE;\r
+  CopyGuid (&Dev->Signature, &gEfiVariableGuid);\r
   Dev->Size        = Size;\r
 \r
   Dev->VarStore.Erase    = MemEraseStore;\r
   Dev->Size        = Size;\r
 \r
   Dev->VarStore.Erase    = MemEraseStore;\r
index 2c4a3f9808c984c90a7071db73a4f82361da84f2..d5423bb01adc5e320a28d1a0877db3768099be06 100644 (file)
@@ -100,7 +100,8 @@ typedef struct _VS_DEV {
 \r
 } VS_DEV;\r
 \r
 \r
 } VS_DEV;\r
 \r
-#define DEV_FROM_THIS(a)        CR (a, VS_DEV, VarStore, VARIABLE_STORE_SIGNATURE)\r
+#define VS_DEV_SIGNATURE        SIGNATURE_32 ('$', 'V', 'S', 'D')\r
+#define DEV_FROM_THIS(a)        CR (a, VS_DEV, VarStore, VS_DEV_SIGNATURE)\r
 \r
 #define VAR_DATA_PTR(a)         ((a)->Info.Data)\r
 #define VAR_FILE_DEVICEPATH(a)  ((a)->Info.FileInfo.DevicePath)\r
 \r
 #define VAR_DATA_PTR(a)         ((a)->Info.Data)\r
 #define VAR_FILE_DEVICEPATH(a)  ((a)->Info.FileInfo.DevicePath)\r
index d5881f5ce83957cb640733330870b812371a5884..aa43ae1512fe6eeaa75852f056edadd3f51ed3a4 100644 (file)
@@ -277,7 +277,8 @@ GetVariableStoreStatus (
   )\r
 \r
 {\r
   )\r
 \r
 {\r
-  if (VarStoreHeader->Signature == VARIABLE_STORE_SIGNATURE &&\r
+       \r
+  if (CompareGuid (&VarStoreHeader->Signature, &gEfiVariableGuid) &&\r
       VarStoreHeader->Format == VARIABLE_STORE_FORMATTED &&\r
       VarStoreHeader->State == VARIABLE_STORE_HEALTHY\r
       ) {\r
       VarStoreHeader->Format == VARIABLE_STORE_FORMATTED &&\r
       VarStoreHeader->State == VARIABLE_STORE_HEALTHY\r
       ) {\r
@@ -285,7 +286,10 @@ GetVariableStoreStatus (
     return EfiValid;\r
   }\r
 \r
     return EfiValid;\r
   }\r
 \r
-  if (VarStoreHeader->Signature == 0xffffffff &&\r
+  if (((UINT32 *)(&VarStoreHeader->Signature))[0] == 0xffffffff &&\r
+      ((UINT32 *)(&VarStoreHeader->Signature))[1] == 0xffffffff &&\r
+      ((UINT32 *)(&VarStoreHeader->Signature))[2] == 0xffffffff &&\r
+      ((UINT32 *)(&VarStoreHeader->Signature))[3] == 0xffffffff &&\r
       VarStoreHeader->Size == 0xffffffff &&\r
       VarStoreHeader->Format == 0xff &&\r
       VarStoreHeader->State == 0xff\r
       VarStoreHeader->Size == 0xffffffff &&\r
       VarStoreHeader->Format == 0xff &&\r
       VarStoreHeader->State == 0xff\r
index 73cb491ddc22850665110c736e676b7b6560c6f1..31c855d27bc18b5fa656c4e95bc7997859390efc 100644 (file)
@@ -23,7 +23,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/PcdLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/PeiServicesTablePointerLib.h>\r
 #include <Library/PcdLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/PeiServicesTablePointerLib.h>\r
-#include <VariableFormat.h>\r
+#include <Guid/VariableFormat.h>\r
 \r
 typedef struct {\r
   VARIABLE_HEADER *CurrPtr;\r
 \r
 typedef struct {\r
   VARIABLE_HEADER *CurrPtr;\r
index 48e9efc4abc23a71290fe51c48364cb2cf812a11..a83c3102ce0f1c281175a0ba0802842aae165c49 100644 (file)
@@ -99,6 +99,9 @@
   gEfiPeiReadOnlyVariablePpiGuid                # PPI ALWAYS_PRODUCED\r
   gEfiPeiReadOnlyVariable2PpiGuid               # PPI ALWAYS_PRODUCED\r
 \r
   gEfiPeiReadOnlyVariablePpiGuid                # PPI ALWAYS_PRODUCED\r
   gEfiPeiReadOnlyVariable2PpiGuid               # PPI ALWAYS_PRODUCED\r
 \r
+[Guids]\r
+  gEfiVariableGuid\r
+\r
 ################################################################################\r
 #\r
 # Pcd DYNAMIC - list of PCDs that this module is coded for.\r
 ################################################################################\r
 #\r
 # Pcd DYNAMIC - list of PCDs that this module is coded for.\r
index 86117a63d1964a4d331700c020ed47a7a7a596b4..ba4f553f4924dc54834c17e43c0e03b8200b77ad 100644 (file)
@@ -18,7 +18,7 @@
 #include <Uefi.h>\r
 #include <Library/UefiLib.h>\r
 #include <Library/UefiApplicationEntryPoint.h>\r
 #include <Uefi.h>\r
 #include <Library/UefiLib.h>\r
 #include <Library/UefiApplicationEntryPoint.h>\r
-#include <Guid/VariableInfo.h>\r
+#include <Guid/VariableFormat.h>\r
 \r
 \r
 /**\r
 \r
 \r
 /**\r
@@ -45,7 +45,7 @@ UefiMain (
   VARIABLE_INFO_ENTRY   *VariableInfo;\r
   VARIABLE_INFO_ENTRY   *Entry;\r
 \r
   VARIABLE_INFO_ENTRY   *VariableInfo;\r
   VARIABLE_INFO_ENTRY   *Entry;\r
 \r
-  Status = EfiGetSystemConfigurationTable (&gEfiVariableInfoGuid, (VOID **)&Entry);\r
+  Status = EfiGetSystemConfigurationTable (&gEfiVariableGuid, (VOID **)&Entry);\r
   if (!EFI_ERROR (Status) && (Entry != NULL)) {\r
     Print (L"Non-Volatile EFI Variables:\n");\r
     VariableInfo = Entry;\r
   if (!EFI_ERROR (Status) && (Entry != NULL)) {\r
     Print (L"Non-Volatile EFI Variables:\n");\r
     VariableInfo = Entry;\r
index 46e35bd1d1e87f31721fc873670fc7e748947c19..f963db57190b800a966d53e2bffd6b7aeba8c19f 100644 (file)
@@ -42,4 +42,4 @@
   UefiLib\r
 \r
 [Guids]\r
   UefiLib\r
 \r
 [Guids]\r
-  gEfiVariableInfoGuid        ## CONSUMES ## Configuration Table Guid\r
+  gEfiVariableGuid        ## CONSUMES ## Configuration Table Guid\r
diff --git a/MdeModulePkg/Include/Guid/VariableFormat.h b/MdeModulePkg/Include/Guid/VariableFormat.h
new file mode 100644 (file)
index 0000000..b5491e4
--- /dev/null
@@ -0,0 +1,159 @@
+/** @file\r
+  The variable data structures are related to EDK II specific UEFI variable implementation.\r
+  Variable data header and Variable storage region header are defined here.\r
+\r
+  Copyright (c) 2006 - 2008 Intel Corporation. <BR>\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  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
+\r
+**/\r
+\r
+#ifndef __VARIABLE_FORMAT_H__\r
+#define __VARIABLE_FORMAT_H__\r
+\r
+#define EFI_VARIABLE_GUID \\r
+  { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d } }\r
+\r
+extern EFI_GUID gEfiVariableGuid;\r
+\r
+///\r
+/// Alignment of variable name and data.\r
+/// For IA32/X64 architecture, the alignment is set to 1, and 8 is for IPF archtecture.\r
+///\r
+#if defined (MDE_CPU_IPF)\r
+#define ALIGNMENT         8\r
+#else\r
+#define ALIGNMENT         1\r
+#endif\r
+\r
+//\r
+// GET_PAD_SIZE to calculate miminal pad bytes to make current size satisfy the alignment requirement\r
+//\r
+#if ((ALIGNMENT == 0) || (ALIGNMENT == 1))\r
+#define GET_PAD_SIZE(a) (0)\r
+#else\r
+#define GET_PAD_SIZE(a) (((~a) + 1) & (ALIGNMENT - 1))\r
+#endif\r
+\r
+///\r
+/// Alignment of Variable Data Header in Variable Store region\r
+///\r
+#define HEADER_ALIGNMENT  4\r
+#define HEADER_ALIGN(Header)  (((UINTN) (Header) + HEADER_ALIGNMENT - 1) & (~(HEADER_ALIGNMENT - 1)))\r
+\r
+///\r
+/// Status of Variable Store Region\r
+///\r
+typedef enum {\r
+  EfiRaw,\r
+  EfiValid,\r
+  EfiInvalid,\r
+  EfiUnknown\r
+} VARIABLE_STORE_STATUS;\r
+\r
+#pragma pack(1)\r
+\r
+#define VARIABLE_STORE_SIGNATURE  EFI_VARIABLE_GUID\r
+\r
+///\r
+/// Variable Store Header Format and State\r
+///\r
+#define VARIABLE_STORE_FORMATTED          0x5a\r
+#define VARIABLE_STORE_HEALTHY            0xfe\r
+\r
+///\r
+/// Variable Store region header\r
+///\r
+typedef struct {\r
+  ///\r
+  /// Variable store region signature.\r
+  ///\r
+  EFI_GUID  Signature;\r
+  ///\r
+  /// Size of entire variable store, \r
+  /// including size of variable store header but not including the size of FvHeader.\r
+  ///\r
+  UINT32  Size;\r
+  ///\r
+  /// variable region format state\r
+  ///\r
+  UINT8   Format;\r
+  ///\r
+  /// variable region healthy state\r
+  ///\r
+  UINT8   State;\r
+  UINT16  Reserved;\r
+  UINT32  Reserved1;\r
+} VARIABLE_STORE_HEADER;\r
+\r
+///\r
+/// Variable data start flag\r
+///\r
+#define VARIABLE_DATA                     0x55AA\r
+\r
+///\r
+/// Variable State flags\r
+///\r
+#define VAR_IN_DELETED_TRANSITION     0xfe  ///< Variable is in obsolete transistion\r
+#define VAR_DELETED                   0xfd  ///< Variable is obsolete\r
+#define VAR_HEADER_VALID_ONLY         0x7f  ///< Variable header has been valid\r
+#define VAR_ADDED                     0x3f  ///< Variable has been completely added\r
+\r
+///\r
+/// Single Variable Data Header Structure\r
+///\r
+typedef struct {\r
+  ///\r
+  /// Variable Data Start Flag\r
+  ///\r
+  UINT16      StartId;\r
+  ///\r
+  /// Variable State defined above\r
+  ///\r
+  UINT8       State;\r
+  UINT8       Reserved;\r
+  ///\r
+  /// Attributes of variable defined in UEFI spec\r
+  ///\r
+  UINT32      Attributes;\r
+  ///\r
+  /// Size of variable Null-terminated Unicode string name\r
+  ///\r
+  UINT32      NameSize;\r
+  ///\r
+  /// Size of the variable data without this header\r
+  ///\r
+  UINT32      DataSize;\r
+  ///\r
+  /// A unique identifier for the vendor that produce and consume this varaible.\r
+  ///\r
+  EFI_GUID    VendorGuid;\r
+} VARIABLE_HEADER;\r
+\r
+#pragma pack()\r
+\r
+typedef struct _VARIABLE_INFO_ENTRY  VARIABLE_INFO_ENTRY;\r
+\r
+///\r
+/// This structure contains the variable list that is put in EFI system table.\r
+/// The variable driver collects all used variables at boot service time and produce this list.\r
+/// This is an optional feature to dump all used variables in shell environment. \r
+///\r
+struct _VARIABLE_INFO_ENTRY {\r
+  VARIABLE_INFO_ENTRY *Next;       ///> Pointer to next entry\r
+  EFI_GUID            VendorGuid;  ///> Guid of Variable \r
+  CHAR16              *Name;       ///> Name of Variable \r
+  UINT32              Attributes;  ///> Attributes of variable defined in UEFI spec\r
+  UINT32              ReadCount;   ///> Times to read this variable\r
+  UINT32              WriteCount;  ///> Times to write this variable\r
+  UINT32              DeleteCount; ///> Times to delete this variable\r
+  UINT32              CacheCount;  ///> Times that cache hits this variable\r
+  BOOLEAN             Volatile;    ///> TRUE if volatile FALSE if non-volatile\r
+};\r
+\r
+#endif // _EFI_VARIABLE_H_\r
diff --git a/MdeModulePkg/Include/Guid/VariableInfo.h b/MdeModulePkg/Include/Guid/VariableInfo.h
deleted file mode 100644 (file)
index 27a4daf..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/** @file\r
-  This file defines variable info guid and variable info entry.\r
-  This guid is used to specify the variable list put in the EFI system table.\r
-\r
-Copyright (c) 2006 - 2009, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  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
-\r
-**/\r
-\r
-#ifndef __VARIABLE_INFO_GUID_H__\r
-#define __VARIABLE_INFO_GUID_H__\r
-\r
-#define EFI_VARIABLE_INFO_GUID \\r
-  { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d } }\r
-\r
-extern EFI_GUID gEfiVariableInfoGuid;\r
-\r
-\r
-typedef struct _VARIABLE_INFO_ENTRY  VARIABLE_INFO_ENTRY;\r
-\r
-///\r
-/// This structure contains the variable list that is put in EFI system table.\r
-/// The variable driver collects all used variables at boot service time and produce this list.\r
-/// This is an optional feature to dump all used variables in shell environment. \r
-///\r
-struct _VARIABLE_INFO_ENTRY {\r
-  VARIABLE_INFO_ENTRY *Next;       ///> Pointer to next entry\r
-  EFI_GUID            VendorGuid;  ///> Guid of Variable \r
-  CHAR16              *Name;       ///> Name of Variable \r
-  UINT32              Attributes;  ///> Attributes of variable defined in UEFI spec\r
-  UINT32              ReadCount;   ///> Times to read this variable\r
-  UINT32              WriteCount;  ///> Times to write this variable\r
-  UINT32              DeleteCount; ///> Times to delete this variable\r
-  UINT32              CacheCount;  ///> Times that cache hits this variable\r
-  BOOLEAN             Volatile;    ///> TRUE if volatile FALSE if non-volatile\r
-};\r
-\r
-#endif\r
diff --git a/MdeModulePkg/Include/VariableFormat.h b/MdeModulePkg/Include/VariableFormat.h
deleted file mode 100644 (file)
index 40bd461..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-/** @file\r
-  The variable data structures are related to EDK II specific UEFI variable implementation.\r
-  Variable data header and Variable storage region header are defined here.\r
-\r
-  Copyright (c) 2006 - 2008 Intel Corporation. <BR>\r
-  All rights reserved. This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  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
-\r
-**/\r
-\r
-#ifndef __VARIABLE_FORMAT_H__\r
-#define __VARIABLE_FORMAT_H__\r
-\r
-///\r
-/// Alignment of variable name and data.\r
-/// For IA32/X64 architecture, the alignment is set to 1, and 8 is for IPF archtecture.\r
-///\r
-#if defined (MDE_CPU_IPF)\r
-#define ALIGNMENT         8\r
-#else\r
-#define ALIGNMENT         1\r
-#endif\r
-\r
-//\r
-// GET_PAD_SIZE to calculate miminal pad bytes to make current size satisfy the alignment requirement\r
-//\r
-#if ((ALIGNMENT == 0) || (ALIGNMENT == 1))\r
-#define GET_PAD_SIZE(a) (0)\r
-#else\r
-#define GET_PAD_SIZE(a) (((~a) + 1) & (ALIGNMENT - 1))\r
-#endif\r
-\r
-///\r
-/// Alignment of Variable Data Header in Variable Store region\r
-///\r
-#define HEADER_ALIGNMENT  4\r
-#define HEADER_ALIGN(Header)  (((UINTN) (Header) + HEADER_ALIGNMENT - 1) & (~(HEADER_ALIGNMENT - 1)))\r
-\r
-///\r
-/// Status of Variable Store Region\r
-///\r
-typedef enum {\r
-  EfiRaw,\r
-  EfiValid,\r
-  EfiInvalid,\r
-  EfiUnknown\r
-} VARIABLE_STORE_STATUS;\r
-\r
-#pragma pack(1)\r
-\r
-#define VARIABLE_STORE_SIGNATURE  SIGNATURE_32 ('$', 'V', 'S', 'S')\r
-\r
-///\r
-/// Variable Store Header Format and State\r
-///\r
-#define VARIABLE_STORE_FORMATTED          0x5a\r
-#define VARIABLE_STORE_HEALTHY            0xfe\r
-\r
-///\r
-/// Variable Store region header\r
-///\r
-typedef struct {\r
-  ///\r
-  /// Variable store region signature.\r
-  ///\r
-  UINT32  Signature;\r
-  ///\r
-  /// Size of variable store region including this header\r
-  ///\r
-  UINT32  Size;\r
-  ///\r
-  /// variable region format state\r
-  ///\r
-  UINT8   Format;\r
-  ///\r
-  /// variable region healthy state\r
-  ///\r
-  UINT8   State;\r
-  UINT16  Reserved;\r
-  UINT32  Reserved1;\r
-} VARIABLE_STORE_HEADER;\r
-\r
-///\r
-/// Variable data start flag\r
-///\r
-#define VARIABLE_DATA                     0x55AA\r
-\r
-///\r
-/// Variable State flags\r
-///\r
-#define VAR_IN_DELETED_TRANSITION     0xfe  ///< Variable is in obsolete transistion\r
-#define VAR_DELETED                   0xfd  ///< Variable is obsolete\r
-#define VAR_HEADER_VALID_ONLY         0x7f  ///< Variable header has been valid\r
-#define VAR_ADDED                     0x3f  ///< Variable has been completely added\r
-\r
-///\r
-/// Single Variable Data Header Structure\r
-///\r
-typedef struct {\r
-  ///\r
-  /// Variable Data Start Flag\r
-  ///\r
-  UINT16      StartId;\r
-  ///\r
-  /// Variable State defined above\r
-  ///\r
-  UINT8       State;\r
-  UINT8       Reserved;\r
-  ///\r
-  /// Attributes of variable defined in UEFI spec\r
-  ///\r
-  UINT32      Attributes;\r
-  ///\r
-  /// Size of variable Null-terminated Unicode string name\r
-  ///\r
-  UINT32      NameSize;\r
-  ///\r
-  /// Size of the variable data without this header\r
-  ///\r
-  UINT32      DataSize;\r
-  ///\r
-  /// A unique identifier for the vendor that produce and consume this varaible.\r
-  ///\r
-  EFI_GUID    VendorGuid;\r
-} VARIABLE_HEADER;\r
-\r
-#pragma pack()\r
-\r
-#endif // _EFI_VARIABLE_H_\r
index 1efb4937a79906c840f11c9891c84991ccc018bc..7cede71388388a4b12989fa23156ce037fb6bcde 100644 (file)
@@ -36,7 +36,7 @@
 #include <Library/PlatformDriverOverrideLib.h>\r
 \r
 #include <Guid/OverrideVariable.h>\r
 #include <Library/PlatformDriverOverrideLib.h>\r
 \r
 #include <Guid/OverrideVariable.h>\r
-#include <VariableFormat.h>\r
+#include <Guid/VariableFormat.h>\r
 \r
 \r
 #define PLATFORM_OVERRIDE_ITEM_SIGNATURE      SIGNATURE_32('p','d','o','i')\r
 \r
 \r
 #define PLATFORM_OVERRIDE_ITEM_SIGNATURE      SIGNATURE_32('p','d','o','i')\r
index 86754adec4cd9ed98f135d9f2cf6c7e92188cf53..871611cf57766593c0e4d5c0f60707deb6fbd17f 100644 (file)
   ## Include/Guid/PeiPeCoffLoader.h\r
   gEfiPeiPeCoffLoaderGuid        = { 0xD8117CFF, 0x94A6, 0x11D4, { 0x9A, 0x3A, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D }}\r
   \r
   ## Include/Guid/PeiPeCoffLoader.h\r
   gEfiPeiPeCoffLoaderGuid        = { 0xD8117CFF, 0x94A6, 0x11D4, { 0x9A, 0x3A, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D }}\r
   \r
-  ## Guid specify the variable list entries put in the EFI system table.\r
-  ## Include/Guid/VariableInfo.h\r
-  gEfiVariableInfoGuid           = { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}\r
+  ## Guid acted as variable store header's signature and to specify the variable list entries put in the EFI system table.\r
+  ## Include/Guid/VariableFormat.h\r
+  gEfiVariableGuid           = { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}\r
   \r
   ## Platform Override Variable guid\r
   ## Include/Guid/OverrideVariable.h\r
   \r
   ## Platform Override Variable guid\r
   ## Include/Guid/OverrideVariable.h\r
index 76f9f0926071a79d4ee476ee3cc886f0512937f4..1fdf25de27964ad4a69696a80157ebca3ac5859b 100644 (file)
@@ -822,7 +822,7 @@ InitializeVariableStore (
   *VariableBase             = (EFI_PHYSICAL_ADDRESS) (UINTN) VariableStore;\r
   *LastVariableOffset       = sizeof (VARIABLE_STORE_HEADER);\r
 \r
   *VariableBase             = (EFI_PHYSICAL_ADDRESS) (UINTN) VariableStore;\r
   *LastVariableOffset       = sizeof (VARIABLE_STORE_HEADER);\r
 \r
-  VariableStore->Signature  = VARIABLE_STORE_SIGNATURE;\r
+  CopyGuid (&VariableStore->Signature, &gEfiVariableGuid);\r
   VariableStore->Size       = FixedPcdGet32(PcdVariableStoreSize);\r
   VariableStore->Format     = VARIABLE_STORE_FORMATTED;\r
   VariableStore->State      = VARIABLE_STORE_HEALTHY;\r
   VariableStore->Size       = FixedPcdGet32(PcdVariableStoreSize);\r
   VariableStore->Format     = VARIABLE_STORE_FORMATTED;\r
   VariableStore->State      = VARIABLE_STORE_HEALTHY;\r
index 12cbbc929a1afe4a43cb20c0ed9938a86d175d4d..5e25d1efae4a862caef20cde35d8ec1b232d8961 100644 (file)
@@ -56,6 +56,7 @@
 \r
 [Guids]\r
   gEfiEventVirtualAddressChangeGuid             ## PRODUCES ## Event\r
 \r
 [Guids]\r
   gEfiEventVirtualAddressChangeGuid             ## PRODUCES ## Event\r
+  gEfiVariableGuid\r
 \r
 [Pcd.common]\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize\r
 \r
 [Pcd.common]\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize\r
index 482a192a381eb4de6e64e44fe65ed59846d7be87..a3fc9d1eeb31654991ed975735b319613d6e0aea 100644 (file)
@@ -31,7 +31,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/UefiLib.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/PcdLib.h>\r
 #include <Library/UefiLib.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/PcdLib.h>\r
-#include <VariableFormat.h>\r
+#include <Guid/VariableFormat.h>\r
 \r
 #include <Guid/EventGroup.h>\r
 \r
 \r
 #include <Guid/EventGroup.h>\r
 \r
index f98d2364435c8bb1b0041b3597a14abba45f46c2..7f4b4f68d734ba9ee462c1cf976eb39ca70bc791 100644 (file)
@@ -268,7 +268,8 @@ GetVariableStoreStatus (
   IN VARIABLE_STORE_HEADER *VarStoreHeader\r
   )\r
 {\r
   IN VARIABLE_STORE_HEADER *VarStoreHeader\r
   )\r
 {\r
-  if (VarStoreHeader->Signature == VARIABLE_STORE_SIGNATURE &&\r
+       \r
+  if (CompareGuid (&VarStoreHeader->Signature, &gEfiVariableGuid) &&\r
       VarStoreHeader->Format == VARIABLE_STORE_FORMATTED &&\r
       VarStoreHeader->State == VARIABLE_STORE_HEALTHY\r
       ) {\r
       VarStoreHeader->Format == VARIABLE_STORE_FORMATTED &&\r
       VarStoreHeader->State == VARIABLE_STORE_HEALTHY\r
       ) {\r
@@ -276,7 +277,10 @@ GetVariableStoreStatus (
     return EfiValid;\r
   }\r
 \r
     return EfiValid;\r
   }\r
 \r
-  if (VarStoreHeader->Signature == 0xffffffff &&\r
+  if (((UINT32 *)(&VarStoreHeader->Signature))[0] == 0xffffffff &&\r
+      ((UINT32 *)(&VarStoreHeader->Signature))[1] == 0xffffffff &&\r
+      ((UINT32 *)(&VarStoreHeader->Signature))[2] == 0xffffffff &&\r
+      ((UINT32 *)(&VarStoreHeader->Signature))[3] == 0xffffffff &&\r
       VarStoreHeader->Size == 0xffffffff &&\r
       VarStoreHeader->Format == 0xff &&\r
       VarStoreHeader->State == 0xff\r
       VarStoreHeader->Size == 0xffffffff &&\r
       VarStoreHeader->Format == 0xff &&\r
       VarStoreHeader->State == 0xff\r
index 7641a760d09fd36bfd1f1d461375e9e8ef170c6b..7cee1f08b55fbfca0f0ac7b52efc38cb11945f93 100644 (file)
@@ -28,7 +28,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/PeiServicesTablePointerLib.h>\r
 #include <Library/PeiServicesLib.h>\r
 \r
 #include <Library/PeiServicesTablePointerLib.h>\r
 #include <Library/PeiServicesLib.h>\r
 \r
-#include <VariableFormat.h>\r
+#include <Guid/VariableFormat.h>\r
 \r
 typedef struct {\r
   VARIABLE_HEADER *CurrPtr;\r
 \r
 typedef struct {\r
   VARIABLE_HEADER *CurrPtr;\r
index 46e29b2cca79798d0b9305eb9e2259d76e655f97..2e5580bde658d9382b181ae4f7e000d93b89797e 100644 (file)
@@ -57,6 +57,9 @@
   PeiServicesTablePointerLib\r
   PeiServicesLib\r
 \r
   PeiServicesTablePointerLib\r
   PeiServicesLib\r
 \r
+[Guids]\r
+  gEfiVariableGuid\r
+\r
 [Ppis]\r
   gEfiPeiReadOnlyVariable2PpiGuid                ## SOMETIMES_PRODUCES (Not for boot mode RECOVERY)\r
 \r
 [Ppis]\r
   gEfiPeiReadOnlyVariable2PpiGuid                ## SOMETIMES_PRODUCES (Not for boot mode RECOVERY)\r
 \r
index 0d03376359fb550488f7c6e57e20f15e99d6cb97..d25fe038aa6800fc40e2e247b50fab72d88c8dab 100644 (file)
@@ -137,7 +137,7 @@ UpdateVariableInfo (
       StrCpy (gVariableInfo->Name, VariableName);\r
       gVariableInfo->Volatile = Volatile;\r
 \r
       StrCpy (gVariableInfo->Name, VariableName);\r
       gVariableInfo->Volatile = Volatile;\r
 \r
-      gBS->InstallConfigurationTable (&gEfiVariableInfoGuid, gVariableInfo);\r
+      gBS->InstallConfigurationTable (&gEfiVariableGuid, gVariableInfo);\r
     }\r
 \r
     \r
     }\r
 \r
     \r
@@ -362,16 +362,19 @@ GetVariableStoreStatus (
   IN VARIABLE_STORE_HEADER *VarStoreHeader\r
   )\r
 {\r
   IN VARIABLE_STORE_HEADER *VarStoreHeader\r
   )\r
 {\r
-  if (VarStoreHeader->Signature == VARIABLE_STORE_SIGNATURE &&\r
+  if (CompareGuid (&VarStoreHeader->Signature, &gEfiVariableGuid) &&\r
       VarStoreHeader->Format == VARIABLE_STORE_FORMATTED &&\r
       VarStoreHeader->State == VARIABLE_STORE_HEALTHY\r
       ) {\r
 \r
     return EfiValid;\r
       VarStoreHeader->Format == VARIABLE_STORE_FORMATTED &&\r
       VarStoreHeader->State == VARIABLE_STORE_HEALTHY\r
       ) {\r
 \r
     return EfiValid;\r
-  } else if (VarStoreHeader->Signature == 0xffffffff &&\r
-           VarStoreHeader->Size == 0xffffffff &&\r
-           VarStoreHeader->Format == 0xff &&\r
-           VarStoreHeader->State == 0xff\r
+  } else if (((UINT32 *)(&VarStoreHeader->Signature))[0] == 0xffffffff &&\r
+             ((UINT32 *)(&VarStoreHeader->Signature))[1] == 0xffffffff &&\r
+             ((UINT32 *)(&VarStoreHeader->Signature))[2] == 0xffffffff &&\r
+             ((UINT32 *)(&VarStoreHeader->Signature))[3] == 0xffffffff &&\r
+             VarStoreHeader->Size == 0xffffffff &&\r
+             VarStoreHeader->Format == 0xff &&\r
+             VarStoreHeader->State == 0xff\r
           ) {\r
 \r
     return EfiRaw;\r
           ) {\r
 \r
     return EfiRaw;\r
@@ -1849,7 +1852,7 @@ VariableCommonInitialize (
   mVariableModuleGlobal->VariableGlobal.VolatileVariableBase = (EFI_PHYSICAL_ADDRESS) (UINTN) VolatileVariableStore;\r
   mVariableModuleGlobal->VolatileLastVariableOffset = (UINTN) GetStartPointer (VolatileVariableStore) - (UINTN) VolatileVariableStore;\r
 \r
   mVariableModuleGlobal->VariableGlobal.VolatileVariableBase = (EFI_PHYSICAL_ADDRESS) (UINTN) VolatileVariableStore;\r
   mVariableModuleGlobal->VolatileLastVariableOffset = (UINTN) GetStartPointer (VolatileVariableStore) - (UINTN) VolatileVariableStore;\r
 \r
-  VolatileVariableStore->Signature                  = VARIABLE_STORE_SIGNATURE;\r
+  CopyGuid (&VolatileVariableStore->Signature, &gEfiVariableGuid);\r
   VolatileVariableStore->Size                       = FixedPcdGet32(PcdVariableStoreSize);\r
   VolatileVariableStore->Format                     = VARIABLE_STORE_FORMATTED;\r
   VolatileVariableStore->State                      = VARIABLE_STORE_HEALTHY;\r
   VolatileVariableStore->Size                       = FixedPcdGet32(PcdVariableStoreSize);\r
   VolatileVariableStore->Format                     = VARIABLE_STORE_FORMATTED;\r
   VolatileVariableStore->State                      = VARIABLE_STORE_HEALTHY;\r
index ec35a7dfcfd38b4f25bf55b1a7e545fa26474869..4e861dccbcec52bda790818b56e7bf334d4dd8e4 100644 (file)
@@ -34,10 +34,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/BaseLib.h>\r
 #include <Library/SynchronizationLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/SynchronizationLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
-#include <Guid/VariableInfo.h>\r
 #include <Guid/GlobalVariable.h>\r
 #include <Guid/EventGroup.h>\r
 #include <Guid/GlobalVariable.h>\r
 #include <Guid/EventGroup.h>\r
-#include <VariableFormat.h>\r
+#include <Guid/VariableFormat.h>\r
 \r
 #define VARIABLE_RECLAIM_THRESHOLD (1024)\r
 \r
 \r
 #define VARIABLE_RECLAIM_THRESHOLD (1024)\r
 \r
index c7ba49b11f10ffe0ef9398a60ad1e032c630fc2d..44063224a7ebe1788816d8ade15234dbecda9ace 100644 (file)
@@ -60,7 +60,7 @@
   gEfiVariableArchProtocolGuid                  ## ALWAYS_PRODUCES\r
 \r
 [Guids]\r
   gEfiVariableArchProtocolGuid                  ## ALWAYS_PRODUCES\r
 \r
 [Guids]\r
-  gEfiVariableInfoGuid                          ## PRODUCES ## Configuration Table Guid \r
+  gEfiVariableGuid                              ## PRODUCES ## Configuration Table Guid \r
   gEfiGlobalVariableGuid                        ## PRODUCES ## Variable Guid\r
   gEfiEventVirtualAddressChangeGuid             ## PRODUCES ## Event\r
 \r
   gEfiGlobalVariableGuid                        ## PRODUCES ## Variable Guid\r
   gEfiEventVirtualAddressChangeGuid             ## PRODUCES ## Event\r
 \r
index 044211651fcc59ee3ef0fb038ec03d18693d6de5..41563deea9d86e7c128456c0b8a8e8a1670bbfb3 100644 (file)
@@ -73,9 +73,13 @@ DATA = {
   #Blockmap[1]: End\r
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
   ## This is the VARIABLE_STORE_HEADER\r
   #Blockmap[1]: End\r
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
   ## This is the VARIABLE_STORE_HEADER\r
-  #Signature: "$VSS"      #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (HeaderLength) = 0xBFB8\r
-                                # This can speed up the Variable Dispatch a bit.\r
-  0x24, 0x56, 0x53, 0x53, 0xB8, 0xBF, 0x00, 0x00,\r
+  #Signature: gEfiVariableGuid =\r
+  #  { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}\r
+  0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,\r
+  0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,\r
+  #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8\r
+  # This can speed up the Variable Dispatch a bit.\r
+  0xB8, 0xBF, 0x00, 0x00,\r
   #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32\r
   0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
 }\r
   #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32\r
   0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
 }\r
@@ -216,6 +220,17 @@ INF  Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystemDxe.inf
 INF  MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf\r
 INF  MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf\r
 \r
 INF  MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf\r
 INF  MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf\r
 \r
+INF  MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf\r
+INF  MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf\r
+INF  MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf\r
+INF  MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf\r
+INF  MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf\r
+INF  MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf\r
+INF  MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf\r
+INF  MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf\r
+INF  MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf\r
+INF  Nt32Pkg/SnpNt32Dxe/SnpNt32Dxe.inf\r
+INF  MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf\r
 ################################################################################\r
 #\r
 # FILE statements are provided so that a platform integrator can include\r
 ################################################################################\r
 #\r
 # FILE statements are provided so that a platform integrator can include\r
index 956895697a9bf3bf3c7c54c3602a598b04b1c8fb..b54537cfc3f6e3572c983c44887dbfef206d2d54 100644 (file)
@@ -73,9 +73,13 @@ DATA = {
   # Blockmap[1]: End\r
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
   ## This is the VARIABLE_STORE_HEADER\r
   # Blockmap[1]: End\r
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
   ## This is the VARIABLE_STORE_HEADER\r
-  #Signature: "$VSS"      #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (HeaderLength) = 0xBFB8\r
-                          # This can speed up the Variable Dispatch a bit.\r
-  0x24, 0x56, 0x53, 0x53, 0xB8, 0xBF, 0x00, 0x00,\r
+  #Signature: gEfiVariableGuid =\r
+  #  { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}\r
+  0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,\r
+  0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,\r
+  #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8\r
+  # This can speed up the Variable Dispatch a bit.\r
+  0xB8, 0xBF, 0x00, 0x00,\r
   #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32\r
   0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
 }\r
   #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32\r
   0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
 }\r