3 Copyright (c) 2006, Intel Corporation. All rights reserved. <BR>
4 This software and associated documentation (if any) is furnished
5 under a license and may only be used or copied in accordance
6 with the terms of the license. Except as permitted by such
7 license, no part of this software or documentation may be
8 reproduced, stored in a retrieval system, or transmitted in any
9 form or by any means without the express written consent of
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
,