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:
yshang1 2006-09-04 03:37:39 +00:00
parent a651e231ec
commit 534089527b
7 changed files with 21 additions and 31 deletions

View File

@ -46,8 +46,8 @@ SerialPortInitialize (
UINTN
EFIAPI
SerialPortWrite (
IN UINT8 *Buffer,
IN UINTN NumberOfBytes
IN UINT8 *Buffer,
IN UINTN NumberOfBytes
)
{
return 0;
@ -70,8 +70,8 @@ SerialPortWrite (
UINTN
EFIAPI
SerialPortRead (
OUT UINT8 *Buffer,
IN UINTN NumberOfBytes
OUT UINT8 *Buffer,
IN UINTN NumberOfBytes
)
{
return 0;

View File

@ -131,6 +131,9 @@ DxeStatusCodeDriverEntry (
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
their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification.
@return Always return EFI_SUCCESS.
**/
EFI_STATUS
EFIAPI

View File

@ -67,30 +67,11 @@ AcquireRecordBuffer (
@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
FreeRecordBuffer (
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 (mNumberOfRecords != 0);
@ -222,7 +203,7 @@ LogDataHubEventCallBack (
)
{
DATAHUB_STATUSCODE_RECORD *Record;
UINTN Size;
UINT32 Size;
UINT64 DataRecordClass;
LIST_ENTRY *Node;
@ -238,7 +219,7 @@ LogDataHubEventCallBack (
//
// 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) {
DataRecordClass = EFI_DATA_RECORD_CLASS_PROGRESS_CODE;
@ -266,7 +247,7 @@ LogDataHubEventCallBack (
&gEfiStatusCodeRuntimeProtocolGuid,
DataRecordClass,
Record,
(UINT32) Size
Size
);
FreeRecordBuffer (Record);

View File

@ -22,7 +22,7 @@
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name: StatusCode.c
Module Name: DxeStatusCode.c
**/

View File

@ -111,6 +111,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<Protocol Usage="ALWAYS_CONSUMED">
<ProtocolCName>gEfiDataHubProtocolGuid</ProtocolCName>
</Protocol>
<Protocol Usage="ALWAYS_CONSUMED">
<ProtocolCName>gEfiStatusCodeRuntimeProtocolGuid</ProtocolCName>
</Protocol>
</Protocols>
<Guids>
<GuidCNames Usage="SOMETIMES_CONSUMED">

View File

@ -32,10 +32,10 @@ EfiSerialStatusCodeInitializeWorker (
EFI_STATUS Status;
Status = gBS->LocateProtocol (
&gEfiSerialIoProtocolGuid,
NULL,
(VOID **) &mSerialIoProtocol
);
&gEfiSerialIoProtocolGuid,
NULL,
(VOID **) &mSerialIoProtocol
);
ASSERT_EFI_ERROR (Status);

View File

@ -89,6 +89,9 @@ EFI_PEI_PPI_DESCRIPTOR mStatusCodePpiDescriptor = {
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
their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification.
@return Always return EFI_SUCCESS.
**/
EFI_STATUS
EFIAPI