3 Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 Contains Platform specific implementations required to use status codes.
24 #ifndef _PLATFORM_STATUS_CODE_H_
25 #define _PLATFORM_STATUS_CODE_H_
28 #define CONFIG_PORT0 0x4E
29 #define INDEX_PORT0 0x4E
30 #define DATA_PORT0 0x4F
34 #include "MonoStatusCode.h"
35 #ifndef _PEI_PORT_80_STATUS_CODE_H_
36 #define _PEI_PORT_80_STATUS_CODE_H_
41 // Status code reporting function
44 Port80ReportStatusCode (
45 IN CONST EFI_PEI_SERVICES
**PeiServices
,
46 IN EFI_STATUS_CODE_TYPE CodeType
,
47 IN EFI_STATUS_CODE_VALUE Value
,
49 IN CONST EFI_GUID
* CallerId
,
50 IN CONST EFI_STATUS_CODE_DATA
* Data OPTIONAL
55 #ifndef _PEI_SERIAL_STATUS_CODE_LIB_H_
56 #define _PEI_SERIAL_STATUS_CODE_LIB_H_
59 #include <Guid/StatusCodeDataTypeId.h>
60 #include <Guid/StatusCodeDataTypeDebug.h>
61 #include <Library/ReportStatusCodeLib.h>
62 #include <Library/PrintLib.h>
63 #include <Library/BaseMemoryLib.h>
66 // Initialization function
69 SerialInitializeStatusCode (
74 // Status code reporting function
77 SerialReportStatusCode (
78 IN CONST EFI_PEI_SERVICES
**PeiServices
,
79 IN EFI_STATUS_CODE_TYPE CodeType
,
80 IN EFI_STATUS_CODE_VALUE Value
,
82 IN CONST EFI_GUID
* CallerId
,
83 IN CONST EFI_STATUS_CODE_DATA
* Data OPTIONAL
88 extern EFI_PEI_PROGRESS_CODE_PPI mStatusCodePpi
;
89 extern EFI_PEI_PPI_DESCRIPTOR mPpiListStatusCode
;
90 #define EFI_SIGNATURE_16(A, B) ((A) | (B << 8))
91 #define EFI_SIGNATURE_32(A, B, C, D) (EFI_SIGNATURE_16 (A, B) | (EFI_SIGNATURE_16 (C, D) << 16))
92 #define STATUSCODE_PEIM_SIGNATURE EFI_SIGNATURE_32 ('p', 's', 't', 'c')
96 EFI_FFS_FILE_HEADER
*FfsHeader
;
97 EFI_PEI_NOTIFY_DESCRIPTOR StatusCodeNotify
;
98 } STATUSCODE_CALLBACK_STATE_INFORMATION
;
107 #define STATUSCODE_PEIM_FROM_THIS(a) \
110 STATUSCODE_CALLBACK_STATE_INFORMATION, \
116 PlatformInitializeStatusCode (
117 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
118 IN CONST EFI_PEI_SERVICES
**PeiServices
123 // Function declarations
126 Install Firmware Volume Hob's once there is main memory
128 @param PeiServices General purpose services available to every PEIM.
129 @param NotifyDescriptor Not Used
132 @retval Status EFI_SUCCESS if the interface could be successfully
138 MemoryDiscoveredPpiNotifyCallback (
139 IN EFI_PEI_SERVICES
**PeiServices
,
140 IN EFI_PEI_NOTIFY_DESCRIPTOR
*NotifyDescriptor
,