]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/SmmGpiDispatch2.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / Protocol / SmmGpiDispatch2.h
CommitLineData
b6e51fd5 1/** @file\r
2 SMM General Purpose Input (GPI) Dispatch2 Protocol as defined in PI 1.1 Specification\r
3 Volume 4 System Management Mode Core Interface.\r
4\r
9095d37b 5 This protocol provides the parent dispatch service for the General Purpose Input\r
b6e51fd5 6 (GPI) SMI source generator.\r
7\r
9095d37b
LG
8 The EFI_SMM_GPI_DISPATCH2_PROTOCOL provides the ability to install child handlers for the\r
9 given event types. Several inputs can be enabled. This purpose of this interface is to generate an\r
b6e51fd5 10 SMI in response to any of these inputs having a true value provided.\r
11\r
9095d37b 12 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 13 SPDX-License-Identifier: BSD-2-Clause-Patent\r
b6e51fd5 14\r
15 @par Revision Reference:\r
16 This protocol is from PI Version 1.1.\r
17\r
18**/\r
19\r
20#ifndef _SMM_GPI_DISPATCH2_H_\r
21#define _SMM_GPI_DISPATCH2_H_\r
22\r
2f208e59 23#include <Protocol/MmGpiDispatch.h>\r
b6e51fd5 24#include <Pi/PiSmmCis.h>\r
25\r
2f208e59 26#define EFI_SMM_GPI_DISPATCH2_PROTOCOL_GUID EFI_MM_GPI_DISPATCH_PROTOCOL_GUID\r
b6e51fd5 27///\r
28/// The dispatch function's context.\r
29///\r
2f208e59
ED
30typedef EFI_MM_GPI_REGISTER_CONTEXT EFI_SMM_GPI_REGISTER_CONTEXT;\r
31\r
32typedef EFI_MM_GPI_REGISTER EFI_SMM_GPI_REGISTER2;\r
33\r
34typedef EFI_MM_GPI_UNREGISTER EFI_SMM_GPI_UNREGISTER2;\r
35\r
36typedef EFI_MM_GPI_DISPATCH_PROTOCOL EFI_SMM_GPI_DISPATCH2_PROTOCOL;\r
37\r
b6e51fd5 38\r
b6e51fd5 39\r
40extern EFI_GUID gEfiSmmGpiDispatch2ProtocolGuid;\r
41\r
42#endif\r
43\r