Code Scrub for Dxe Core.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5560 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2008-07-24 02:54:45 +00:00
parent 11c11e4ecf
commit 022c6d45ef
38 changed files with 2499 additions and 2504 deletions

View File

@ -19,8 +19,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
/**
Get the FFS file state by checking the highest bit set in the header's state field.
@param ErasePolarity Erase polarity attribute of the firmware volume
@param FfsHeader Points to the FFS file header
@param ErasePolarity Erase polarity attribute of the firmware volume
@param FfsHeader Points to the FFS file header
@return FFS File state
@ -53,11 +53,11 @@ GetFileState (
/**
Check if a block of buffer is erased.
@param ErasePolarity Erase polarity attribute of the firmware volume
@param InBuffer The buffer to be checked
@param BufferSize Size of the buffer in bytes
@param ErasePolarity Erase polarity attribute of the firmware volume
@param InBuffer The buffer to be checked
@param BufferSize Size of the buffer in bytes
@retval TRUE The block of buffer is erased
@retval TRUE The block of buffer is erased
@retval FALSE The block of buffer is not erased
**/
@ -93,9 +93,9 @@ IsBufferErased (
/**
Verify checksum of the firmware volume header.
@param FvHeader Points to the firmware volume header to be checked
@param FvHeader Points to the firmware volume header to be checked
@retval TRUE Checksum verification passed
@retval TRUE Checksum verification passed
@retval FALSE Checksum verification failed
**/
@ -128,9 +128,9 @@ VerifyFvHeaderChecksum (
/**
Verify checksum of the FFS file header.
@param FfsHeader Points to the FFS file header to be checked
@param FfsHeader Points to the FFS file header to be checked
@retval TRUE Checksum verification passed
@retval TRUE Checksum verification passed
@retval FALSE Checksum verification failed
**/
@ -163,11 +163,11 @@ VerifyHeaderChecksum (
/**
Check if it's a valid FFS file header.
@param ErasePolarity Erase polarity attribute of the firmware volume
@param FfsHeader Points to the FFS file header to be checked
@param FileState FFS file state to be returned
@param ErasePolarity Erase polarity attribute of the firmware volume
@param FfsHeader Points to the FFS file header to be checked
@param FileState FFS file state to be returned
@retval TRUE Valid FFS file header
@retval TRUE Valid FFS file header
@retval FALSE Invalid FFS file header
**/
@ -189,7 +189,7 @@ IsValidFfsHeader (
// Here we need to verify header checksum
//
return VerifyHeaderChecksum (FfsHeader);
case EFI_FILE_HEADER_CONSTRUCTION:
case EFI_FILE_HEADER_INVALID:
default:
@ -202,10 +202,10 @@ IsValidFfsHeader (
Check if it's a valid FFS file.
Here we are sure that it has a valid FFS file header since we must call IsValidFfsHeader() first.
@param ErasePolarity Erase polarity attribute of the firmware volume
@param FfsHeader Points to the FFS file to be checked
@param ErasePolarity Erase polarity attribute of the firmware volume
@param FfsHeader Points to the FFS file to be checked
@retval TRUE Valid FFS file
@retval TRUE Valid FFS file
@retval FALSE Invalid FFS file
**/