mirror of https://github.com/acidanthera/audk.git
Follow up EDKT238, EDKT239, EDKT242, EDKT243
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1432 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a651e231ec
commit
534089527b
|
@ -46,8 +46,8 @@ SerialPortInitialize (
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
SerialPortWrite (
|
SerialPortWrite (
|
||||||
IN UINT8 *Buffer,
|
IN UINT8 *Buffer,
|
||||||
IN UINTN NumberOfBytes
|
IN UINTN NumberOfBytes
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -70,8 +70,8 @@ SerialPortWrite (
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
SerialPortRead (
|
SerialPortRead (
|
||||||
OUT UINT8 *Buffer,
|
OUT UINT8 *Buffer,
|
||||||
IN UINTN NumberOfBytes
|
IN UINTN NumberOfBytes
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -131,6 +131,9 @@ DxeStatusCodeDriverEntry (
|
||||||
Type EFI_STATUS_CODE_DATA is defined in "Related Definitions" below.
|
Type EFI_STATUS_CODE_DATA is defined in "Related Definitions" below.
|
||||||
The contents of this data type may have additional GUID-specific data. The standard GUIDs and
|
The contents of this data type may have additional GUID-specific data. The standard GUIDs and
|
||||||
their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification.
|
their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification.
|
||||||
|
|
||||||
|
@return Always return EFI_SUCCESS.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
|
|
@ -67,30 +67,11 @@ AcquireRecordBuffer (
|
||||||
|
|
||||||
@param Record Point to record buffer which is acquired by AcquirRecordBuffer()
|
@param Record Point to record buffer which is acquired by AcquirRecordBuffer()
|
||||||
|
|
||||||
@retval EFI_SUCCESS If DataRecord is valid.
|
|
||||||
@retval !EFI_SUCCESS The record list has empty.
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
FreeRecordBuffer (
|
FreeRecordBuffer (
|
||||||
IN DATAHUB_STATUSCODE_RECORD *Record
|
IN DATAHUB_STATUSCODE_RECORD *Record
|
||||||
)
|
)
|
||||||
/*++
|
|
||||||
|
|
||||||
Routine Description:
|
|
||||||
|
|
||||||
Release a mRecordBuffer entry allocated by AquireEmptyRecordBuffer ().
|
|
||||||
|
|
||||||
Arguments:
|
|
||||||
|
|
||||||
RecordBuffer - Data to free
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
|
|
||||||
EFI_SUCCESS - If DataRecord is valid
|
|
||||||
EFI_UNSUPPORTED - The record list has empty
|
|
||||||
|
|
||||||
--*/
|
|
||||||
{
|
{
|
||||||
ASSERT (Record != NULL);
|
ASSERT (Record != NULL);
|
||||||
ASSERT (mNumberOfRecords != 0);
|
ASSERT (mNumberOfRecords != 0);
|
||||||
|
@ -222,7 +203,7 @@ LogDataHubEventCallBack (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DATAHUB_STATUSCODE_RECORD *Record;
|
DATAHUB_STATUSCODE_RECORD *Record;
|
||||||
UINTN Size;
|
UINT32 Size;
|
||||||
UINT64 DataRecordClass;
|
UINT64 DataRecordClass;
|
||||||
LIST_ENTRY *Node;
|
LIST_ENTRY *Node;
|
||||||
|
|
||||||
|
@ -238,7 +219,7 @@ LogDataHubEventCallBack (
|
||||||
//
|
//
|
||||||
// Add in the size of the header we added.
|
// Add in the size of the header we added.
|
||||||
//
|
//
|
||||||
Size = sizeof (DATAHUB_STATUSCODE_RECORD) + Record->Data.Size;
|
Size = sizeof (DATAHUB_STATUSCODE_RECORD) + (UINT32) Record->Data.Size;
|
||||||
|
|
||||||
if ((Record->CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) {
|
if ((Record->CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) {
|
||||||
DataRecordClass = EFI_DATA_RECORD_CLASS_PROGRESS_CODE;
|
DataRecordClass = EFI_DATA_RECORD_CLASS_PROGRESS_CODE;
|
||||||
|
@ -266,7 +247,7 @@ LogDataHubEventCallBack (
|
||||||
&gEfiStatusCodeRuntimeProtocolGuid,
|
&gEfiStatusCodeRuntimeProtocolGuid,
|
||||||
DataRecordClass,
|
DataRecordClass,
|
||||||
Record,
|
Record,
|
||||||
(UINT32) Size
|
Size
|
||||||
);
|
);
|
||||||
|
|
||||||
FreeRecordBuffer (Record);
|
FreeRecordBuffer (Record);
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name: StatusCode.c
|
Module Name: DxeStatusCode.c
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
|
@ -111,6 +111,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
<Protocol Usage="ALWAYS_CONSUMED">
|
<Protocol Usage="ALWAYS_CONSUMED">
|
||||||
<ProtocolCName>gEfiDataHubProtocolGuid</ProtocolCName>
|
<ProtocolCName>gEfiDataHubProtocolGuid</ProtocolCName>
|
||||||
</Protocol>
|
</Protocol>
|
||||||
|
<Protocol Usage="ALWAYS_CONSUMED">
|
||||||
|
<ProtocolCName>gEfiStatusCodeRuntimeProtocolGuid</ProtocolCName>
|
||||||
|
</Protocol>
|
||||||
</Protocols>
|
</Protocols>
|
||||||
<Guids>
|
<Guids>
|
||||||
<GuidCNames Usage="SOMETIMES_CONSUMED">
|
<GuidCNames Usage="SOMETIMES_CONSUMED">
|
||||||
|
|
|
@ -32,10 +32,10 @@ EfiSerialStatusCodeInitializeWorker (
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
Status = gBS->LocateProtocol (
|
Status = gBS->LocateProtocol (
|
||||||
&gEfiSerialIoProtocolGuid,
|
&gEfiSerialIoProtocolGuid,
|
||||||
NULL,
|
NULL,
|
||||||
(VOID **) &mSerialIoProtocol
|
(VOID **) &mSerialIoProtocol
|
||||||
);
|
);
|
||||||
|
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
|
|
|
@ -89,6 +89,9 @@ EFI_PEI_PPI_DESCRIPTOR mStatusCodePpiDescriptor = {
|
||||||
Type EFI_STATUS_CODE_DATA is defined in "Related Definitions" below.
|
Type EFI_STATUS_CODE_DATA is defined in "Related Definitions" below.
|
||||||
The contents of this data type may have additional GUID-specific data. The standard GUIDs and
|
The contents of this data type may have additional GUID-specific data. The standard GUIDs and
|
||||||
their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification.
|
their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification.
|
||||||
|
|
||||||
|
@return Always return EFI_SUCCESS.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
|
Loading…
Reference in New Issue