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