TianoCore EDK2 master
Loading...
Searching...
No Matches
RealTimeClockLib.c
Go to the documentation of this file.
1
12#include <PiDxe.h>
13#include <Library/BaseLib.h>
14#include <Library/DebugLib.h>
15#include <Library/IoLib.h>
17
32EFIAPI
34 OUT EFI_TIME *Time,
35 OUT EFI_TIME_CAPABILITIES *Capabilities
36 )
37{
38 //
39 // Fill in Time and Capabilities via data from you RTC
40 //
41 return EFI_DEVICE_ERROR;
42}
43
55EFIAPI
57 IN EFI_TIME *Time
58 )
59{
60 //
61 // Use Time, to set the time in your RTC hardware
62 //
63 return EFI_DEVICE_ERROR;
64}
65
79EFIAPI
81 OUT BOOLEAN *Enabled,
82 OUT BOOLEAN *Pending,
83 OUT EFI_TIME *Time
84 )
85{
86 // Not a required feature
87 return EFI_UNSUPPORTED;
88}
89
104EFIAPI
106 IN BOOLEAN Enabled,
107 OUT EFI_TIME *Time
108 )
109{
110 // Not a required feature
111 return EFI_UNSUPPORTED;
112}
113
125EFIAPI
127 IN EFI_HANDLE ImageHandle,
128 IN EFI_SYSTEM_TABLE *SystemTable
129 )
130{
131 //
132 // Do some initialization if required to turn on the RTC
133 //
134 return EFI_SUCCESS;
135}
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI LibSetWakeupTime(IN BOOLEAN Enabled, OUT EFI_TIME *Time)
EFI_STATUS EFIAPI LibRtcInitialize(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI LibGetWakeupTime(OUT BOOLEAN *Enabled, OUT BOOLEAN *Pending, OUT EFI_TIME *Time)
EFI_STATUS EFIAPI LibSetTime(IN EFI_TIME *Time)
EFI_STATUS EFIAPI LibGetTime(OUT EFI_TIME *Time, OUT EFI_TIME_CAPABILITIES *Capabilities)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define EFI_SUCCESS
Definition: UefiBaseType.h:112