TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | LibGetTime (OUT EFI_TIME *Time, OUT EFI_TIME_CAPABILITIES *Capabilities) |
EFI_STATUS EFIAPI | LibSetTime (IN EFI_TIME *Time) |
EFI_STATUS EFIAPI | LibGetWakeupTime (OUT BOOLEAN *Enabled, OUT BOOLEAN *Pending, OUT EFI_TIME *Time) |
EFI_STATUS EFIAPI | LibSetWakeupTime (IN BOOLEAN Enabled, OUT EFI_TIME *Time) |
EFI_STATUS EFIAPI | LibRtcInitialize (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Implement EFI RealTimeClock runtime services via Lib.
Currently this driver does not support runtime virtual calling.
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file RealTimeClockLib.h.
EFI_STATUS EFIAPI LibGetTime | ( | OUT EFI_TIME * | Time, |
OUT EFI_TIME_CAPABILITIES * | Capabilities | ||
) |
Returns the current time and date information, and the time-keeping capabilities of the hardware platform.
Time | A pointer to storage to receive a snapshot of the current time. |
Capabilities | An optional pointer to a buffer to receive the real time clock device's capabilities. |
EFI_SUCCESS | The operation completed successfully. |
EFI_INVALID_PARAMETER | Time is NULL. |
EFI_DEVICE_ERROR | The time could not be retrieved due to hardware error. |
EFI_UNSUPPORTED | This call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table. |
Returns the current time and date information, and the time-keeping capabilities of the hardware platform.
Time | A pointer to storage to receive a snapshot of the current time. |
Capabilities | An optional pointer to a buffer to receive the real time clock device's capabilities. |
EFI_SUCCESS | The operation completed successfully. |
EFI_INVALID_PARAMETER | Time is NULL. |
EFI_DEVICE_ERROR | The time could not be retrieved due to hardware error. |
Returns the current time and date information, and the time-keeping capabilities of the virtual RTC.
Time | A pointer to storage to receive a snapshot of the current time. |
Capabilities | An optional pointer to a buffer to receive the real time clock device's capabilities. |
EFI_SUCCESS | The operation completed successfully. |
EFI_INVALID_PARAMETER | Time is NULL. |
EFI_DEVICE_ERROR | The time could not be retrieved due to hardware error. |
Returns the current time and date information, and the time-keeping capabilities of the hardware platform.
Time | A pointer to storage to receive a snapshot of the current time. |
Capabilities | An optional pointer to a buffer to receive the real time clock device's capabilities. |
EFI_SUCCESS | The operation completed successfully. |
EFI_INVALID_PARAMETER | Time is NULL. |
EFI_DEVICE_ERROR | The time could not be retrieved due to hardware error. |
EFI_SECURITY_VIOLATION | The time could not be retrieved due to an authentication failure. |
Definition at line 121 of file PL031RealTimeClockLib.c.
EFI_STATUS EFIAPI LibGetWakeupTime | ( | OUT BOOLEAN * | Enabled, |
OUT BOOLEAN * | Pending, | ||
OUT EFI_TIME * | Time | ||
) |
Returns the current wakeup alarm clock setting.
Enabled | Indicates if the alarm is currently enabled or disabled. |
Pending | Indicates if the alarm signal is pending and requires acknowledgement. |
Time | The current alarm setting. |
EFI_SUCCESS | The alarm settings were returned. |
EFI_INVALID_PARAMETER | Enabled is NULL. |
EFI_INVALID_PARAMETER | Pending is NULL. |
EFI_INVALID_PARAMETER | Time is NULL. |
EFI_DEVICE_ERROR | The wakeup time could not be retrieved due to a hardware error. |
EFI_UNSUPPORTED | This call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table. |
Returns the current wakeup alarm clock setting.
Enabled | Indicates if the alarm is currently enabled or disabled. |
Pending | Indicates if the alarm signal is pending and requires acknowledgement. |
Time | The current alarm setting. |
EFI_SUCCESS | The alarm settings were returned. |
EFI_INVALID_PARAMETER | Any parameter is NULL. |
EFI_DEVICE_ERROR | The wakeup time could not be retrieved due to a hardware error. |
Definition at line 243 of file PL031RealTimeClockLib.c.
EFI_STATUS EFIAPI LibRtcInitialize | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
This is the declaration of an EFI image entry point. This can be the entry point to an application written to this specification, an EFI boot service driver, or an EFI runtime driver.
ImageHandle | Handle that identifies the loaded image. |
SystemTable | System Table for this image. |
EFI_SUCCESS | The operation completed successfully. |
Definition at line 319 of file PL031RealTimeClockLib.c.
EFI_STATUS EFIAPI LibSetTime | ( | IN EFI_TIME * | Time | ) |
Sets the current local time and date information.
Time | A pointer to the current time. |
EFI_SUCCESS | The operation completed successfully. |
EFI_INVALID_PARAMETER | A time field is out of range. |
EFI_DEVICE_ERROR | The time could not be set due to hardware error. |
EFI_UNSUPPORTED | This call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table. |
Sets the current local time and date information.
Time | A pointer to the current time. |
EFI_SUCCESS | The operation completed successfully. |
EFI_INVALID_PARAMETER | A time field is out of range. |
EFI_DEVICE_ERROR | The time could not be set due to hardware error. |
Sets the current local time and date information.
Time | A pointer to the current time. |
EFI_SUCCESS | The operation completed successfully. |
EFI_INVALID_PARAMETER | A time field is out of range. |
EFI_DEVICE_ERROR | The time could not be set due due to hardware error. |
Definition at line 184 of file PL031RealTimeClockLib.c.
EFI_STATUS EFIAPI LibSetWakeupTime | ( | IN BOOLEAN | Enabled, |
OUT EFI_TIME * | Time | ||
) |
Sets the system wakeup alarm clock time.
Enabled | Enable or disable the wakeup alarm. |
Time | If Enable is TRUE, the time to set the wakeup alarm for. |
EFI_SUCCESS | If Enable is TRUE, then the wakeup alarm was enabled. If Enable is FALSE, then the wakeup alarm was disabled. |
EFI_INVALID_PARAMETER | Enabled is NULL. |
EFI_INVALID_PARAMETER | Pending is NULL. |
EFI_INVALID_PARAMETER | Time is NULL. |
EFI_DEVICE_ERROR | The wakeup time could not be set due to a hardware error. |
EFI_UNSUPPORTED | This call is not supported by this platform at the time the call is made. The platform should describe this runtime service as unsupported at runtime via an EFI_RT_PROPERTIES_TABLE configuration table. |
Sets the system wakeup alarm clock time.
Enabled | Enable or disable the wakeup alarm. |
Time | If Enable is TRUE, the time to set the wakeup alarm for. |
EFI_SUCCESS | If Enable is TRUE, then the wakeup alarm was enabled. If Enable is FALSE, then the wakeup alarm was disabled. |
EFI_INVALID_PARAMETER | A time field is out of range. |
EFI_DEVICE_ERROR | The wakeup time could not be set due to a hardware error. |
EFI_UNSUPPORTED | A wakeup timer is not supported on this platform. |
Definition at line 272 of file PL031RealTimeClockLib.c.