]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/SmmStandbyButtonDispatch2.h
Remove the error checking for multi-instance device path since Dxecore has been enhan...
[mirror_edk2.git] / MdePkg / Include / Protocol / SmmStandbyButtonDispatch2.h
Content-type: text/html ]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/SmmStandbyButtonDispatch2.h


500 - Internal Server Error

Malformed UTF-8 character (fatal) at (eval 6) line 1, <$fd> line 140.
CommitLineData
acee7e74 1/** @file\r
2 SMM Standby Button Dispatch2 Protocol as defined in PI 1.1 Specification\r
3 Volume 4 System Management Mode Core Interface.\r
4\r
5 This protocol provides the parent dispatch service for the standby button SMI source generator.\r
6\r
7 Copyright (c) 2009, Intel Corporation\r
8 All rights reserved. This program and the accompanying materials\r
9 are licensed and made available under the terms and conditions of the BSD License\r
10 which accompanies this distribution. The full text of the license may be found at\r
11 http://opensource.org/licenses/bsd-license.php\r
12\r
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
15\r
16 @par Revision Reference:\r
17 This protocol is from PI Version 1.1.\r
18\r
19**/\r
20\r
21#ifndef _SMM_STANDBY_BUTTON_DISPATCH2_H_\r
22#define _SMM_STANDBY_BUTTON_DISPATCH2_H_\r
23\r
24#include <Pi/PiSmmCis.h>\r
25\r
26#define EFI_SMM_STANDBY_BUTTON_DISPATCH2_PROTOCOL_GUID \\r
27 { \\r
28 0x7300c4a1, 0x43f2, 0x4017, {0xa5, 0x1b, 0xc8, 0x1a, 0x7f, 0x40, 0x58, 0x5b } \\r
29 }\r
30\r
31///\r
32/// Standby Button phases\r
33///\r
34typedef enum {\r
35 EfiStandbyButtonEntry,\r
36 EfiStandbyButtonExit,\r
37 EfiStandbyButtonMax\r
38} EFI_STANDBY_BUTTON_PHASE;\r
39\r
40///\r
41/// The dispatch function's context.\r
42///\r
43typedef struct {\r
44 ///\r
45 /// Describes whether the child handler should be invoked upon the entry to the button \r
46 /// activation or upon exit.\r
47 ///\r
48 EFI_STANDBY_BUTTON_PHASE Phase;\r
49} EFI_SMM_STANDBY_BUTTON_REGISTER_CONTEXT;\r
50\r
51typedef struct _EFI_SMM_STANDBY_BUTTON_DISPATCH2_PROTOCOL EFI_SMM_STANDBY_BUTTON_DISPATCH2_PROTOCOL;\r
52\r
53/**\r
54 Provides the parent dispatch service for a standby button event.\r
55\r
56 This service registers a function (DispatchFunction) which will be called when an SMI is \r
57 generated because the standby button was pressed or released, as specified by \r
58 RegisterContext. On return, DispatchHandle contains a unique handle which may be used \r
59 later to unregister the function using UnRegister().\r
60 The DispatchFunction will be called with Context set to the same value as was passed into \r
61 this function in RegisterContext and with CommBuffer and CommBufferSize set to NULL. \r
62\r
63 @param[in] This Pointer to the EFI_SMM_STANDBY_BUTTON_DISPATCH2_PROTOCOL instance.\r
64 @param[in] DispatchFunction Function to register for handler when the standby button is pressed or released.\r
65