TianoCore EDK2 master
Loading...
Searching...
No Matches
FirmwareVolume.h
Go to the documentation of this file.
1
12#ifndef __FIRMWARE_VOLUME_PPI_H__
13#define __FIRMWARE_VOLUME_PPI_H__
14
21
46typedef
48(EFIAPI *EFI_PEI_FV_PROCESS_FV)(
50 IN VOID *Buffer,
51 IN UINTN BufferSize,
52 OUT EFI_PEI_FV_HANDLE *FvHandle
53 );
54
77typedef
81 IN EFI_FV_FILETYPE SearchType,
82 IN EFI_PEI_FV_HANDLE FvHandle,
83 IN OUT EFI_PEI_FILE_HANDLE *FileHandle
84 );
85
111typedef
115 IN CONST EFI_GUID *FileName,
116 IN EFI_PEI_FV_HANDLE *FvHandle,
117 OUT EFI_PEI_FILE_HANDLE *FileHandle
118 );
119
139typedef
143 IN EFI_PEI_FILE_HANDLE FileHandle,
145 );
146
166typedef
170 IN EFI_PEI_FILE_HANDLE FileHandle,
172 );
173
188typedef
190(EFIAPI *EFI_PEI_FV_GET_INFO)(
192 IN EFI_PEI_FV_HANDLE FvHandle,
193 OUT EFI_FV_INFO *VolumeInfo
194 );
195
215typedef
219 IN EFI_SECTION_TYPE SearchType,
220 IN EFI_PEI_FILE_HANDLE FileHandle,
221 OUT VOID **SectionData
222 );
223
247typedef
251 IN EFI_SECTION_TYPE SearchType,
252 IN UINTN SearchInstance,
253 IN EFI_PEI_FILE_HANDLE FileHandle,
254 OUT VOID **SectionData,
255 OUT UINT32 *AuthenticationStatus
256 );
257
258#define EFI_PEI_FIRMWARE_VOLUME_PPI_SIGNATURE SIGNATURE_32 ('P', 'F', 'V', 'P')
259#define EFI_PEI_FIRMWARE_VOLUME_PPI_REVISION 0x00010030
260
265 EFI_PEI_FV_PROCESS_FV ProcessVolume;
266 EFI_PEI_FV_FIND_FILE_TYPE FindFileByType;
267 EFI_PEI_FV_FIND_FILE_NAME FindFileByName;
268 EFI_PEI_FV_GET_FILE_INFO GetFileInfo;
269 EFI_PEI_FV_GET_INFO GetVolumeInfo;
270 EFI_PEI_FV_FIND_SECTION FindSectionByType;
271 EFI_PEI_FV_GET_FILE_INFO2 GetFileInfo2;
272 EFI_PEI_FV_FIND_SECTION2 FindSectionByType2;
276 UINT32 Signature;
280 UINT32 Revision;
281};
282
283extern EFI_GUID gEfiPeiFirmwareVolumePpiGuid;
284
285#endif
UINT64 UINTN
EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_SECTION2)(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_SECTION_TYPE SearchType, IN UINTN SearchInstance, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData, OUT UINT32 *AuthenticationStatus)
EFI_STATUS(EFIAPI * EFI_PEI_FV_GET_FILE_INFO)(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO *FileInfo)
EFI_STATUS(EFIAPI * EFI_PEI_FV_GET_FILE_INFO2)(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO2 *FileInfo)
EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_FILE_NAME)(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN CONST EFI_GUID *FileName, IN EFI_PEI_FV_HANDLE *FvHandle, OUT EFI_PEI_FILE_HANDLE *FileHandle)
EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_FILE_TYPE)(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_FV_FILETYPE SearchType, IN EFI_PEI_FV_HANDLE FvHandle, IN OUT EFI_PEI_FILE_HANDLE *FileHandle)
EFI_STATUS(EFIAPI * EFI_PEI_FV_FIND_SECTION)(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_SECTION_TYPE SearchType, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData)
EFI_STATUS(EFIAPI * EFI_PEI_FV_PROCESS_FV)(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN VOID *Buffer, IN UINTN BufferSize, OUT EFI_PEI_FV_HANDLE *FvHandle)
EFI_STATUS(EFIAPI * EFI_PEI_FV_GET_INFO)(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FV_HANDLE FvHandle, OUT EFI_FV_INFO *VolumeInfo)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
VOID * EFI_PEI_FILE_HANDLE
Definition: PiPeiCis.h:26
VOID * EFI_PEI_FV_HANDLE
Definition: PiPeiCis.h:21
EFI_FILE_INFO * FileInfo(IN EFI_FILE_HANDLE FHand)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213