/** @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
#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
#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
\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
@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
);\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
);\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