2 Provides Set/Get time operations.
4 Copyright (c) 2006 - 2007, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 PC_RTC_MODULE_GLOBALS mModuleGlobal
;
23 OUT EFI_TIME_CAPABILITIES
*Capabilities
29 GC_TODO: Add function description
33 Time - GC_TODO: add argument description
34 Capabilities - GC_TODO: add argument description
38 GC_TODO: add return values
42 return PcRtcGetTime (Time
, Capabilities
, &mModuleGlobal
);
54 GC_TODO: Add function description
58 Time - GC_TODO: add argument description
62 GC_TODO: add return values
66 return PcRtcSetTime (Time
, &mModuleGlobal
);
71 PcRtcEfiGetWakeupTime (
80 GC_TODO: Add function description
84 Enabled - GC_TODO: add argument description
85 Pending - GC_TODO: add argument description
86 Time - GC_TODO: add argument description
90 GC_TODO: add return values
94 return PcRtcGetWakeupTime (Enabled
, Pending
, Time
, &mModuleGlobal
);
99 PcRtcEfiSetWakeupTime (
107 GC_TODO: Add function description
111 Enabled - GC_TODO: add argument description
112 Time - GC_TODO: add argument description
116 GC_TODO: add return values
120 return PcRtcSetWakeupTime (Enabled
, Time
, &mModuleGlobal
);
126 IN EFI_HANDLE ImageHandle
,
127 IN EFI_SYSTEM_TABLE
*SystemTable
139 // GC_TODO: ImageHandle - add argument and description to function comment
140 // GC_TODO: SystemTable - add argument and description to function comment
143 EFI_HANDLE NewHandle
;
145 EfiInitializeLock (&mModuleGlobal
.RtcLock
, TPL_HIGH_LEVEL
);
147 Status
= PcRtcInit (&mModuleGlobal
);
148 if (EFI_ERROR (Status
)) {
152 gRT
->GetTime
= PcRtcEfiGetTime
;
153 gRT
->SetTime
= PcRtcEfiSetTime
;
154 gRT
->GetWakeupTime
= PcRtcEfiGetWakeupTime
;
155 gRT
->SetWakeupTime
= PcRtcEfiSetWakeupTime
;
158 Status
= gBS
->InstallMultipleProtocolInterfaces (
160 &gEfiRealTimeClockArchProtocolGuid
,