3 Copyright (c) 2004 - 2014, 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"
38 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
40 This program and the accompanying materials are licensed and made available under
41 the terms and conditions of the BSD License that accompanies this distribution.
42 The full text of the license may be found at
43 http://opensource.org/licenses/bsd-license.php.
45 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
46 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
48 This software and associated documentation (if any) is furnished
49 under a license and may only be used or copied in accordance
50 with the terms of the license. Except as permitted by such
51 license, no part of this software or documentation may be
52 reproduced, stored in a retrieval system, or transmitted in any
53 form or by any means without the express written consent of
63 Lib to provide status code reporting via port 80.
67 #ifndef _PEI_PORT_80_STATUS_CODE_H_
68 #define _PEI_PORT_80_STATUS_CODE_H_
73 // Status code reporting function
76 Port80ReportStatusCode (
77 IN CONST EFI_PEI_SERVICES
**PeiServices
,
78 IN EFI_STATUS_CODE_TYPE CodeType
,
79 IN EFI_STATUS_CODE_VALUE Value
,
81 IN CONST EFI_GUID
* CallerId
,
82 IN CONST EFI_STATUS_CODE_DATA
* Data OPTIONAL
89 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
91 This program and the accompanying materials are licensed and made available under
92 the terms and conditions of the BSD License that accompanies this distribution.
93 The full text of the license may be found at
94 http://opensource.org/licenses/bsd-license.php.
96 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
97 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
99 This software and associated documentation (if any) is furnished
100 under a license and may only be used or copied in accordance
101 with the terms of the license. Except as permitted by such
102 license, no part of this software or documentation may be
103 reproduced, stored in a retrieval system, or transmitted in any
104 form or by any means without the express written consent of
110 SerialStatusCodeLib.h
114 Lib to provide Serial I/O status code reporting.
118 #ifndef _PEI_SERIAL_STATUS_CODE_LIB_H_
119 #define _PEI_SERIAL_STATUS_CODE_LIB_H_
122 #include <Guid/StatusCodeDataTypeId.h>
123 #include <Guid/StatusCodeDataTypeDebug.h>
124 #include <Library/ReportStatusCodeLib.h>
125 #include <Library/PrintLib.h>
126 #include <Library/BaseMemoryLib.h>
129 // Initialization function
132 SerialInitializeStatusCode (
137 // Status code reporting function
140 SerialReportStatusCode (
141 IN CONST EFI_PEI_SERVICES
**PeiServices
,
142 IN EFI_STATUS_CODE_TYPE CodeType
,
143 IN EFI_STATUS_CODE_VALUE Value
,
145 IN CONST EFI_GUID
* CallerId
,
146 IN CONST EFI_STATUS_CODE_DATA
* Data OPTIONAL
151 extern EFI_PEI_PROGRESS_CODE_PPI mStatusCodePpi
;
152 extern EFI_PEI_PPI_DESCRIPTOR mPpiListStatusCode
;
153 #define EFI_SIGNATURE_16(A, B) ((A) | (B << 8))
154 #define EFI_SIGNATURE_32(A, B, C, D) (EFI_SIGNATURE_16 (A, B) | (EFI_SIGNATURE_16 (C, D) << 16))
155 #define STATUSCODE_PEIM_SIGNATURE EFI_SIGNATURE_32 ('p', 's', 't', 'c')
159 EFI_FFS_FILE_HEADER
*FfsHeader
;
160 EFI_PEI_NOTIFY_DESCRIPTOR StatusCodeNotify
;
161 } STATUSCODE_CALLBACK_STATE_INFORMATION
;
170 #define STATUSCODE_PEIM_FROM_THIS(a) \
173 STATUSCODE_CALLBACK_STATE_INFORMATION, \
179 PlatformInitializeStatusCode (
180 IN EFI_FFS_FILE_HEADER
*FfsHeader
,
181 IN CONST EFI_PEI_SERVICES
**PeiServices
186 // Function declarations
189 Install Firmware Volume Hob's once there is main memory
191 @param PeiServices General purpose services available to every PEIM.
192 @param NotifyDescriptor Not Used
195 @retval Status EFI_SUCCESS if the interface could be successfully
201 MemoryDiscoveredPpiNotifyCallback (
202 IN EFI_PEI_SERVICES
**PeiServices
,
203 IN EFI_PEI_NOTIFY_DESCRIPTOR
*NotifyDescriptor
,