26BOOLEAN mEfiGoneVirtual =
FALSE;
27BOOLEAN mEfiAtRuntime =
FALSE;
67 mEfiGoneVirtual =
TRUE;
96 Status =
gBS->CreateEvent (
97 EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
106 Status =
gBS->CreateEvent (
107 EVT_SIGNAL_EXIT_BOOT_SERVICES,
111 &mEfiExitBootServicesEvent
147 Status =
gBS->CloseEvent (mEfiExitBootServicesEvent);
171 return mEfiAtRuntime;
192 return mEfiGoneVirtual;
230 IN VOID *ResetData OPTIONAL
233 mInternalRT->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);
267 return mInternalRT->GetTime (Time, Capabilities);
301 return mInternalRT->SetTime (Time);
330 OUT BOOLEAN *Enabled,
331 OUT BOOLEAN *Pending,
335 return mInternalRT->GetWakeupTime (Enabled, Pending, Time);
369 return mInternalRT->SetWakeupTime (Enable, Time);
409 IN CHAR16 *VariableName,
411 OUT UINT32 *Attributes OPTIONAL,
416 return mInternalRT->GetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);
457 IN OUT CHAR16 *VariableName,
461 return mInternalRT->GetNextVariableName (VariableNameSize, VariableName, VendorGuid);
499 IN CHAR16 *VariableName,
501 IN UINT32 Attributes,
506 return mInternalRT->SetVariable (VariableName, VendorGuid, Attributes, DataSize, Data);
531 OUT UINT32 *HighCount
534 return mInternalRT->GetNextHighMonotonicCount (HighCount);
563 IN OUT VOID **Address
566 return gRT->ConvertPointer (DebugDisposition, Address);
595 IN OUT VOID **Address
628 if (ListHead ==
NULL) {
637 NextLink = Link->ForwardLink;
640 Link->ForwardLink == ListHead ? DebugDisposition : 0,
641 (VOID **)&Link->ForwardLink
645 Link->BackLink == ListHead ? DebugDisposition : 0,
646 (VOID **)&Link->BackLink
650 }
while (Link != ListHead);
689 IN UINT32 DescriptorVersion,
693 return mInternalRT->SetVirtualAddressMap (
746 return mInternalRT->UpdateCapsule (
795 OUT UINT64 *MaximumCapsuleSize,
799 return mInternalRT->QueryCapsuleCapabilities (
844 IN UINT32 Attributes,
845 OUT UINT64 *MaximumVariableStorageSize,
846 OUT UINT64 *RemainingVariableStorageSize,
847 OUT UINT64 *MaximumVariableSize
850 return mInternalRT->QueryVariableInfo (
852 MaximumVariableStorageSize,
853 RemainingVariableStorageSize,
EFI_RUNTIME_SERVICES * gRT
#define ASSERT_EFI_ERROR(StatusParameter)
EFI_STATUS EFIAPI EfiGetVariable(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, OUT UINT32 *Attributes OPTIONAL, IN OUT UINTN *DataSize, OUT VOID *Data)
EFI_STATUS EFIAPI EfiGetNextVariableName(IN OUT UINTN *VariableNameSize, IN OUT CHAR16 *VariableName, IN OUT EFI_GUID *VendorGuid)
BOOLEAN EFIAPI EfiAtRuntime(VOID)
EFI_STATUS EFIAPI EfiGetTime(OUT EFI_TIME *Time, OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL)
VOID EFIAPI EfiResetSystem(IN EFI_RESET_TYPE ResetType, IN EFI_STATUS ResetStatus, IN UINTN DataSize, IN VOID *ResetData OPTIONAL)
VOID EFIAPI RuntimeLibExitBootServicesEvent(IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS EFIAPI RuntimeDriverLibConstruct(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI RuntimeDriverLibDeconstruct(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI EfiSetTime(IN EFI_TIME *Time)
EFI_EVENT mEfiVirtualNotifyEvent
VOID EFIAPI RuntimeLibVirtualNotifyEvent(IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS EFIAPI EfiConvertPointer(IN UINTN DebugDisposition, IN OUT VOID **Address)
EFI_STATUS EFIAPI EfiGetWakeupTime(OUT BOOLEAN *Enabled, OUT BOOLEAN *Pending, OUT EFI_TIME *Time)
EFI_STATUS EFIAPI EfiGetNextHighMonotonicCount(OUT UINT32 *HighCount)
EFI_STATUS EFIAPI EfiUpdateCapsule(IN EFI_CAPSULE_HEADER **CapsuleHeaderArray, IN UINTN CapsuleCount, IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL)
EFI_STATUS EFIAPI EfiSetVirtualAddressMap(IN UINTN MemoryMapSize, IN UINTN DescriptorSize, IN UINT32 DescriptorVersion, IN CONST EFI_MEMORY_DESCRIPTOR *VirtualMap)
EFI_STATUS EFIAPI EfiSetVariable(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data)
EFI_STATUS EFIAPI EfiConvertList(IN UINTN DebugDisposition, IN OUT LIST_ENTRY *ListHead)
EFI_STATUS EFIAPI EfiQueryCapsuleCapabilities(IN EFI_CAPSULE_HEADER **CapsuleHeaderArray, IN UINTN CapsuleCount, OUT UINT64 *MaximumCapsuleSize, OUT EFI_RESET_TYPE *ResetType)
BOOLEAN EFIAPI EfiGoneVirtual(VOID)
EFI_STATUS EFIAPI EfiQueryVariableInfo(IN UINT32 Attributes, OUT UINT64 *MaximumVariableStorageSize, OUT UINT64 *RemainingVariableStorageSize, OUT UINT64 *MaximumVariableSize)
EFI_STATUS EFIAPI EfiConvertFunctionPointer(IN UINTN DebugDisposition, IN OUT VOID **Address)
EFI_STATUS EFIAPI EfiSetWakeupTime(IN BOOLEAN Enable, IN EFI_TIME *Time OPTIONAL)
UINT64 EFI_PHYSICAL_ADDRESS