44 if (FvbDevice ==
NULL) {
45 return EFI_OUT_OF_RESOURCES;
48 FvbDevice->Instance = InstanceNum;
49 FwVolHeader = &FwhInstance->VolumeHeader;
60 if (FvbDevice->DevicePath ==
NULL) {
62 return EFI_OUT_OF_RESOURCES;
71 if (FvbDevice->DevicePath ==
NULL) {
73 return EFI_OUT_OF_RESOURCES;
88 &gEfiSmmFirmwareVolumeBlockProtocolGuid,
90 &FvbDevice->FwVolBlockInstance
96 &gEfiDevicePathProtocolGuid,
106 Status =
gBS->InstallProtocolInterface (
108 &gEfiSmmFirmwareVolumeBlockProtocolGuid,
110 &FvbDevice->FwVolBlockInstance
GUID *EFIAPI CopyGuid(OUT GUID *DestinationGuid, IN CONST GUID *SourceGuid)
VOID *EFIAPI AllocateRuntimeCopyPool(IN UINTN AllocationSize, IN CONST VOID *Buffer)
EFI_STATUS InstallFvbProtocol(IN EFI_FW_VOL_INSTANCE *FwhInstance, IN UINTN InstanceNum)
EFI_STATUS EFIAPI FvbSmmInitialize(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
#define ASSERT_EFI_ERROR(StatusParameter)
EFI_SMM_SYSTEM_TABLE2 * gSmst
EFI_INSTALL_PROTOCOL_INTERFACE SmmInstallProtocolInterface
EFI_PHYSICAL_ADDRESS StartingAddress
EFI_PHYSICAL_ADDRESS EndingAddress