19UINTN mRtcIndexRegister;
20UINTN mRtcTargetRegister;
21UINT16 mRtcDefaultYear;
22UINT16 mMinimalValidYear;
23UINT16 mMaximalValidYear;
45 return PcRtcGetTime (Time, Capabilities, &mModuleGlobal);
170 mRtcTargetRegister = (
UINTN)
PcdGet64 (PcdRtcTargetRegister64);
172 mRtcIndexRegister = (
UINTN)
PcdGet8 (PcdRtcIndexRegister);
173 mRtcTargetRegister = (
UINTN)
PcdGet8 (PcdRtcTargetRegister);
176 mRtcDefaultYear =
PcdGet16 (PcdRtcDefaultYear);
177 mMinimalValidYear =
PcdGet16 (PcdMinimalValidYear);
178 mMaximalValidYear =
PcdGet16 (PcdMaximalValidYear);
183 Status =
gBS->CreateEventEx (
188 &gEfiAcpi10TableGuid,
193 Status =
gBS->CreateEventEx (
208 Status =
gBS->InstallMultipleProtocolInterfaces (
210 &gEfiRealTimeClockArchProtocolGuid,
214 if (EFI_ERROR (Status)) {
221 Status =
gBS->CreateEventEx (
226 &gEfiEventVirtualAddressChangeGuid,
227 &mVirtualAddrChangeEvent
EFI_RUNTIME_SERVICES * gRT
#define ASSERT_EFI_ERROR(StatusParameter)
UINT8 GetCenturyRtcAddress(VOID)
EFI_STATUS PcRtcSetWakeupTime(IN BOOLEAN Enable, IN EFI_TIME *Time OPTIONAL, IN PC_RTC_MODULE_GLOBALS *Global)
EFI_STATUS PcRtcInit(IN PC_RTC_MODULE_GLOBALS *Global)
EFI_STATUS PcRtcGetWakeupTime(OUT BOOLEAN *Enabled, OUT BOOLEAN *Pending, OUT EFI_TIME *Time, IN PC_RTC_MODULE_GLOBALS *Global)
EFI_STATUS PcRtcGetTime(OUT EFI_TIME *Time, OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL, IN PC_RTC_MODULE_GLOBALS *Global)
EFI_STATUS PcRtcSetTime(IN EFI_TIME *Time, IN PC_RTC_MODULE_GLOBALS *Global)
VOID EFIAPI PcRtcAcpiTableChangeCallback(IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS EFIAPI PcRtcEfiGetWakeupTime(OUT BOOLEAN *Enabled, OUT BOOLEAN *Pending, OUT EFI_TIME *Time)
STATIC VOID EFIAPI VirtualNotifyEvent(IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS EFIAPI PcRtcEfiSetTime(IN EFI_TIME *Time)
EFI_STATUS EFIAPI InitializePcRtc(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI PcRtcEfiGetTime(OUT EFI_TIME *Time, OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL)
EFI_STATUS EFIAPI PcRtcEfiSetWakeupTime(IN BOOLEAN Enabled, IN EFI_TIME *Time OPTIONAL)
#define PcdGet16(TokenName)
#define PcdGet64(TokenName)
#define PcdGet8(TokenName)
#define FeaturePcdGet(TokenName)
EFI_LOCK *EFIAPI EfiInitializeLock(IN OUT EFI_LOCK *Lock, IN EFI_TPL Priority)
EFI_STATUS EFIAPI EfiConvertPointer(IN UINTN DebugDisposition, IN OUT VOID **Address)