TianoCore EDK2
master
Loading...
Searching...
No Matches
SmmSwDispatch2.h
Go to the documentation of this file.
1
12
#ifndef _SMM_SW_DISPATCH2_H_
13
#define _SMM_SW_DISPATCH2_H_
14
15
#include <
Protocol/MmSwDispatch.h
>
16
#include <
Pi/PiSmmCis.h
>
17
18
#define EFI_SMM_SW_DISPATCH2_PROTOCOL_GUID EFI_MM_SW_DISPATCH_PROTOCOL_GUID
19
25
typedef
struct
{
26
UINTN
SwSmiInputValue;
27
}
EFI_SMM_SW_REGISTER_CONTEXT
;
28
35
typedef
struct
{
39
UINTN
SwSmiCpuIndex
;
43
UINT8
CommandPort
;
47
UINT8
DataPort
;
48
}
EFI_SMM_SW_CONTEXT
;
49
50
typedef
struct
_EFI_SMM_SW_DISPATCH2_PROTOCOL
EFI_SMM_SW_DISPATCH2_PROTOCOL
;
51
81
typedef
82
EFI_STATUS
83
(EFIAPI *
EFI_SMM_SW_REGISTER2
)(
84
IN
CONST
EFI_SMM_SW_DISPATCH2_PROTOCOL
*This,
85
IN
EFI_SMM_HANDLER_ENTRY_POINT2 DispatchFunction,
86
IN
OUT
EFI_SMM_SW_REGISTER_CONTEXT
*RegisterContext,
87
OUT
EFI_HANDLE
*DispatchHandle
88
);
89
102
typedef
103
EFI_STATUS
104
(EFIAPI *
EFI_SMM_SW_UNREGISTER2
)(
105
IN
CONST
EFI_SMM_SW_DISPATCH2_PROTOCOL
*This,
106
IN
EFI_HANDLE
DispatchHandle
107
);
108
116
struct
_EFI_SMM_SW_DISPATCH2_PROTOCOL
{
117
EFI_SMM_SW_REGISTER2
Register;
118
EFI_SMM_SW_UNREGISTER2
UnRegister;
123
UINTN
MaximumSwiValue
;
124
};
125
126
extern
EFI_GUID
gEfiSmmSwDispatch2ProtocolGuid;
127
128
#endif
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
CONST
#define CONST
Definition:
Base.h:259
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
MmSwDispatch.h
PiSmmCis.h
EFI_SMM_SW_REGISTER2
EFI_STATUS(EFIAPI * EFI_SMM_SW_REGISTER2)(IN CONST EFI_SMM_SW_DISPATCH2_PROTOCOL *This, IN EFI_SMM_HANDLER_ENTRY_POINT2 DispatchFunction, IN OUT EFI_SMM_SW_REGISTER_CONTEXT *RegisterContext, OUT EFI_HANDLE *DispatchHandle)
Definition:
SmmSwDispatch2.h:83
EFI_SMM_SW_UNREGISTER2
EFI_STATUS(EFIAPI * EFI_SMM_SW_UNREGISTER2)(IN CONST EFI_SMM_SW_DISPATCH2_PROTOCOL *This, IN EFI_HANDLE DispatchHandle)
Definition:
SmmSwDispatch2.h:104
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_HANDLE
VOID * EFI_HANDLE
Definition:
UefiBaseType.h:33
_EFI_SMM_SW_DISPATCH2_PROTOCOL
Definition:
SmmSwDispatch2.h:116
_EFI_SMM_SW_DISPATCH2_PROTOCOL::MaximumSwiValue
UINTN MaximumSwiValue
Definition:
SmmSwDispatch2.h:123
EFI_SMM_SW_CONTEXT
Definition:
SmmSwDispatch2.h:35
EFI_SMM_SW_CONTEXT::DataPort
UINT8 DataPort
Definition:
SmmSwDispatch2.h:47
EFI_SMM_SW_CONTEXT::SwSmiCpuIndex
UINTN SwSmiCpuIndex
Definition:
SmmSwDispatch2.h:39
EFI_SMM_SW_CONTEXT::CommandPort
UINT8 CommandPort
Definition:
SmmSwDispatch2.h:43
EFI_SMM_SW_REGISTER_CONTEXT
Definition:
SmmSwDispatch2.h:25
GUID
Definition:
Base.h:213
MdePkg
Include
Protocol
SmmSwDispatch2.h
Generated on Fri Nov 15 2024 18:01:16 for TianoCore EDK2 by
1.9.6