TianoCore EDK2 master
Loading...
Searching...
No Matches
MmSxDispatch.h
Go to the documentation of this file.
1
12#ifndef _MM_SX_DISPATCH_H_
13#define _MM_SX_DISPATCH_H_
14
15#include <Pi/PiMmCis.h>
16
17#define EFI_MM_SX_DISPATCH_PROTOCOL_GUID \
18 { \
19 0x456d2859, 0xa84b, 0x4e47, {0xa2, 0xee, 0x32, 0x76, 0xd8, 0x86, 0x99, 0x7d } \
20 }
21
25typedef enum {
26 SxS0,
27 SxS1,
28 SxS2,
29 SxS3,
30 SxS4,
31 SxS5,
32 EfiMaximumSleepType
34
38typedef enum {
39 SxEntry,
40 SxExit,
41 EfiMaximumPhase
43
47typedef struct {
48 EFI_SLEEP_TYPE Type;
49 EFI_SLEEP_PHASE Phase;
51
53
84typedef
86(EFIAPI *EFI_MM_SX_REGISTER)(
88 IN EFI_MM_HANDLER_ENTRY_POINT DispatchFunction,
89 IN CONST EFI_MM_SX_REGISTER_CONTEXT *RegisterContext,
90 OUT EFI_HANDLE *DispatchHandle
91 );
92
105typedef
107(EFIAPI *EFI_MM_SX_UNREGISTER)(
109 IN EFI_HANDLE DispatchHandle
110 );
111
119 EFI_MM_SX_REGISTER Register;
120 EFI_MM_SX_UNREGISTER UnRegister;
121};
122
123extern EFI_GUID gEfiMmSxDispatchProtocolGuid;
124
125#endif
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * EFI_MM_SX_REGISTER)(IN CONST EFI_MM_SX_DISPATCH_PROTOCOL *This, IN EFI_MM_HANDLER_ENTRY_POINT DispatchFunction, IN CONST EFI_MM_SX_REGISTER_CONTEXT *RegisterContext, OUT EFI_HANDLE *DispatchHandle)
Definition: MmSxDispatch.h:86
EFI_STATUS(EFIAPI * EFI_MM_SX_UNREGISTER)(IN CONST EFI_MM_SX_DISPATCH_PROTOCOL *This, IN EFI_HANDLE DispatchHandle)
Definition: MmSxDispatch.h:107
EFI_SLEEP_TYPE
Definition: MmSxDispatch.h:25
EFI_SLEEP_PHASE
Definition: MmSxDispatch.h:38
EFI_STATUS(EFIAPI * EFI_MM_HANDLER_ENTRY_POINT)(IN EFI_HANDLE DispatchHandle, IN CONST VOID *Context OPTIONAL, IN OUT VOID *CommBuffer OPTIONAL, IN OUT UINTN *CommBufferSize OPTIONAL)
Definition: PiMmCis.h:162
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
Definition: Base.h:213