2 This file declares SMM Status code Protocol.
4 This code abstracts SMM Status Code reporting.
6 Copyright (c) 2006, Intel Corporation
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 Module Name: SmmStatusCode.h
17 @par Revision Reference:
18 This Protocol is defined in Framework of EFI SMM Core Interface Spec
23 #ifndef _PROTOCOL_SMM_STATUS_CODE_H__
24 #define _PROTOCOL_SMM_STATUS_CODE_H__
27 // Global ID for the Smm Status Code Protocol
29 #define EFI_SMM_STATUS_CODE_PROTOCOL_GUID \
31 0x6afd2b77, 0x98c1, 0x4acd, {0xa6, 0xf9, 0x8a, 0x94, 0x39, 0xde, 0xf, 0xb1 } \
34 typedef struct _EFI_SMM_STATUS_CODE_PROTOCOL EFI_SMM_STATUS_CODE_PROTOCOL
;
37 Service to emit the status code in SMM.
39 @param This Pointer to EFI_SMM_STATUS_CODE_PROTOCOL instance.
40 @param CodeType Indicates the type of status code being reported.
41 @param Value Describes the current status of a hardware or software entity.
42 This included information about the class and subclass that is used to
43 classify the entity as well as an operation.
44 @param Instance The enumeration of a hardware or software entity within
45 the system. Valid instance numbers start with 1.
46 @param CallerId This optional parameter may be used to identify the caller.
47 This parameter allows the status code driver to apply different rules to
49 @param Data This optional parameter may be used to pass additional data.
51 @retval EFI_SUCCESS The function completed successfully
52 @retval EFI_DEVICE_ERROR The function should not be completed due to a device error.
57 (EFIAPI
*EFI_SMM_REPORT_STATUS_CODE
) (
58 IN EFI_SMM_STATUS_CODE_PROTOCOL
*This
,
59 IN EFI_STATUS_CODE_TYPE CodeType
,
60 IN EFI_STATUS_CODE_VALUE Value
,
62 IN EFI_GUID
*CallerId
,
63 IN EFI_STATUS_CODE_DATA
*Data OPTIONAL
67 @par Protocol Description:
68 Provides status code services from SMM.
70 @param ReportStatusCode
71 Allows for the SMM agent to produce a status code output.
74 struct _EFI_SMM_STATUS_CODE_PROTOCOL
{
75 EFI_SMM_REPORT_STATUS_CODE ReportStatusCode
;
78 extern EFI_GUID gEfiSmmStatusCodeProtocolGuid
;