TianoCore EDK2 master
Loading...
Searching...
No Matches
EmuVariableFvbLib.c
Go to the documentation of this file.
1
9#include "PiDxe.h"
10#include <Library/DebugLib.h>
11#include <Library/PcdLib.h>
15
29VOID
30EFIAPI
33 IN EFI_LBA Lba,
34 IN UINTN Offset,
35 IN UINTN NumBytes,
36 IN UINT8 *Buffer
37 )
38{
39}
40
52VOID
53EFIAPI
56 IN EFI_LBA Lba,
57 IN UINTN Offset,
58 IN UINTN NumBytes,
59 IN UINT8 *Buffer
60 )
61{
62 STATIC EFI_EVENT EventToSignal = NULL;
63
64 if (!EfiAtRuntime ()) {
65 if (EventToSignal == NULL) {
66 EventToSignal = (EFI_EVENT)(UINTN)PcdGet64 (PcdEmuVariableEvent);
67 }
68
69 if (EventToSignal != NULL) {
70 gBS->SignalEvent (EventToSignal);
71 }
72 }
73}
74
86VOID
87EFIAPI
90 IN VA_LIST List
91 )
92{
93}
UINT64 UINTN
VOID EFIAPI PlatformFvbBlocksErased(IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This, IN VA_LIST List)
VOID EFIAPI PlatformFvbDataRead(IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This, IN EFI_LBA Lba, IN UINTN Offset, IN UINTN NumBytes, IN UINT8 *Buffer)
VOID EFIAPI PlatformFvbDataWritten(IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This, IN EFI_LBA Lba, IN UINTN Offset, IN UINTN NumBytes, IN UINT8 *Buffer)
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define STATIC
Definition: Base.h:264
CHAR8 * VA_LIST
Definition: Base.h:643
#define IN
Definition: Base.h:279
#define PcdGet64(TokenName)
Definition: PcdLib.h:375
UINT64 EFI_LBA
Definition: UefiBaseType.h:45
VOID * EFI_EVENT
Definition: UefiBaseType.h:37
EFI_BOOT_SERVICES * gBS
BOOLEAN EFIAPI EfiAtRuntime(VOID)
Definition: RuntimeLib.c:167