\r
/**\r
Compare the Hour, Minute and Second of the From time and the To time.\r
- \r
+\r
Only compare H/M/S in EFI_TIME and ignore other fields here.\r
\r
@param From the first time\r
if (!EfiAtRuntime ()) {\r
EfiReleaseLock (&Global->RtcLock);\r
}\r
- \r
+\r
//\r
// Get the data of Daylight saving and time zone, if they have been\r
// stored in NV variable during previous boot.\r
Time.Daylight = (UINT8) (TimerVar >> 16);\r
} else {\r
Time.TimeZone = EFI_UNSPECIFIED_TIMEZONE;\r
- Time.Daylight = 0; \r
+ Time.Daylight = 0;\r
}\r
\r
//\r
if (EFI_ERROR (Status)) {\r
return EFI_DEVICE_ERROR;\r
}\r
- \r
+\r
//\r
// Reset wakeup time value to valid state when wakeup alarm is disabled and wakeup time is invalid.\r
// Global variable has already had valid SavedTimeZone and Daylight,\r
if ((Enabled) || (!EFI_ERROR (Status))) {\r
return EFI_SUCCESS;\r
}\r
- \r
+\r
//\r
- // When wakeup time is disabled and invalid, reset wakeup time register to valid state \r
+ // When wakeup time is disabled and invalid, reset wakeup time register to valid state\r
// but keep wakeup alarm disabled.\r
//\r
Time.Second = RTC_INIT_SECOND;\r
}\r
return EFI_DEVICE_ERROR;\r
}\r
- \r
+\r
//\r
// Inhibit updates of the RTC\r
//\r
RegisterB.Bits.Set = 1;\r
RtcWrite (RTC_ADDRESS_REGISTER_B, RegisterB.Data);\r
- \r
+\r
//\r
// Set RTC alarm time registers\r
//\r
//\r
RegisterB.Bits.Set = 0;\r
RtcWrite (RTC_ADDRESS_REGISTER_B, RegisterB.Data);\r
- \r
+\r
//\r
// Release RTC Lock.\r
//\r
}\r
return Status;\r
}\r
- \r
+\r
//\r
// Write timezone and daylight to RTC variable\r
//\r
}\r
return EFI_DEVICE_ERROR;\r
}\r
- \r
+\r
//\r
// Inhibit updates of the RTC\r
//\r
@param Timeout Tell how long it should take to wait.\r
\r
@retval EFI_DEVICE_ERROR RTC device error.\r
- @retval EFI_SUCCESS RTC is updated and ready. \r
+ @retval EFI_SUCCESS RTC is updated and ready.\r
**/\r
EFI_STATUS\r
RtcWaitToUpdate (\r
\r
/**\r
Compare the Hour, Minute and Second of the From time and the To time.\r
- \r
+\r
Only compare H/M/S in EFI_TIME and ignore other fields here.\r
\r
@param From the first time\r
//\r
ASSERT (From->Month >=1);\r
ASSERT (From->Month <=12);\r
- \r
+\r
if (From->Year == To->Year) {\r
if (From->Month == To->Month) {\r
if ((From->Day + 1) == To->Day) {\r