2 This file declares EFI Smm ICH [N] Specific Smi Child Protocol
4 Copyright (c) 2007, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 Module Name: SmmIchnDispatch.h
15 @par Revision Reference:
16 This Protocol is defined in Framework of EFI SMM Core Interface Spec
21 #ifndef _EFI_SMM_ICHN_DISPATCH_H_
22 #define _EFI_SMM_ICHN_DISPATCH_H_
27 // Global ID for the ICH SMI Protocol
29 #define EFI_SMM_ICHN_DISPATCH_PROTOCOL_GUID \
31 0xc50b323e, 0x9075, 0x4f2a, {0xac, 0x8e, 0xd2, 0x59, 0x6a, 0x10, 0x85, 0xcc } \
34 typedef struct _EFI_SMM_ICHN_DISPATCH_PROTOCOL EFI_SMM_ICHN_DISPATCH_PROTOCOL
;
37 // Related Definitions
40 // ICHN Specific SMIs. These are miscellaneous SMI sources that are supported by the
41 // ICHN specific SMI implementation. These may change over time. TrapNumber is only
42 // valid if the Type is Trap.
46 // NOTE: NEVER delete items from this list/enumeration! Doing so will prevent other versions
47 // of the code from compiling. If the ICH version your driver is written for doesn't support
48 // some of these SMIs, then simply return EFI_UNSUPPORTED when a child/client tries to register
90 // INSERT NEW ITEMS JUST BEFORE THIS LINE
92 NUM_ICHN_TYPES
// the number of items in this enumeration
93 } EFI_SMM_ICHN_SMI_TYPE
;
96 EFI_SMM_ICHN_SMI_TYPE Type
;
97 } EFI_SMM_ICHN_DISPATCH_CONTEXT
;
103 Dispatch function for a ICH n specific SMI handler.
105 @param DispatchHandle Handle of this dispatch function.
106 @param DispatchContext Pointer to the dispatch function's context.
107 The DispatchContext fields are filled in
108 by the dispatching driver prior to
109 invoking this dispatch function.
116 (EFIAPI
*EFI_SMM_ICHN_DISPATCH
) (
117 IN EFI_HANDLE DispatchHandle
,
118 IN EFI_SMM_ICHN_DISPATCH_CONTEXT
*DispatchContext
122 Register a child SMI source dispatch function with a parent SMM driver
124 @param This Protocol instance pointer.
125 @param DispatchFunction Pointer to dispatch function to be invoked for
127 @param DispatchContext Pointer to the dispatch function's context.
128 The caller fills this context in before calling
129 the register function to indicate to the register
130 function the ICHN SMI source for which the dispatch
131 function should be invoked.
132 @param DispatchHandle Handle of dispatch function, for when interfacing
133 with the parent Sx state SMM driver.
135 @retval EFI_SUCCESS The dispatch function has been successfully
136 registered and the SMI source has been enabled.
137 @retval EFI_DEVICE_ERROR The driver was unable to enable the SMI source.
138 @retval EFI_OUT_OF_RESOURCES Not enough memory (system or SMM) to manage this
140 @retval EFI_INVALID_PARAMETER DispatchContext is invalid. The ICHN input value
141 is not within valid range.
146 (EFIAPI
*EFI_SMM_ICHN_REGISTER
) (
147 IN EFI_SMM_ICHN_DISPATCH_PROTOCOL
*This
,
148 IN EFI_SMM_ICHN_DISPATCH DispatchFunction
,
149 IN EFI_SMM_ICHN_DISPATCH_CONTEXT
*DispatchContext
,
150 OUT EFI_HANDLE
*DispatchHandle
154 Unregister a child SMI source dispatch function with a parent SMM driver
156 @param This Protocol instance pointer.
157 @param DispatchHandle Handle of dispatch function to deregister.
159 @retval EFI_SUCCESS The dispatch function has been successfully
160 unregistered and the SMI source has been disabled
161 if there are no other registered child dispatch
162 functions for this SMI source.
163 @retval EFI_INVALID_PARAMETER Handle is invalid.
169 (EFIAPI
*EFI_SMM_ICHN_UNREGISTER
) (
170 IN EFI_SMM_ICHN_DISPATCH_PROTOCOL
*This
,
171 IN EFI_HANDLE DispatchHandle
175 // Interface structure for the SMM Ich n specific SMI Dispatch Protocol
178 @par Protocol Description:
179 Provides the parent dispatch service for a given SMI source generator.
182 Installs a child service to be dispatched by this protocol.
185 Removes a child service dispatched by this protocol.
188 struct _EFI_SMM_ICHN_DISPATCH_PROTOCOL
{
189 EFI_SMM_ICHN_REGISTER Register
;
190 EFI_SMM_ICHN_UNREGISTER UnRegister
;
193 extern EFI_GUID gEfiSmmIchnDispatchProtocolGuid
;