TianoCore EDK2 master
Loading...
Searching...
No Matches
FwVol.h
Go to the documentation of this file.
1
9#ifndef _FWVOL_H_
10#define _FWVOL_H_
11
12#include "PeiMain.h"
13
14#define GET_OCCUPIED_SIZE(ActualSize, Alignment) \
15 ((ActualSize) + (((Alignment) - ((ActualSize) & ((Alignment) - 1))) & ((Alignment) - 1)))
16
17#define PEI_FW_VOL_SIGNATURE SIGNATURE_32('P','F','W','V')
18
19typedef struct {
20 UINTN Signature;
21 BOOLEAN IsFfs3Fv;
24
25#define PEI_FW_VOL_INSTANCE_FROM_FV_THIS(a) \
26 CR(a, PEI_FW_VOL_INSTANCE, Fv, PEI_FW_VOL_SIGNATURE)
27
53EFIAPI
56 IN VOID *Buffer,
57 IN UINTN BufferSize,
58 OUT EFI_PEI_FV_HANDLE *FvHandle
59 );
60
84EFIAPI
87 IN EFI_FV_FILETYPE SearchType,
88 IN EFI_PEI_FV_HANDLE FvHandle,
89 IN OUT EFI_PEI_FILE_HANDLE *FileHandle
90 );
91
118EFIAPI
121 IN CONST EFI_GUID *FileName,
122 IN EFI_PEI_FV_HANDLE *FvHandle,
123 OUT EFI_PEI_FILE_HANDLE *FileHandle
124 );
125
146EFIAPI
149 IN EFI_SECTION_TYPE SearchType,
150 IN EFI_PEI_FILE_HANDLE FileHandle,
151 OUT VOID **SectionData
152 );
153
178EFIAPI
181 IN EFI_SECTION_TYPE SearchType,
182 IN UINTN SearchInstance,
183 IN EFI_PEI_FILE_HANDLE FileHandle,
184 OUT VOID **SectionData,
185 OUT UINT32 *AuthenticationStatus
186 );
187
208EFIAPI
211 IN EFI_PEI_FILE_HANDLE FileHandle,
213 );
214
235EFIAPI
238 IN EFI_PEI_FILE_HANDLE FileHandle,
240 );
241
257EFIAPI
260 IN EFI_PEI_FV_HANDLE FvHandle,
261 OUT EFI_FV_INFO *VolumeInfo
262 );
263
274 IN EFI_PEI_FV_HANDLE FvHandle
275 );
276
296 IN CONST EFI_PEI_FV_HANDLE FvHandle,
297 IN CONST EFI_GUID *FileName OPTIONAL,
298 IN EFI_FV_FILETYPE SearchType,
299 IN OUT EFI_PEI_FILE_HANDLE *FileHandle,
300 IN OUT EFI_PEI_FILE_HANDLE *AprioriFile OPTIONAL
301 );
302
322 IN PEI_CORE_INSTANCE *PrivateData,
324 );
325
343 IN PEI_CORE_INSTANCE *PrivateData,
344 IN EFI_GUID *Format,
345 OUT VOID **FvInfo,
346 OUT UINT32 *FvInfoSize,
347 OUT UINT32 *AuthenticationStatus
348 );
349
363EFIAPI
365 IN EFI_PEI_SERVICES **PeiServices,
366 IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor,
367 IN VOID *Ppi
368 );
369
370#endif
UINT64 UINTN
EFI_STATUS EFIAPI PeiFfsFvPpiGetFileInfo2(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO2 *FileInfo)
Definition: FwVol.c:1891
PEI_CORE_FV_HANDLE * FvHandleToCoreHandle(IN EFI_PEI_FV_HANDLE FvHandle)
Definition: FwVol.c:2114
EFI_STATUS FindFileEx(IN CONST EFI_PEI_FV_HANDLE FvHandle, IN CONST EFI_GUID *FileName OPTIONAL, IN EFI_FV_FILETYPE SearchType, IN OUT EFI_PEI_FILE_HANDLE *FileHandle, IN OUT EFI_PEI_FILE_HANDLE *AprioriFile OPTIONAL)
Definition: FwVol.c:266
EFI_STATUS EFIAPI PeiFfsFvPpiFindSectionByType2(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)
Definition: FwVol.c:2035
EFI_STATUS AddUnknownFormatFvInfo(IN PEI_CORE_INSTANCE *PrivateData, IN EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI *FvInfo2Ppi)
Definition: FwVol.c:2248
EFI_STATUS EFIAPI PeiFfsFvPpiFindFileByType(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)
Definition: FwVol.c:1698
EFI_STATUS FindUnknownFormatFvInfo(IN PEI_CORE_INSTANCE *PrivateData, IN EFI_GUID *Format, OUT VOID **FvInfo, OUT UINT32 *FvInfoSize, OUT UINT32 *AuthenticationStatus)
Definition: FwVol.c:2304
EFI_STATUS EFIAPI PeiFfsFvPpiProcessVolume(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN VOID *Buffer, IN UINTN BufferSize, OUT EFI_PEI_FV_HANDLE *FvHandle)
Definition: FwVol.c:1641
EFI_STATUS EFIAPI PeiFfsFvPpiGetFileInfo(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FILE_HANDLE FileHandle, OUT EFI_FV_FILE_INFO *FileInfo)
Definition: FwVol.c:1800
EFI_STATUS EFIAPI PeiFfsFvPpiFindSectionByType(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_SECTION_TYPE SearchType, IN EFI_PEI_FILE_HANDLE FileHandle, OUT VOID **SectionData)
Definition: FwVol.c:1998
EFI_STATUS EFIAPI PeiFfsFvPpiGetVolumeInfo(IN CONST EFI_PEI_FIRMWARE_VOLUME_PPI *This, IN EFI_PEI_FV_HANDLE FvHandle, OUT EFI_FV_INFO *VolumeInfo)
Definition: FwVol.c:1936
EFI_STATUS EFIAPI PeiFfsFvPpiFindFileByName(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)
Definition: FwVol.c:1735
EFI_STATUS EFIAPI ThirdPartyFvPpiNotifyCallback(IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi)
Definition: FwVol.c:2356
#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