2 Intel-only SMM Child Dispatcher Protocol.
4 This protocol provides a parent dispatch service for a collection of
5 chipset-specific SMI source.
7 Copyright (c) 2013-2015 Intel Corporation.
9 This program and the accompanying materials
10 are licensed and made available under the terms and conditions of the BSD License
11 which accompanies this distribution. The full text of the license may be found at
12 http://opensource.org/licenses/bsd-license.php
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 #ifndef __SMM_ICHN_DISPATCH2_H__
21 #define __SMM_ICHN_DISPATCH2_H__
24 // Share some common definitions with Framework SMM
26 #include <Protocol/SmmIchnDispatch.h>
31 // Global ID for the ICH SMI Protocol
33 #define EFI_SMM_ICHN_DISPATCH2_PROTOCOL_GUID \
35 0xadf3a128, 0x416d, 0x4060, {0x8d, 0xdf, 0x30, 0xa1, 0xd7, 0xaa, 0xb6, 0x99 } \
38 typedef struct _EFI_SMM_ICHN_DISPATCH2_PROTOCOL EFI_SMM_ICHN_DISPATCH2_PROTOCOL
;
41 EFI_SMM_ICHN_SMI_TYPE Type
;
42 } EFI_SMM_ICHN_REGISTER_CONTEXT
;
48 Register a child SMI source dispatch function with a parent SMM driver
50 @param This Protocol instance pointer.
51 @param DispatchFunction Pointer to dispatch function to be invoked for
53 @param RegisterContext Pointer to the dispatch function's context.
54 The caller fills this context in before calling
55 the register function to indicate to the register
56 function the ICHN SMI source for which the dispatch
57 function should be invoked.
58 @param DispatchHandle Handle generated by the dispatcher to track the
61 @retval EFI_SUCCESS The dispatch function has been successfully
62 registered and the SMI source has been enabled.
63 @retval EFI_DEVICE_ERROR The driver was unable to enable the SMI source.
64 @retval EFI_OUT_OF_RESOURCES Not enough memory (system or SMM) to manage this
66 @retval EFI_INVALID_PARAMETER RegisterContext is invalid. The ICHN input value
67 is not within valid range.
72 (EFIAPI
*EFI_SMM_ICHN_DISPATCH2_REGISTER
) (
73 IN CONST EFI_SMM_ICHN_DISPATCH2_PROTOCOL
*This
,
74 IN EFI_SMM_HANDLER_ENTRY_POINT2 DispatchFunction
,
75 IN OUT EFI_SMM_ICHN_REGISTER_CONTEXT
*RegisterContext
,
76 OUT EFI_HANDLE
*DispatchHandle
80 Unregister a child SMI source dispatch function with a parent SMM driver
82 @param This Protocol instance pointer.
83 @param DispatchHandle Handle of dispatch function to deregister.
85 @retval EFI_SUCCESS The dispatch function has been successfully
86 unregistered and the SMI source has been disabled
87 if there are no other registered child dispatch
88 functions for this SMI source.
89 @retval EFI_INVALID_PARAMETER Handle is invalid.
95 (EFIAPI
*EFI_SMM_ICHN_DISPATCH2_UNREGISTER
) (
96 IN EFI_SMM_ICHN_DISPATCH2_PROTOCOL
*This
,
97 IN EFI_HANDLE DispatchHandle
101 // Interface structure for the SMM Ich n specific SMI Dispatch Protocol
104 @par Protocol Description:
105 Provides a parent dispatch service for ICH SMI sources.
108 Installs a child service to be dispatched by this protocol.
111 Removes a child service dispatched by this protocol.
114 struct _EFI_SMM_ICHN_DISPATCH2_PROTOCOL
{
115 EFI_SMM_ICHN_DISPATCH2_REGISTER Register
;
116 EFI_SMM_ICHN_DISPATCH2_UNREGISTER UnRegister
;
119 extern EFI_GUID gEfiSmmIchnDispatch2ProtocolGuid
;