3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Pei Core Status Code Support
29 IN EFI_PEI_SERVICES
**PeiServices
,
30 IN EFI_STATUS_CODE_TYPE CodeType
,
31 IN EFI_STATUS_CODE_VALUE Value
,
33 IN EFI_GUID
*CallerId
,
34 IN EFI_STATUS_CODE_DATA
*Data OPTIONAL
40 Core version of the Status Code reporter
44 PeiServices - The PEI core services table.
46 CodeType - Type of Status Code.
48 Value - Value to output for Status Code.
50 Instance - Instance Number of this status code.
52 CallerId - ID of the caller of this status code.
54 Data - Optional data associated with this status code.
58 Status - EFI_SUCCESS if status code is successfully reported
59 - EFI_NOT_AVAILABLE_YET if StatusCodePpi has not been installed
64 EFI_PEI_PROGRESS_CODE_PPI
*StatusCodePpi
;
68 //Locate StatusCode Ppi.
70 Status
= PeiServicesLocatePpi (
71 &gEfiPeiStatusCodePpiGuid
,
74 (VOID
**)&StatusCodePpi
77 if (!EFI_ERROR (Status
)) {
78 Status
= StatusCodePpi
->ReportStatusCode (
91 return EFI_NOT_AVAILABLE_YET
;