]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/FvbServicesRuntimeDxe/FvbInfo.c
Enhance inf to follow spec.
[mirror_edk2.git] / UnixPkg / FvbServicesRuntimeDxe / FvbInfo.c
index 6670359099e50d8a86ffafa72878494c33ba39df..ebfa28dd95832ec245e2175ae348c07f3b326597 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+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
@@ -21,9 +21,7 @@ Abstract:
 --*/\r
 #include "PiDxe.h"\r
 #include <Guid/EventGroup.h>\r
-#include <Protocol/FvbExtension.h>\r
 #include <Protocol/FirmwareVolumeBlock.h>\r
-#include <Guid/AlternateFvBlock.h>\r
 #include <Protocol/DevicePath.h>\r
 \r
 #include <Library/UefiLib.h>\r
@@ -37,6 +35,8 @@ Abstract:
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/PcdLib.h>\r
+#include <Library/DevicePathLib.h>\r
+\r
 #include <Guid/FirmwareFileSystem2.h>\r
 #include <Guid/SystemNvDataGuid.h>\r
 \r
@@ -73,7 +73,7 @@ EFI_FVB_MEDIA_INFO  mPlatformFvbMediaInfo[] = {
       {\r
         0,\r
       },  // Reserved[1]\r
-      1,  // Revision\r
+      2,  // Revision\r
       {\r
         {\r
           FixedPcdGet32 (PcdUnixFlashFvRecoverySize)/FixedPcdGet32 (PcdUnixFirmwareBlockSize),\r
@@ -100,7 +100,7 @@ EFI_FVB_MEDIA_INFO  mPlatformFvbMediaInfo[] = {
       {\r
         0,\r
       },  // ZeroVector[16]\r
-      EFI_SYSTEM_NV_DATA_HOB_GUID,\r
+      EFI_SYSTEM_NV_DATA_FV_GUID,\r
       FixedPcdGet32 (PcdFlashNvStorageVariableSize) + \\r
       FixedPcdGet32 (PcdFlashNvStorageFtwWorkingSize) + \\r
       FixedPcdGet32 (PcdFlashNvStorageFtwSpareSize) + \\r
@@ -117,7 +117,7 @@ EFI_FVB_MEDIA_INFO  mPlatformFvbMediaInfo[] = {
       {\r
         0,\r
       },  // Reserved[1]\r
-      1,  // Revision\r
+      2,  // Revision\r
       {\r
         {\r
           (FixedPcdGet32 (PcdFlashNvStorageVariableSize) + \\r