10#ifndef __FW_VOL_DRIVER_H_
11#define __FW_VOL_DRIVER_H_
13#define FV2_DEVICE_SIGNATURE SIGNATURE_32 ('_', 'F', 'V', '2')
39 UINT32 AuthenticationStatus;
42 BOOLEAN IsMemoryMapped;
45#define FV_DEVICE_FROM_THIS(a) CR(a, FV_DEVICE, Fv, FV2_DEVICE_SIGNATURE)
132 IN OUT EFI_FV_FILETYPE *FileType,
183 IN OUT VOID **Buffer,
185 OUT EFI_FV_FILETYPE *FoundType,
187 OUT UINT32 *AuthenticationStatus
223 IN EFI_SECTION_TYPE SectionType,
225 IN OUT VOID **Buffer,
227 OUT UINT32 *AuthenticationStatus
255 IN UINT32 NumberOfFiles,
317 IN UINT8 ErasePolarity,
333 IN UINT8 ErasePolarity,
365 IN UINT8 ErasePolarity,
367 OUT EFI_FFS_FILE_STATE *FileState
383 IN UINT8 ErasePolarity,
UINT32 EFI_FV_WRITE_POLICY
EFI_STATUS EFIAPI FvReadFile(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN CONST EFI_GUID *NameGuid, IN OUT VOID **Buffer, IN OUT UINTN *BufferSize, OUT EFI_FV_FILETYPE *FoundType, OUT EFI_FV_FILE_ATTRIBUTES *FileAttributes, OUT UINT32 *AuthenticationStatus)
EFI_STATUS EFIAPI FvGetVolumeAttributes(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, OUT EFI_FV_ATTRIBUTES *Attributes)
EFI_STATUS EFIAPI FvSetVolumeInfo(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN CONST EFI_GUID *InformationType, IN UINTN BufferSize, IN CONST VOID *Buffer)
EFI_FFS_FILE_STATE GetFileState(IN UINT8 ErasePolarity, IN EFI_FFS_FILE_HEADER *FfsHeader)
BOOLEAN IsValidFfsHeader(IN UINT8 ErasePolarity, IN EFI_FFS_FILE_HEADER *FfsHeader, OUT EFI_FFS_FILE_STATE *FileState)
EFI_STATUS EFIAPI FvGetVolumeInfo(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN CONST EFI_GUID *InformationType, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
BOOLEAN IsValidFfsFile(IN UINT8 ErasePolarity, IN EFI_FFS_FILE_HEADER *FfsHeader)
VOID SetFileState(IN UINT8 State, IN EFI_FFS_FILE_HEADER *FfsHeader)
EFI_STATUS EFIAPI FvWriteFile(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN UINT32 NumberOfFiles, IN EFI_FV_WRITE_POLICY WritePolicy, IN EFI_FV_WRITE_FILE_DATA *FileData)
EFI_STATUS EFIAPI FvGetNextFile(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN OUT VOID *Key, IN OUT EFI_FV_FILETYPE *FileType, OUT EFI_GUID *NameGuid, OUT EFI_FV_FILE_ATTRIBUTES *Attributes, OUT UINTN *Size)
BOOLEAN IsBufferErased(IN UINT8 ErasePolarity, IN VOID *InBuffer, IN UINTN BufferSize)
EFI_STATUS EFIAPI FvReadFileSection(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN CONST EFI_GUID *NameGuid, IN EFI_SECTION_TYPE SectionType, IN UINTN SectionInstance, IN OUT VOID **Buffer, IN OUT UINTN *BufferSize, OUT UINT32 *AuthenticationStatus)
EFI_STATUS EFIAPI FvSetVolumeAttributes(IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN OUT EFI_FV_ATTRIBUTES *Attributes)
UINT32 EFI_FV_FILE_ATTRIBUTES