2 Provides the parent dispatch service for a given SMI source generator.
3 The EFI_SMM_ICHN_DISPATCH_PROTOCOL provides the ability to install child handlers for
6 Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
9 @par Revision Reference:
10 This Protocol is defined in Framework of EFI SMM Core Interface Spec
15 #ifndef _EFI_SMM_ICHN_DISPATCH_H_
16 #define _EFI_SMM_ICHN_DISPATCH_H_
20 // Global ID for the ICH SMI Protocol
22 #define EFI_SMM_ICHN_DISPATCH_PROTOCOL_GUID \
24 0xc50b323e, 0x9075, 0x4f2a, {0xac, 0x8e, 0xd2, 0x59, 0x6a, 0x10, 0x85, 0xcc } \
27 typedef struct _EFI_SMM_ICHN_DISPATCH_PROTOCOL EFI_SMM_ICHN_DISPATCH_PROTOCOL
;
30 // Related Definitions
33 // ICHN Specific SMIs. These are miscellaneous SMI sources that are supported by the
34 // ICHN specific SMI implementation. These may change over time. TrapNumber is only
35 // valid if the Type is Trap.
39 // NOTE: NEVER delete items from this list/enumeration! Doing so will prevent other versions
40 // of the code from compiling. If the ICH version your driver is written for doesn't support
41 // some of these SMIs, then simply return EFI_UNSUPPORTED when a child/client tries to register
88 // INSERT NEW ITEMS JUST BEFORE THIS LINE
90 NUM_ICHN_TYPES
// the number of items in this enumeration
91 } EFI_SMM_ICHN_SMI_TYPE
;
94 EFI_SMM_ICHN_SMI_TYPE Type
;
95 } EFI_SMM_ICHN_DISPATCH_CONTEXT
;
101 Dispatch function for a ICHN specific SMI handler.
103 @param DispatchHandle The handle of this dispatch function.
104 @param DispatchContext The pointer to the dispatch function's context.
105 The DispatchContext fields are filled in
106 by the dispatching driver prior to
107 invoking this dispatch function.
114 (EFIAPI
*EFI_SMM_ICHN_DISPATCH
)(
115 IN EFI_HANDLE DispatchHandle
,
116 IN EFI_SMM_ICHN_DISPATCH_CONTEXT
*DispatchContext
120 Register a child SMI source dispatch function with a parent SMM driver.
122 @param This The pointer to the EFI_SMM_ICHN_DISPATCH_PROTOCOL instance.
123 @param DispatchFunction The function to install.
124 @param DispatchContext The pointer to the dispatch function's context.
125 The caller fills in this context before calling
126 the register function to indicate to the register
127 function the ICHN SMI source for which the dispatch
128 function should be invoked.
129 @param DispatchHandle The handle generated by the dispatcher to track the function
132 @retval EFI_SUCCESS The dispatch function has been successfully
133 registered and the SMI source has been enabled.
134 @retval EFI_DEVICE_ERROR The driver could not enable the SMI source.
135 @retval EFI_OUT_OF_RESOURCES Not enough memory (system or SMM) to manage this
137 @retval EFI_INVALID_PARAMETER DispatchContext is invalid. The ICHN input value
138 is not within valid range.
143 (EFIAPI
*EFI_SMM_ICHN_REGISTER
)(
144 IN EFI_SMM_ICHN_DISPATCH_PROTOCOL
*This
,
145 IN EFI_SMM_ICHN_DISPATCH DispatchFunction
,
146 IN EFI_SMM_ICHN_DISPATCH_CONTEXT
*DispatchContext
,
147 OUT EFI_HANDLE
*DispatchHandle
151 Unregister a child SMI source dispatch function with a parent SMM driver
153 @param This The pointer to the EFI_SMM_ICHN_DISPATCH_PROTOCOL instance.
154 @param DispatchHandle The handle of the service to remove.
156 @retval EFI_SUCCESS The dispatch function has been successfully
157 unregistered, and the SMI source has been disabled,
158 if there are no other registered child dispatch
159 functions for this SMI source.
160 @retval EFI_INVALID_PARAMETER The handle is invalid.
165 (EFIAPI
*EFI_SMM_ICHN_UNREGISTER
)(
166 IN EFI_SMM_ICHN_DISPATCH_PROTOCOL
*This
,
167 IN EFI_HANDLE DispatchHandle
171 // Interface structure for the SMM ICHN specific SMI Dispatch Protocol
174 Provides the parent dispatch service for a given SMI source generator.
176 struct _EFI_SMM_ICHN_DISPATCH_PROTOCOL
{
177 EFI_SMM_ICHN_REGISTER Register
; ///< Installs a child service to be dispatched by this protocol.
178 EFI_SMM_ICHN_UNREGISTER UnRegister
; ///< Removes a child service dispatched by this protocol.
181 extern EFI_GUID gEfiSmmIchnDispatchProtocolGuid
;