PcAtChipsetPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
@@ -28,7 +28,7 @@ CHAR16 mTimeZoneVariableName[] = L"RTC";
|
||||
|
||||
/**
|
||||
Compare the Hour, Minute and Second of the From time and the To time.
|
||||
|
||||
|
||||
Only compare H/M/S in EFI_TIME and ignore other fields here.
|
||||
|
||||
@param From the first time
|
||||
@@ -187,7 +187,7 @@ PcRtcInit (
|
||||
if (!EfiAtRuntime ()) {
|
||||
EfiReleaseLock (&Global->RtcLock);
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Get the data of Daylight saving and time zone, if they have been
|
||||
// stored in NV variable during previous boot.
|
||||
@@ -205,7 +205,7 @@ PcRtcInit (
|
||||
Time.Daylight = (UINT8) (TimerVar >> 16);
|
||||
} else {
|
||||
Time.TimeZone = EFI_UNSPECIFIED_TIMEZONE;
|
||||
Time.Daylight = 0;
|
||||
Time.Daylight = 0;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -241,7 +241,7 @@ PcRtcInit (
|
||||
if (EFI_ERROR (Status)) {
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Reset wakeup time value to valid state when wakeup alarm is disabled and wakeup time is invalid.
|
||||
// Global variable has already had valid SavedTimeZone and Daylight,
|
||||
@@ -251,9 +251,9 @@ PcRtcInit (
|
||||
if ((Enabled) || (!EFI_ERROR (Status))) {
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// When wakeup time is disabled and invalid, reset wakeup time register to valid state
|
||||
// When wakeup time is disabled and invalid, reset wakeup time register to valid state
|
||||
// but keep wakeup alarm disabled.
|
||||
//
|
||||
Time.Second = RTC_INIT_SECOND;
|
||||
@@ -301,13 +301,13 @@ PcRtcInit (
|
||||
}
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Inhibit updates of the RTC
|
||||
//
|
||||
RegisterB.Bits.Set = 1;
|
||||
RtcWrite (RTC_ADDRESS_REGISTER_B, RegisterB.Data);
|
||||
|
||||
|
||||
//
|
||||
// Set RTC alarm time registers
|
||||
//
|
||||
@@ -320,7 +320,7 @@ PcRtcInit (
|
||||
//
|
||||
RegisterB.Bits.Set = 0;
|
||||
RtcWrite (RTC_ADDRESS_REGISTER_B, RegisterB.Data);
|
||||
|
||||
|
||||
//
|
||||
// Release RTC Lock.
|
||||
//
|
||||
@@ -485,7 +485,7 @@ PcRtcSetTime (
|
||||
}
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Write timezone and daylight to RTC variable
|
||||
//
|
||||
@@ -789,7 +789,7 @@ PcRtcSetWakeupTime (
|
||||
}
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Inhibit updates of the RTC
|
||||
//
|
||||
@@ -932,7 +932,7 @@ ConvertRtcTimeToEfiTime (
|
||||
@param Timeout Tell how long it should take to wait.
|
||||
|
||||
@retval EFI_DEVICE_ERROR RTC device error.
|
||||
@retval EFI_SUCCESS RTC is updated and ready.
|
||||
@retval EFI_SUCCESS RTC is updated and ready.
|
||||
**/
|
||||
EFI_STATUS
|
||||
RtcWaitToUpdate (
|
||||
@@ -1113,7 +1113,7 @@ ConvertEfiTimeToRtcTime (
|
||||
|
||||
/**
|
||||
Compare the Hour, Minute and Second of the From time and the To time.
|
||||
|
||||
|
||||
Only compare H/M/S in EFI_TIME and ignore other fields here.
|
||||
|
||||
@param From the first time
|
||||
@@ -1164,7 +1164,7 @@ IsWithinOneDay (
|
||||
//
|
||||
ASSERT (From->Month >=1);
|
||||
ASSERT (From->Month <=12);
|
||||
|
||||
|
||||
if (From->Year == To->Year) {
|
||||
if (From->Month == To->Month) {
|
||||
if ((From->Day + 1) == To->Day) {
|
||||
|
Reference in New Issue
Block a user