3 Copyright (c) 2006 - 2007 Intel Corporation. <BR>
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
24 static PC_RTC_MODULE_GLOBALS mModuleGlobal
;
30 OUT EFI_TIME_CAPABILITIES
*Capabilities
36 GC_TODO: Add function description
40 Time - GC_TODO: add argument description
41 Capabilities - GC_TODO: add argument description
45 GC_TODO: add return values
49 return PcRtcGetTime (Time
, Capabilities
, &mModuleGlobal
);
61 GC_TODO: Add function description
65 Time - GC_TODO: add argument description
69 GC_TODO: add return values
73 return PcRtcSetTime (Time
, &mModuleGlobal
);
78 PcRtcEfiGetWakeupTime (
87 GC_TODO: Add function description
91 Enabled - GC_TODO: add argument description
92 Pending - GC_TODO: add argument description
93 Time - GC_TODO: add argument description
97 GC_TODO: add return values
101 return PcRtcGetWakeupTime (Enabled
, Pending
, Time
, &mModuleGlobal
);
106 PcRtcEfiSetWakeupTime (
114 GC_TODO: Add function description
118 Enabled - GC_TODO: add argument description
119 Time - GC_TODO: add argument description
123 GC_TODO: add return values
127 return PcRtcSetWakeupTime (Enabled
, Time
, &mModuleGlobal
);
133 IN EFI_HANDLE ImageHandle
,
134 IN EFI_SYSTEM_TABLE
*SystemTable
146 // GC_TODO: ImageHandle - add argument and description to function comment
147 // GC_TODO: SystemTable - add argument and description to function comment
150 EFI_HANDLE NewHandle
;
152 EfiInitializeLock (&mModuleGlobal
.RtcLock
, TPL_HIGH_LEVEL
);
154 Status
= PcRtcInit (&mModuleGlobal
);
155 if (EFI_ERROR (Status
)) {
159 gRT
->GetTime
= PcRtcEfiGetTime
;
160 gRT
->SetTime
= PcRtcEfiSetTime
;
161 gRT
->GetWakeupTime
= PcRtcEfiGetWakeupTime
;
162 gRT
->SetWakeupTime
= PcRtcEfiSetWakeupTime
;
165 Status
= gBS
->InstallMultipleProtocolInterfaces (
167 &gEfiRealTimeClockArchProtocolGuid
,