summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-23 02:29:11 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-05-23 02:29:11 +0000
commit254ba2477fd0b101228da33db03efed95c6489ae (patch)
tree48707b457f307e4ab005ed920a448891e85ed1cf /MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h
parentbfe03264cb673923eef847a0286860b1184a462e (diff)
downloadedk2-platforms-254ba2477fd0b101228da33db03efed95c6489ae.tar.xz
Add logic to check uninitialized RTC value in PcRtc driver in MdeModulePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5281 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h')
-rw-r--r--MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h
index c44731a2f8..b0c526ff67 100644
--- a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h
+++ b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.h
@@ -398,27 +398,27 @@ Returns:
--*/
;
-VOID
-ConvertRtcTimeToEfiTime (
- IN EFI_TIME *Time,
- IN RTC_REGISTER_B RegisterB
- )
-/*++
+/**
+ Converts time read from RTC to EFI_TIME format defined by UEFI spec.
-Routine Description:
+ This function converts raw time data read from RTC to the EFI_TIME format
+ defined by UEFI spec.
+ If data mode of RTC is BCD, then converts it to decimal,
+ If RTC is in 12-hour format, then converts it to 24-hour format.
- GC_TODO: Add function description
-
-Arguments:
+ @param Time On input, the time data read from RTC to convert
+ On output, the time converted to UEFI format
+ @param Century Value of century read from RTC.
+ @param RegisterB Value of Register B of RTC, indicating data mode
+ and hour format.
- Time - GC_TODO: add argument description
- RegisterB - GC_TODO: add argument description
-
-Returns:
-
- GC_TODO: add return values
-
---*/
+**/
+EFI_STATUS
+ConvertRtcTimeToEfiTime (
+ IN OUT EFI_TIME *Time,
+ IN UINT8 Century,
+ IN RTC_REGISTER_B RegisterB
+ )
;
EFI_STATUS