IntelFrameworkModulePkg: 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>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Data Hub status code worker.
|
||||
|
||||
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -62,7 +62,7 @@ AcquireRecordBuffer (
|
||||
if (CurrentTpl > TPL_NOTIFY) {
|
||||
//
|
||||
// Memory management should work at <=TPL_NOTIFY
|
||||
//
|
||||
//
|
||||
gBS->RestoreTPL (CurrentTpl);
|
||||
return NULL;
|
||||
}
|
||||
@@ -132,7 +132,7 @@ RetrieveRecord (
|
||||
|
||||
/**
|
||||
Release given record and return it to free record buffer.
|
||||
|
||||
|
||||
@param RecordData Pointer to the record to release.
|
||||
|
||||
**/
|
||||
@@ -348,8 +348,8 @@ DataHubStatusCodeInitializeWorker (
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = gBS->LocateProtocol (
|
||||
&gEfiDataHubProtocolGuid,
|
||||
NULL,
|
||||
&gEfiDataHubProtocolGuid,
|
||||
NULL,
|
||||
(VOID **) &mDataHubProtocol
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
@@ -2,7 +2,7 @@
|
||||
Status Code Handler Driver which produces datahub handler and hook it
|
||||
onto the DXE status code router.
|
||||
|
||||
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -45,7 +45,7 @@ UnregisterBootTimeHandlers (
|
||||
|
||||
@param ImageHandle The firmware allocated handle for the EFI image.
|
||||
@param SystemTable A pointer to the EFI System Table.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The entry point is executed successfully.
|
||||
|
||||
**/
|
||||
|
@@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# Status Code Handler Driver which produces datahub handler.
|
||||
#
|
||||
# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -19,7 +19,7 @@
|
||||
MODULE_UNI_FILE = DatahubStatusCodeHandlerDxe.uni
|
||||
FILE_GUID = 863D214F-0920-437B-8CAD-88EA83A24E97
|
||||
MODULE_TYPE = DXE_DRIVER
|
||||
VERSION_STRING = 1.0
|
||||
VERSION_STRING = 1.0
|
||||
ENTRY_POINT = DatahubStatusCodeHandlerDxeEntry
|
||||
|
||||
#
|
||||
@@ -32,13 +32,13 @@
|
||||
DatahubStatusCodeHandlerDxe.h
|
||||
DatahubStatusCodeHandlerDxe.c
|
||||
DataHubStatusCodeWorker.c
|
||||
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
IntelFrameworkPkg/IntelFrameworkPkg.dec
|
||||
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
|
||||
|
||||
|
||||
[LibraryClasses]
|
||||
BaseLib
|
||||
MemoryAllocationLib
|
||||
@@ -50,12 +50,12 @@
|
||||
DebugLib
|
||||
SynchronizationLib
|
||||
BaseMemoryLib
|
||||
|
||||
|
||||
[Guids]
|
||||
gEfiEventExitBootServicesGuid ## CONSUMES ## Event
|
||||
gEfiDataHubStatusCodeRecordGuid ## PRODUCES ## UNDEFINED # DataRecord Guid
|
||||
gEfiStatusCodeDataTypeDebugGuid ## SOMETIMES_PRODUCES ## UNDEFINED # Record data type
|
||||
|
||||
|
||||
[Protocols]
|
||||
gEfiRscHandlerProtocolGuid ## CONSUMES
|
||||
gEfiDataHubProtocolGuid ## CONSUMES
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// DatahubStatusCodeHandlerDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -12,8 +12,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Data Hub Status Code DXE Driver"
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
PEI memory status code worker.
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -81,7 +81,7 @@ MemoryStatusCodeReportWorker (
|
||||
MEMORY_STATUSCODE_RECORD *Record;
|
||||
|
||||
//
|
||||
// Find GUID'ed HOBs to locate current record buffer.
|
||||
// Find GUID'ed HOBs to locate current record buffer.
|
||||
//
|
||||
Hob.Raw = GetFirstGuidHob (&gMemoryStatusCodeRecordGuid);
|
||||
ASSERT (Hob.Raw != NULL);
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Status code PEIM which produces Status Code PPI.
|
||||
|
||||
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -95,7 +95,7 @@ ReportDispatcher (
|
||||
|
||||
/**
|
||||
Entry point of Status Code PEIM.
|
||||
|
||||
|
||||
This function is the entry point of this Status Code PEIM.
|
||||
It initializes supported status code devices according to PCD settings,
|
||||
and installs Status Code PPI.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// StatusCodePei Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -12,8 +12,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Status Code PEI Module"
|
||||
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Data Hub status code worker.
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -62,7 +62,7 @@ AcquireRecordBuffer (
|
||||
if (CurrentTpl > TPL_NOTIFY) {
|
||||
//
|
||||
// Memory management should work at <=TPL_NOTIFY
|
||||
//
|
||||
//
|
||||
gBS->RestoreTPL (CurrentTpl);
|
||||
return NULL;
|
||||
}
|
||||
@@ -132,7 +132,7 @@ RetrieveRecord (
|
||||
|
||||
/**
|
||||
Release given record and return it to free record buffer.
|
||||
|
||||
|
||||
@param RecordData Pointer to the record to release.
|
||||
|
||||
**/
|
||||
@@ -212,7 +212,7 @@ DataHubStatusCodeReportWorker (
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Record = AcquireRecordBuffer ();
|
||||
if (Record == NULL) {
|
||||
//
|
||||
@@ -362,8 +362,8 @@ DataHubStatusCodeInitializeWorker (
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = gBS->LocateProtocol (
|
||||
&gEfiDataHubProtocolGuid,
|
||||
NULL,
|
||||
&gEfiDataHubProtocolGuid,
|
||||
NULL,
|
||||
(VOID **) &mDataHubProtocol
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
@@ -1,14 +1,14 @@
|
||||
/** @file
|
||||
Runtime memory status code worker.
|
||||
|
||||
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
@@ -18,7 +18,7 @@ RUNTIME_MEMORY_STATUSCODE_HEADER *mRtMemoryStatusCodeTable;
|
||||
|
||||
/**
|
||||
Initialize runtime memory status code table as initialization for runtime memory status code worker
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Runtime memory status code table successfully initialized.
|
||||
|
||||
**/
|
||||
@@ -38,7 +38,7 @@ RtMemoryStatusCodeInitializeWorker (
|
||||
|
||||
mRtMemoryStatusCodeTable->RecordIndex = 0;
|
||||
mRtMemoryStatusCodeTable->NumberOfRecords = 0;
|
||||
mRtMemoryStatusCodeTable->MaxRecordsNumber =
|
||||
mRtMemoryStatusCodeTable->MaxRecordsNumber =
|
||||
(PcdGet16 (PcdStatusCodeMemorySize) * 1024) / sizeof (MEMORY_STATUSCODE_RECORD);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
@@ -46,16 +46,16 @@ RtMemoryStatusCodeInitializeWorker (
|
||||
|
||||
|
||||
/**
|
||||
Report status code into runtime memory. If the runtime pool is full, roll back to the
|
||||
Report status code into runtime memory. If the runtime pool is full, roll back to the
|
||||
first record and overwrite it.
|
||||
|
||||
|
||||
@param CodeType Indicates the type of status code being reported.
|
||||
@param Value Describes the current status of a hardware or software entity.
|
||||
This included information about the class and subclass that is used to
|
||||
classify the entity as well as an operation.
|
||||
@param Instance The enumeration of a hardware or software entity within
|
||||
the system. Valid instance numbers start with 1.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Status code successfully recorded in runtime memory status code table.
|
||||
|
||||
**/
|
||||
|
@@ -1,14 +1,14 @@
|
||||
/** @file
|
||||
Serial I/O status code reporting worker.
|
||||
|
||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
/**
|
||||
Convert status code value and extended data to readable ASCII string, send string to serial I/O device.
|
||||
|
||||
|
||||
@param CodeType Indicates the type of status code being reported.
|
||||
@param Value Describes the current status of a hardware or software entity.
|
||||
This included information about the class and subclass that is used to
|
||||
@@ -72,9 +72,9 @@ SerialStatusCodeReportWorker (
|
||||
// Print DEBUG() information into output buffer.
|
||||
//
|
||||
CharCount = AsciiBSPrint (
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
Format,
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
Format,
|
||||
Marker
|
||||
);
|
||||
} else if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_ERROR_CODE) {
|
||||
@@ -82,14 +82,14 @@ SerialStatusCodeReportWorker (
|
||||
// Print ERROR information into output buffer.
|
||||
//
|
||||
CharCount = AsciiSPrint (
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
"ERROR: C%08x:V%08x I%x",
|
||||
CodeType,
|
||||
Value,
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
"ERROR: C%08x:V%08x I%x",
|
||||
CodeType,
|
||||
Value,
|
||||
Instance
|
||||
);
|
||||
|
||||
|
||||
if (CallerId != NULL) {
|
||||
CharCount += AsciiSPrint (
|
||||
&Buffer[CharCount],
|
||||
@@ -118,10 +118,10 @@ SerialStatusCodeReportWorker (
|
||||
// Print PROGRESS information into output buffer.
|
||||
//
|
||||
CharCount = AsciiSPrint (
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
"PROGRESS CODE: V%08x I%x\n\r",
|
||||
Value,
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
"PROGRESS CODE: V%08x I%x\n\r",
|
||||
Value,
|
||||
Instance
|
||||
);
|
||||
} else if (Data != NULL &&
|
||||
@@ -141,11 +141,11 @@ SerialStatusCodeReportWorker (
|
||||
// Code type is not defined.
|
||||
//
|
||||
CharCount = AsciiSPrint (
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
"Undefined: C%08x:V%08x I%x\n\r",
|
||||
CodeType,
|
||||
Value,
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
"Undefined: C%08x:V%08x I%x\n\r",
|
||||
CodeType,
|
||||
Value,
|
||||
Instance
|
||||
);
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Status code driver for IA32/X64/EBC architecture.
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -38,7 +38,7 @@ UINT32 mStatusCodeNestStatus = 0;
|
||||
|
||||
@param ImageHandle The firmware allocated handle for the EFI image.
|
||||
@param SystemTable A pointer to the EFI System Table.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The entry point is executed successfully.
|
||||
|
||||
**/
|
||||
@@ -192,9 +192,9 @@ VirtualAddressChangeCallBack (
|
||||
}
|
||||
|
||||
/**
|
||||
Dispatch initialization request to sub status code devices based on
|
||||
Dispatch initialization request to sub status code devices based on
|
||||
customized feature flags.
|
||||
|
||||
|
||||
**/
|
||||
VOID
|
||||
InitializationDispatcherWorker (
|
||||
@@ -236,11 +236,11 @@ InitializationDispatcherWorker (
|
||||
}
|
||||
|
||||
//
|
||||
// Replay Status code which saved in GUID'ed HOB to all supported devices.
|
||||
// Replay Status code which saved in GUID'ed HOB to all supported devices.
|
||||
//
|
||||
if (FeaturePcdGet (PcdStatusCodeReplayIn)) {
|
||||
//
|
||||
// Journal GUID'ed HOBs to find all record entry, if found,
|
||||
//
|
||||
// Journal GUID'ed HOBs to find all record entry, if found,
|
||||
// then output record to support replay device.
|
||||
//
|
||||
Hob.Raw = GetFirstGuidHob (&gMemoryStatusCodeRecordGuid);
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Internal include file of Status Code Runtime DXE Driver.
|
||||
|
||||
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -87,9 +87,9 @@ ReportDispatcher (
|
||||
);
|
||||
|
||||
/**
|
||||
Dispatch initialization request to sub status code devices based on
|
||||
Dispatch initialization request to sub status code devices based on
|
||||
customized feature flags.
|
||||
|
||||
|
||||
**/
|
||||
VOID
|
||||
InitializationDispatcherWorker (
|
||||
@@ -99,7 +99,7 @@ InitializationDispatcherWorker (
|
||||
|
||||
/**
|
||||
Locates Serial I/O Protocol as initialization for serial status code worker.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Serial I/O Protocol is successfully located.
|
||||
|
||||
**/
|
||||
@@ -111,7 +111,7 @@ EfiSerialStatusCodeInitializeWorker (
|
||||
|
||||
/**
|
||||
Convert status code value and extended data to readable ASCII string, send string to serial I/O device.
|
||||
|
||||
|
||||
@param CodeType Indicates the type of status code being reported.
|
||||
@param Value Describes the current status of a hardware or software entity.
|
||||
This included information about the class and subclass that is used to
|
||||
@@ -139,7 +139,7 @@ SerialStatusCodeReportWorker (
|
||||
|
||||
/**
|
||||
Initialize runtime memory status code table as initialization for runtime memory status code worker
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Runtime memory status code table successfully initialized.
|
||||
|
||||
**/
|
||||
@@ -149,16 +149,16 @@ RtMemoryStatusCodeInitializeWorker (
|
||||
);
|
||||
|
||||
/**
|
||||
Report status code into runtime memory. If the runtime pool is full, roll back to the
|
||||
Report status code into runtime memory. If the runtime pool is full, roll back to the
|
||||
first record and overwrite it.
|
||||
|
||||
|
||||
@param CodeType Indicates the type of status code being reported.
|
||||
@param Value Describes the current status of a hardware or software entity.
|
||||
This included information about the class and subclass that is used to
|
||||
classify the entity as well as an operation.
|
||||
@param Instance The enumeration of a hardware or software entity within
|
||||
the system. Valid instance numbers start with 1.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Status code successfully recorded in runtime memory status code table.
|
||||
|
||||
**/
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// StatusCodeRuntimeDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -12,8 +12,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Status Code Runtime DXE Driver"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user