TianoCore EDK2 master
|
#include <Protocol/MmReportStatusCodeHandler.h>
#include <Guid/MemoryStatusCodeRecord.h>
#include <Guid/StatusCodeDataTypeId.h>
#include <Guid/StatusCodeDataTypeDebug.h>
#include <Library/SynchronizationLib.h>
#include <Library/DebugLib.h>
#include <Library/ReportStatusCodeLib.h>
#include <Library/PrintLib.h>
#include <Library/PcdLib.h>
#include <Library/UefiDriverEntryPoint.h>
#include <Library/MmServicesTableLib.h>
#include <Library/SerialPortLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/BaseMemoryLib.h>
Go to the source code of this file.
Macros | |
#define | MAX_DEBUG_MESSAGE_LENGTH 0x100 |
Functions | |
EFI_STATUS | EfiSerialStatusCodeInitializeWorker (VOID) |
EFI_STATUS EFIAPI | SerialStatusCodeReportWorker (IN EFI_STATUS_CODE_TYPE CodeType, IN EFI_STATUS_CODE_VALUE Value, IN UINT32 Instance, IN EFI_GUID *CallerId, IN EFI_STATUS_CODE_DATA *Data OPTIONAL) |
EFI_STATUS | MemoryStatusCodeInitializeWorker (VOID) |
EFI_STATUS EFIAPI | MemoryStatusCodeReportWorker (IN EFI_STATUS_CODE_TYPE CodeType, IN EFI_STATUS_CODE_VALUE Value, IN UINT32 Instance, IN EFI_GUID *CallerId, IN EFI_STATUS_CODE_DATA *Data OPTIONAL) |
EFI_STATUS | StatusCodeHandlerCommonEntry (VOID) |
Variables | |
RUNTIME_MEMORY_STATUSCODE_HEADER * | mMmMemoryStatusCodeTable |
Internal include file for Status Code Handler Driver.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file StatusCodeHandlerMm.h.
#define MAX_DEBUG_MESSAGE_LENGTH 0x100 |
Definition at line 33 of file StatusCodeHandlerMm.h.
EFI_STATUS EfiSerialStatusCodeInitializeWorker | ( | VOID | ) |
Locates Serial I/O Protocol as initialization for serial status code worker.
EFI_SUCCESS | Serial I/O Protocol is successfully located. |
EFI_STATUS MemoryStatusCodeInitializeWorker | ( | VOID | ) |
Initialize runtime memory status code table as initialization for runtime memory status code worker
EFI_SUCCESS | Runtime memory status code table successfully initialized. |
Create the first memory status code GUID'ed HOB as initialization for memory status code worker.
EFI_SUCCESS | The GUID'ed HOB is created successfully. |
Initialize MM memory status code table as initialization for memory status code worker
EFI_SUCCESS | MM memory status code table successfully initialized. |
others | Errors from gMmst->MmInstallConfigurationTable(). |
Definition at line 18 of file MemoryStausCodeWorker.c.
EFI_STATUS EFIAPI MemoryStatusCodeReportWorker | ( | IN EFI_STATUS_CODE_TYPE | CodeType, |
IN EFI_STATUS_CODE_VALUE | Value, | ||
IN UINT32 | Instance, | ||
IN EFI_GUID * | CallerId, | ||
IN EFI_STATUS_CODE_DATA *Data | OPTIONAL | ||
) |
Report status code into runtime memory. If the runtime pool is full, roll back to the first record and overwrite it.
CodeType | Indicates the type of status code being reported. |
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. |
Instance | The enumeration of a hardware or software entity within the system. Valid instance numbers start with 1. |
CallerId | This optional parameter may be used to identify the caller. This parameter allows the status code driver to apply different rules to different callers. |
Data | This optional parameter may be used to pass additional data. |
EFI_SUCCESS | Status code successfully recorded in runtime memory status code table. |
Definition at line 63 of file MemoryStatusCodeWorker.c.
EFI_STATUS EFIAPI SerialStatusCodeReportWorker | ( | IN EFI_STATUS_CODE_TYPE | CodeType, |
IN EFI_STATUS_CODE_VALUE | Value, | ||
IN UINT32 | Instance, | ||
IN EFI_GUID * | CallerId, | ||
IN EFI_STATUS_CODE_DATA *Data | OPTIONAL | ||
) |
Convert status code value and extended data to readable ASCII string, send string to serial I/O device.
CodeType | Indicates the type of status code being reported. |
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. |
Instance | The enumeration of a hardware or software entity within the system. Valid instance numbers start with 1. |
CallerId | This optional parameter may be used to identify the caller. This parameter allows the status code driver to apply different rules to different callers. |
Data | This optional parameter may be used to pass additional data. |
EFI_SUCCESS | Status code reported to serial I/O successfully. |
EFI_DEVICE_ERROR | EFI serial device cannot work after ExitBootService() is called. |
EFI_DEVICE_ERROR | EFI serial device cannot work with TPL higher than TPL_CALLBACK. |
Definition at line 32 of file SerialStatusCodeWorker.c.
EFI_STATUS StatusCodeHandlerCommonEntry | ( | VOID | ) |
Entry point of Common MM Status Code Driver.
This function is the entry point of MM Status Code Driver.
EFI_SUCCESS | The entry point is executed successfully. |
Definition at line 53 of file StatusCodeHandlerMm.c.
|
extern |
Definition at line 12 of file MemoryStatusCodeWorker.c.