]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkPkg/Include/Protocol/SmmControl.h
Remove FlashMap Ppi that has been replaced by Flash related PCDs.
[mirror_edk2.git] / IntelFrameworkPkg / Include / Protocol / SmmControl.h
CommitLineData
79964ac8 1/** @file\r
2 This file declares SMM Control abstraction protocol.\r
8411f1c0 3 This protocol is used initiate SMI/PMI activations. This protocol could be published by either of\r
4 the following:\r
5 - A processor driver to abstract the SMI/PMI IPI\r
6 - The driver that abstracts the ASIC that is supporting the APM port, such as the ICH in an\r
0b34b869 7 Intel chipset\r
8411f1c0 8 Because of the possibility of performing SMI or PMI IPI transactions, the ability to generate this\r
0b34b869 9 event from a platform chipset agent is an optional capability for both IA-32 and Itanium based\r
8411f1c0 10 systems.\r
79964ac8 11\r
12 Copyright (c) 2007, Intel Corporation\r
13 All rights reserved. This program and the accompanying materials\r
14 are licensed and made available under the terms and conditions of the BSD License\r
15 which accompanies this distribution. The full text of the license may be found at\r
16 http://opensource.org/licenses/bsd-license.php\r
17\r
18 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
19 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
20\r
21 Module Name: SmmControl.h\r
22\r
23 @par Revision Reference:\r
24 This Protocol is defined in Framework of EFI SMM Core Interface Spec\r
25 Version 0.9.\r
26\r
27**/\r
28\r
29#ifndef _SMM_CONTROL_H_\r
30#define _SMM_CONTROL_H_\r
31\r
b80fbe85 32#include <PiDxe.h>\r
33\r
79964ac8 34typedef struct _EFI_SMM_CONTROL_PROTOCOL EFI_SMM_CONTROL_PROTOCOL;\r
35\r
36#define EFI_SMM_CONTROL_PROTOCOL_GUID \\r
37 { \\r
38 0x8d12e231, 0xc667, 0x4fd1, {0x98, 0xf2, 0x24, 0x49, 0xa7, 0xe7, 0xb2, 0xe5 } \\r
39 }\r
40\r
41// SMM Access specification Data Structures\r
42//\r
43typedef struct {\r
44 UINT8 SmiTriggerRegister;\r
45 UINT8 SmiDataRegister;\r
46} EFI_SMM_CONTROL_REGISTER;\r
47\r
48//\r
49// SMM Control specification member function\r
50//\r
51/**\r
52 Invokes SMI activation from either the preboot or runtime environment.\r
53\r
54 @param This The EFI_SMM_CONTROL_PROTOCOL instance.\r
55 @param ArgumentBuffer Optional sized data to pass into the protocol activation.\r
56 @param ArgumentBufferSize Optional size of the data.\r
57 @param Periodic Optional mechanism to engender a periodic stream.\r
58 @param ActivationInterval Optional parameter to repeat at this period one\r
59 time or, if the Periodic Boolean is set, periodically.\r
60\r
61 @retval EFI_SUCCESS The SMI/PMI has been engendered.\r
62 @retval EFI_DEVICE_ERROR The timing is unsupported.\r
63 @retval EFI_INVALID_PARAMETER The activation period is unsupported.\r
64 @retval EFI_NOT_STARTED The SMM base service has not been initialized.\r
65\r
66**/\r
67typedef\r
68EFI_STATUS\r
69686d56 69(EFIAPI *EFI_SMM_ACTIVATE)(\r
79964ac8 70 IN EFI_SMM_CONTROL_PROTOCOL *This,\r
71 IN OUT INT8 *ArgumentBuffer OPTIONAL,\r
72 IN OUT UINTN *ArgumentBufferSize OPTIONAL,\r
73 IN BOOLEAN Periodic OPTIONAL,\r
74 IN UINTN ActivationInterval OPTIONAL\r
75 );\r
76\r
77/**\r
78 Clears any system state that was created in response to the Active call.\r
79\r
80 @param This The EFI_SMM_CONTROL_PROTOCOL instance.\r
81 @param Periodic Optional parameter to repeat at this period one time\r
82\r
83 @retval EFI_SUCCESS The SMI/PMI has been engendered.\r
84 @retval EFI_DEVICE_ERROR The source could not be cleared.\r
85 @retval EFI_INVALID_PARAMETER The service did not support the Periodic input argument.\r
86\r
87**/\r
88typedef\r
89EFI_STATUS\r
69686d56 90(EFIAPI *EFI_SMM_DEACTIVATE)(\r
79964ac8 91 IN EFI_SMM_CONTROL_PROTOCOL *This,\r
92 IN BOOLEAN Periodic OPTIONAL\r
93 );\r
94\r
95/**\r
96 Provides information on the source register used to generate the SMI.\r
97\r
98 @param This The EFI_SMM_CONTROL_PROTOCOL instance.\r
99 @param SmiRegister Pointer to the SMI register description structure\r
100\r
101 @retval EFI_SUCCESS The register structure has been returned.\r
102\r
103**/\r
104typedef\r
105EFI_STATUS\r
69686d56 106(EFIAPI *EFI_SMM_GET_REGISTER_INFO)(\r
79964ac8 107 IN EFI_SMM_CONTROL_PROTOCOL *This,\r
108 IN OUT EFI_SMM_CONTROL_REGISTER *SmiRegister\r
109 );\r
110\r
111/**\r
112 @par Protocol Description:\r
113 This protocol is used initiate SMI/PMI activations.\r
114\r
115 @param Trigger\r
116 Initiates the SMI/PMI activation.\r
117\r
118 @param Clear\r
119 Quiesces the SMI/PMI activation.\r
120\r
121 @param GetRegisterInfo\r
122 Provides data on the register used as the source of the SMI.\r
123\r
124 @param MinimumTriggerPeriod\r
125 Minimum interval at which the platform can set the period.\r
126\r
127**/\r
128\r
129struct _EFI_SMM_CONTROL_PROTOCOL {\r
130 EFI_SMM_ACTIVATE Trigger;\r
131 EFI_SMM_DEACTIVATE Clear;\r
132 EFI_SMM_GET_REGISTER_INFO GetRegisterInfo;\r
133 UINTN MinimumTriggerPeriod;\r
134};\r
135\r
136extern EFI_GUID gEfiSmmControlProtocolGuid;\r
137\r
138#endif\r