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 Contains the IPF installation function and an ESAL entry.
22 #include "StatusCode.h"
25 ReportStatusCodeEsalServicesClassCommonEntry (
34 IN SAL_EXTENDED_SAL_PROC ExtendedSalProc
,
35 IN BOOLEAN VirtualMode
,
42 Main entry for Extended SAL ReportStatusCode Services
46 FunctionId Function Id which needed to be called
47 Arg2 Efi status code type
48 Arg3 Efi status code value
51 Arg6 Efi status code data
54 ExtendedSalProc Esal Proc pointer
55 VirtualMode If this function is called in virtual mode
56 Global This module's global variable pointer
64 SAL_RETURN_REGS ReturnVal
;
68 case ReportStatusCodeService
:
69 ReturnVal
.Status
= StatusCodeReportStatusCode (
70 (EFI_STATUS_CODE_TYPE
) Arg2
,
71 (EFI_STATUS_CODE_VALUE
) Arg3
,
74 (EFI_STATUS_CODE_DATA
*) Arg6
79 ReturnVal
.Status
= EFI_SAL_INVALID_ARGUMENT
;
89 IN EFI_HANDLE ImageHandle
,
90 IN EFI_SYSTEM_TABLE
*SystemTable
96 Install the ReportStatusCode runtime service.
100 ImageHandle Image handle of the loaded driver
101 SystemTable Pointer to the System Table
105 EFI_SUCCESS The function always returns success.
110 // Initialize RT status code
112 InitializeStatusCode (ImageHandle
, SystemTable
);
115 // Initialize ESAL capabilities
118 &gEfiExtendedSalStatusCodeServicesProtocolGuid
,
120 ReportStatusCodeEsalServicesClassCommonEntry
,