EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Defines | Functions

EmulatorPkg/Library/SecPeiServicesLib/FwVol.c File Reference

#include <PiPei.h>

Go to the source code of this file.

Defines

#define GET_OCCUPIED_SIZE(ActualSize, Alignment)   (ActualSize) + (((Alignment) - ((ActualSize) & ((Alignment) - 1))) & ((Alignment) - 1))

Functions

EFI_FFS_FILE_STATE GetFileState (IN UINT8 ErasePolarity, IN EFI_FFS_FILE_HEADER *FfsHeader)
UINT8 CalculateHeaderChecksum (IN EFI_FFS_FILE_HEADER *FileHeader)
EFI_STATUS SecFfsFindNextFile (IN EFI_FV_FILETYPE SearchType, IN EFI_PEI_FV_HANDLE FvHandle, IN OUT EFI_PEI_FILE_HANDLE *FileHandle)
EFI_STATUS SecFfsFindSectionData (IN EFI_SECTION_TYPE SectionType, IN EFI_FFS_FILE_HEADER *FfsFileHeader, IN OUT VOID **SectionData)

Define Documentation

#define GET_OCCUPIED_SIZE (   ActualSize,
  Alignment 
)    (ActualSize) + (((Alignment) - ((ActualSize) & ((Alignment) - 1))) & ((Alignment) - 1))

Definition at line 19 of file FwVol.c.


Function Documentation

UINT8 CalculateHeaderChecksum ( IN EFI_FFS_FILE_HEADER FileHeader)

Definition at line 60 of file FwVol.c.

EFI_FFS_FILE_STATE GetFileState ( IN UINT8  ErasePolarity,
IN EFI_FFS_FILE_HEADER FfsHeader 
)

Returns the highest bit set of the State field

Parameters:
ErasePolarityErase Polarity as defined by EFI_FVB2_ERASE_POLARITY in the Attributes field.
FfsHeaderPointer to FFS File Header
Return values:
thehighest bit in the State field

Definition at line 23 of file FwVol.c.

EFI_STATUS SecFfsFindNextFile ( IN EFI_FV_FILETYPE  SearchType,
IN EFI_PEI_FV_HANDLE  FvHandle,
IN OUT EFI_PEI_FILE_HANDLE FileHandle 
)

Definition at line 106 of file FwVol.c.

EFI_STATUS SecFfsFindSectionData ( IN EFI_SECTION_TYPE  SectionType,
IN EFI_FFS_FILE_HEADER FfsFileHeader,
IN OUT VOID **  SectionData 
)

Definition at line 223 of file FwVol.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines