+++ /dev/null
-/*++\r
-\r
- Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
- \r\r
- SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
- \r\r
-\r
-Module Name:\r
-\r
- MonoStatusCode.h\r
-\r
-Abstract:\r
-\r
- Monolithic single PEIM to provide the status code functionality.\r
- The PEIM is a blend of libraries that correspond to the different status code\r
- listeners that a platform installs.\r
-\r
---*/\r
-\r
-#ifndef _MONO_STATUS_CODE_H_\r
-#define _MONO_STATUS_CODE_H_\r
-\r
-//\r
-// Statements that include other files.\r
-//\r
-#include "PiPei.h"\r
-\r
-#include "Pi/PiBootMode.h"\r
-\r
-#include "Ppi/StatusCode.h"\r
-#include "Ppi/MemoryDiscovered.h"\r
-#include "Ppi/FvLoadFile.h"\r
-\r
-#include "Library/HobLib.h"\r
-#include "Library/DebugLib.h"\r
-#include "Library/IoLib.h"\r
-#include "Library/SerialPortLib.h"\r
-#include "Protocol/StatusCode.h"\r
-\r
-\r
-#ifndef _STATUS_CODE_ENABLER_H_\r
-#define _STATUS_CODE_ENABLER_H_\r
-\r
-#ifdef EFI_DEBUG\r
-\r
-#define EFI_STATUS_CODE_ENABLER_HOB_GUID \\r
- { \\r
- 0x5ffc6cf3, 0x71ad, 0x46f5, 0xbd, 0x8b, 0x7e, 0x8f, 0xfe, 0x19, 0x7, 0xd7 \\r
- }\r
-\r
-extern EFI_GUID gEfiSerialStatusCodeEnablerHobGuid;\r
-\r
-typedef struct _EFI_STATUS_CODE_INFO {\r
- BOOLEAN StatusCodeDisable;\r
-} EFI_STATUS_CODE_INFO;\r
-\r
-#endif\r
-#endif\r
-\r
-\r
-\r
-//\r
-// Platform specific function Declarations. These must be implemented in a\r
-// subdirectory named PlatformName in a file named PlatformStatusCode.c.\r
-//\r
-\r
-//\r
-// This is the platform function to initialize the listeners desired by the\r
-// platform.\r
-//\r
-VOID\r
-PlatformInitializeStatusCode (\r
- IN EFI_FFS_FILE_HEADER *FfsHeader,\r
- IN CONST EFI_PEI_SERVICES **PeiServices\r
- );\r
-\r
-//\r
-// This is the platform function that calls all of the listeners desired by the\r
-// platform.\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-PlatformReportStatusCode (\r
- IN CONST EFI_PEI_SERVICES **PeiServices,\r
- IN EFI_STATUS_CODE_TYPE CodeType,\r
- IN EFI_STATUS_CODE_VALUE Value,\r
- IN UINT32 Instance,\r
- IN CONST EFI_GUID * CallerId,\r
- IN CONST EFI_STATUS_CODE_DATA * Data OPTIONAL\r
- );\r
-\r
-//\r
-// Platform independent function Declarations\r
-//\r
-//\r
-// Initialize the status code listeners and publish the status code PPI.\r
-//\r
-VOID\r
-EFIAPI\r
-InitializeMonoStatusCode (\r
- IN EFI_FFS_FILE_HEADER *FfsHeader,\r
- IN const EFI_PEI_SERVICES **PeiServices\r
- );\r
-\r
-//\r
-// Convert a DXE status code call into a PEI status code call.\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-TranslateDxeStatusCodeToPeiStatusCode (\r
- IN EFI_STATUS_CODE_TYPE CodeType,\r
- IN EFI_STATUS_CODE_VALUE Value,\r
- IN UINT32 Instance,\r
- IN EFI_GUID * CallerId,\r
- IN EFI_STATUS_CODE_DATA * Data OPTIONAL\r
- );\r
-\r
-//\r
-// Publish a HOB that contains the listener to be used by DXE.\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-InitializeDxeReportStatusCode (\r
- IN const EFI_PEI_SERVICES **PeiServices\r
- );\r
-\r
-#endif\r