/** @file\r
FFS file access utilities.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\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
**/\r
\r
\r
-#include <DxeMain.h>\r
+#include "DxeMain.h"\r
+#include "FwVolDriver.h"\r
\r
\r
/**\r
Get the FFS file state by checking the highest bit set in the header's state field.\r
\r
- @param ErasePolarity Erase polarity attribute of the firmware volume \r
- @param FfsHeader Points to the FFS file header \r
+ @param ErasePolarity Erase polarity attribute of the firmware volume\r
+ @param FfsHeader Points to the FFS file header\r
\r
@return FFS File state\r
\r
/**\r
Check if a block of buffer is erased.\r
\r
- @param ErasePolarity Erase polarity attribute of the firmware volume \r
- @param InBuffer The buffer to be checked \r
- @param BufferSize Size of the buffer in bytes \r
+ @param ErasePolarity Erase polarity attribute of the firmware volume\r
+ @param InBuffer The buffer to be checked\r
+ @param BufferSize Size of the buffer in bytes\r
\r
- @retval TRUE The block of buffer is erased \r
+ @retval TRUE The block of buffer is erased\r
@retval FALSE The block of buffer is not erased\r
\r
**/\r
/**\r
Verify checksum of the firmware volume header.\r
\r
- @param FvHeader Points to the firmware volume header to be checked \r
+ @param FvHeader Points to the firmware volume header to be checked\r
\r
- @retval TRUE Checksum verification passed \r
+ @retval TRUE Checksum verification passed\r
@retval FALSE Checksum verification failed\r
\r
**/\r
/**\r
Verify checksum of the FFS file header.\r
\r
- @param FfsHeader Points to the FFS file header to be checked \r
+ @param FfsHeader Points to the FFS file header to be checked\r
\r
- @retval TRUE Checksum verification passed \r
+ @retval TRUE Checksum verification passed\r
@retval FALSE Checksum verification failed\r
\r
**/\r
/**\r
Check if it's a valid FFS file header.\r
\r
- @param ErasePolarity Erase polarity attribute of the firmware volume \r
- @param FfsHeader Points to the FFS file header to be checked \r
- @param FileState FFS file state to be returned \r
+ @param ErasePolarity Erase polarity attribute of the firmware volume\r
+ @param FfsHeader Points to the FFS file header to be checked\r
+ @param FileState FFS file state to be returned\r
\r
- @retval TRUE Valid FFS file header \r
+ @retval TRUE Valid FFS file header\r
@retval FALSE Invalid FFS file header\r
\r
**/\r
// Here we need to verify header checksum\r
//\r
return VerifyHeaderChecksum (FfsHeader);\r
- \r
+\r
case EFI_FILE_HEADER_CONSTRUCTION:\r
case EFI_FILE_HEADER_INVALID:\r
default:\r
Check if it's a valid FFS file.\r
Here we are sure that it has a valid FFS file header since we must call IsValidFfsHeader() first.\r
\r
- @param ErasePolarity Erase polarity attribute of the firmware volume \r
- @param FfsHeader Points to the FFS file to be checked \r
+ @param ErasePolarity Erase polarity attribute of the firmware volume\r
+ @param FfsHeader Points to the FFS file to be checked\r
\r
- @retval TRUE Valid FFS file \r
+ @retval TRUE Valid FFS file\r
@retval FALSE Invalid FFS file\r
\r
**/\r