]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkPkg/Include/Protocol/SmmStatusCode.h
Clean the public header files to remove the unnecessary include files.
[mirror_edk2.git] / IntelFrameworkPkg / Include / Protocol / SmmStatusCode.h
CommitLineData
b59768ca 1/** @file\r
2 Provides the parent dispatch service for a given SMI source generator.\r
3 The EFI_SMM_ICHN_DISPATCH_PROTOCOL provides the ability to install child handlers for\r
4 the given event types.\r
5\r
6 Copyright (c) 2008 - 2009, Intel Corporation\r
7 All rights reserved. This program and the accompanying materials\r
8 are licensed and made available under the terms and conditions of the BSD License\r
9 which accompanies this distribution. The full text of the license may be found at\r
10 http://opensource.org/licenses/bsd-license.php\r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
15 Module Name: SmmStatusCode.h\r
16\r
17 @par Revision Reference:\r
18 This Protocol is defined in Framework of EFI SMM Core Interface Spec\r
19 Version 0.9.\r
20\r
21**/\r
22\r
23#ifndef _EFI_SMM_ICHN_DISPATCH_H_\r
24#define _EFI_SMM_ICHN_DISPATCH_H_\r
25\r
b59768ca 26//\r
27// Global ID for the Smm Status code Protocol\r
28//\r
29#define EFI_SMM_STATUS_CODE_PROTOCOL_GUID \\r
30 { \\r
31 0x6afd2b77, 0x98c1, 0x4acd, {0xa6, 0xf9, 0x8a, 0x94, 0x39, 0xde, 0xf, 0xb1 } \\r
32 }\r
33\r
34typedef struct _EFI_SMM_STATUS_CODE_PROTOCOL EFI_SMM_STATUS_CODE_PROTOCOL;\r
35\r
36\r
37/**\r
38 Unregister a child SMI source dispatch function with a parent SMM driver\r
39\r
40 @param This Points to this instance of the EFI_SMM_STATUS_CODE_PROTOCOL.\r
41 @param CodeType Indicates the type of status code being reported.\r
42 @param Value Describes the current status of a hardware or software entity. \r
43 This status includes information about the class and subclass \r
44 that is used to classify the entity, as well as an operation. \r
45 For progress codes, the operation is the current activity. For \r
46 error codes, it is the exception. For debug codes, it is not defined \r
47 at this time.\r
48 @param Instance The enumeration of a hardware or software entity within the system. \r
49 A system may contain multiple entities that match a class/subclass pairing. \r
50 @param CallerId This optional parameter may be used to identify the caller. This parameter \r
51 allows the status code driver to apply different rules to different callers.\r
52 @param Data This optional parameter may be used to pass additional data.\r
53 \r
54 \r
55 @retval EFI_SUCCESS The function completed successfully.\r
56 @retval EFI_DEVICE_ERROR The function should not be completed due to a device error.\r
57\r
58**/\r
59typedef\r
60EFI_STATUS\r
61(EFIAPI *EFI_SMM_REPORT_STATUS_CODE) (\r
62 IN EFI_SMM_STATUS_CODE_PROTOCOL *This,\r
63 IN EFI_STATUS_CODE_TYPE CodeType,\r
64 IN EFI_STATUS_CODE_VALUE Value, \r
65 IN UINT32 Instance,\r
66 IN EFI_GUID *CallerId,\r
67 IN EFI_STATUS_CODE_DATA *Data OPTIONAL\r
68);\r
69\r
70\r
71/**\r
72 The EFI_SMM_STATUS_CODE_PROTOCOL provides the basic status code services while in SMRAM.\r
73 **/\r
74struct _EFI_SMM_STATUS_CODE_PROTOCOL {\r
75 EFI_SMM_REPORT_STATUS_CODE ReportStatusCode; ///< Allows for the SMM agent to produce a status code output.\r
76};\r
77\r
78extern EFI_GUID gEfiSmmStatusCodeProtocolGuid;\r
79\r
80#endif\r