//\r
// The StartValue in TimerLib\r
//\r
-UINT64 mTimerLibStartValue = 0;\r
+UINT64 mTimerLibStartValue = 0;\r
\r
//\r
// The EndValue in TimerLib\r
//\r
-UINT64 mTimerLibEndValue = 0;\r
+UINT64 mTimerLibEndValue = 0;\r
\r
//\r
// The properties of timestamp\r
//\r
-EFI_TIMESTAMP_PROPERTIES mTimestampProperties = {\r
+EFI_TIMESTAMP_PROPERTIES mTimestampProperties = {\r
0,\r
0\r
};\r
// The timestamp of Timestamp Protocol\r
//\r
UINT64 TimestampValue;\r
+\r
TimestampValue = 0;\r
\r
//\r
// Get the timestamp\r
//\r
if (mTimerLibStartValue > mTimerLibEndValue) {\r
- TimestampValue = mTimerLibStartValue - GetPerformanceCounter();\r
+ TimestampValue = mTimerLibStartValue - GetPerformanceCounter ();\r
} else {\r
- TimestampValue = GetPerformanceCounter() - mTimerLibStartValue;\r
+ TimestampValue = GetPerformanceCounter () - mTimerLibStartValue;\r
}\r
\r
return TimestampValue;\r
**/\r
EFI_STATUS\r
EFIAPI\r
-TimestampDriverGetProperties(\r
- OUT EFI_TIMESTAMP_PROPERTIES *Properties\r
+TimestampDriverGetProperties (\r
+ OUT EFI_TIMESTAMP_PROPERTIES *Properties\r
)\r
{\r
if (Properties == NULL) {\r
//\r
// Get timestamp properties\r
//\r
- CopyMem((VOID *) Properties, (VOID *) &mTimestampProperties, sizeof (mTimestampProperties));\r
+ CopyMem ((VOID *)Properties, (VOID *)&mTimestampProperties, sizeof (mTimestampProperties));\r
\r
return EFI_SUCCESS;\r
}\r
EFI_STATUS Status;\r
\r
EFI_HANDLE TimestampHandle;\r
+\r
TimestampHandle = NULL;\r
\r
//\r
// Get the start value, end value and frequency in Timerlib\r
//\r
- mTimestampProperties.Frequency = GetPerformanceCounterProperties(&mTimerLibStartValue, &mTimerLibEndValue);\r
+ mTimestampProperties.Frequency = GetPerformanceCounterProperties (&mTimerLibStartValue, &mTimerLibEndValue);\r
\r
//\r
// Set the EndValue\r