VOID PlatformBdsRestoreNvVarsFromHardDisk () { UINTN HandleCount; EFI_HANDLE *HandleBuffer; EFI_STATUS Status; HandleCount = 0; HandleBuffer = NULL; VBoxLogFlowFuncEnter(); VisitAllPciInstances (ConnectRecursivelyIfPciMassStorage); #ifndef VBOX VisitAllInstancesOfProtocol ( &gEfiSimpleFileSystemProtocolGuid, VisitingFileSystemInstance, NULL ); #endif Status = gBS->LocateHandleBuffer ( ByProtocol, &gEfiSimpleFileSystemProtocolGuid, NULL, &HandleCount, &HandleBuffer ); VBoxLogFlowFuncMarkRC(Status); VBoxLogFlowFuncLeave(); }
EFI_STATUS VisitAllPciInstances ( IN VISIT_PCI_INSTANCE_CALLBACK CallBackFunction ) { return VisitAllInstancesOfProtocol ( &gEfiPciIoProtocolGuid, VisitingAPciInstance, (VOID*)(UINTN) CallBackFunction ); }
VOID PlatformBdsRestoreNvVarsFromHardDisk ( ) { VisitAllPciInstances (ConnectRecursivelyIfPciMassStorage); VisitAllInstancesOfProtocol ( &gEfiSimpleFileSystemProtocolGuid, VisitingFileSystemInstance, NULL ); }