X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FPcatRealTimeClockRuntimeDxe%2FPcRtc.h;h=b0c526ff676c0976dbd6efaa8ca6c3eb1a43a14c;hp=c44731a2f860541a352cba26c1a114eace1b83ba;hb=254ba2477fd0b101228da33db03efed95c6489ae;hpb=bfe03264cb673923eef847a0286860b1184a462e 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