TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_FFS_FILE_STATE | GetFileState (IN UINT8 ErasePolarity, IN EFI_FFS_FILE_HEADER *FfsHeader) |
BOOLEAN | IsBufferErased (IN UINT8 ErasePolarity, IN VOID *InBuffer, IN UINTN BufferSize) |
BOOLEAN | VerifyFvHeaderChecksum (IN EFI_FIRMWARE_VOLUME_HEADER *FvHeader) |
BOOLEAN | VerifyHeaderChecksum (IN EFI_FFS_FILE_HEADER *FfsHeader) |
BOOLEAN | IsValidFfsHeader (IN UINT8 ErasePolarity, IN EFI_FFS_FILE_HEADER *FfsHeader, OUT EFI_FFS_FILE_STATE *FileState) |
BOOLEAN | IsValidFfsFile (IN UINT8 ErasePolarity, IN EFI_FFS_FILE_HEADER *FfsHeader) |
FFS file access utilities.
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Ffs.c.
EFI_FFS_FILE_STATE GetFileState | ( | IN UINT8 | ErasePolarity, |
IN EFI_FFS_FILE_HEADER * | FfsHeader | ||
) |
Check if a block of buffer is erased.
ErasePolarity | Erase polarity attribute of the firmware volume |
InBuffer | The buffer to be checked |
BufferSize | Size of the buffer in bytes |
TRUE | The block of buffer is erased |
FALSE | The block of buffer is not erased |
BOOLEAN IsValidFfsFile | ( | IN UINT8 | ErasePolarity, |
IN EFI_FFS_FILE_HEADER * | FfsHeader | ||
) |
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.
ErasePolarity | Erase polarity attribute of the firmware volume |
FfsHeader | Points to the FFS file to be checked |
TRUE | Valid FFS file |
FALSE | Invalid FFS file |
BOOLEAN IsValidFfsHeader | ( | IN UINT8 | ErasePolarity, |
IN EFI_FFS_FILE_HEADER * | FfsHeader, | ||
OUT EFI_FFS_FILE_STATE * | FileState | ||
) |
Check if it's a valid FFS file header.
ErasePolarity | Erase polarity attribute of the firmware volume |
FfsHeader | Points to the FFS file header to be checked |
FileState | FFS file state to be returned |
TRUE | Valid FFS file header |
FALSE | Invalid FFS file header |
BOOLEAN VerifyFvHeaderChecksum | ( | IN EFI_FIRMWARE_VOLUME_HEADER * | FvHeader | ) |
BOOLEAN VerifyHeaderChecksum | ( | IN EFI_FFS_FILE_HEADER * | FfsHeader | ) |