]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolDriver.h
IntelFrameworkModulePkg FwVolDxe: Get FV auth status propagated from PEI
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / FirmwareVolume / FwVolDxe / FwVolDriver.h
index 2de65f511d3182bb956ce41a6ce6b4d12e3a21bc..b14a488ead880612d420b9016ec284e91177d7b3 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Common defines and definitions for a FwVolDxe driver.\r
 \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -33,6 +33,7 @@
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/HobLib.h>\r
 \r
 #define FV_DEVICE_SIGNATURE           SIGNATURE_32 ('_', 'F', 'V', '_')\r
 \r
@@ -52,7 +53,7 @@
 #define MAX_FILES 32\r
 \r
 //\r
-// Used to caculate from address -> Lba\r
+// Used to calculate from address -> Lba\r
 //\r
 typedef struct {\r
   LIST_ENTRY      Link;\r
@@ -94,6 +95,7 @@ typedef struct {
 \r
   FFS_FILE_LIST_ENTRY                 *CurrentFfsFile;\r
   BOOLEAN                             IsFfs3Fv;\r
+  UINT32                              AuthenticationStatus;\r
 } FV_DEVICE;\r
 \r
 #define FV_DEVICE_FROM_THIS(a)  CR (a, FV_DEVICE, Fv, FV_DEVICE_SIGNATURE)\r
@@ -483,6 +485,8 @@ IsValidFFSFile (
   @retval EFI_SUCCESS           Successfully read volume header to the allocated\r
                                 buffer.\r
   @retval EFI_ACCESS_DENIED     Read status of FV is not enabled.\r
+  @retval EFI_INVALID_PARAMETER The FV Header signature is not as expected or\r
+                                the file system could not be understood.\r
 **/\r
 EFI_STATUS\r
 GetFwVolHeader (\r
@@ -613,9 +617,9 @@ FvCreateMultipleFiles (
   );\r
 \r
 /**\r
-  Caculate the checksum for the FFS header.\r
+  Calculate the checksum for the FFS header.\r
 \r
-  @param FfsHeader   FFS File Header which needs to caculate the checksum\r
+  @param FfsHeader   FFS File Header which needs to calculate the checksum\r
 \r
 **/\r
 VOID\r
@@ -624,9 +628,9 @@ SetHeaderChecksum (
   );\r
 \r
 /**\r
-  Caculate the checksum for the FFS File.\r
+  Calculate the checksum for the FFS File.\r
 \r
-  @param FfsHeader       FFS File Header which needs to caculate the checksum\r
+  @param FfsHeader       FFS File Header which needs to calculate the checksum\r
   @param ActualFileSize  The whole Ffs File Length.\r
 \r
 **/\r