]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Include/Protocol/SmmSxDispatch.h
Move SmmLib from IntelFrameworkPkg to MdePkg because this library is useful to both...
[mirror_edk2.git] / IntelFrameworkPkg / Include / Protocol / SmmSxDispatch.h
index b29fbb3bfd080860b0aac6390379153009f4aaf8..fd65f77b368eb86152b9cb659b7a61ba93315f19 100644 (file)
@@ -10,8 +10,6 @@
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-  Module Name:  SmmSxDispatch.h\r
-\r
   @par Revision Reference:\r
   This Protocol is defined in Framework of EFI SMM Core Interface Spec\r
   Version 0.9.\r
 #ifndef _EFI_SMM_SX_DISPATCH_H_\r
 #define _EFI_SMM_SX_DISPATCH_H_\r
 \r
+//\r
+// Share some common definitions with PI SMM\r
+//\r
+#include <Protocol/SmmSxDispatch2.h>\r
 \r
 //\r
 // Global ID for the Sx SMI Protocol\r
   }\r
 \r
 typedef struct _EFI_SMM_SX_DISPATCH_PROTOCOL  EFI_SMM_SX_DISPATCH_PROTOCOL;\r
-//\r
-// Related Definitions\r
-//\r
-typedef enum {\r
-  SxS0,\r
-  SxS1,\r
-  SxS2,\r
-  SxS3,\r
-  SxS4,\r
-  SxS5,\r
-  EfiMaximumSleepType\r
-} EFI_SLEEP_TYPE;\r
-\r
-typedef enum {\r
-  SxEntry,\r
-  SxExit,\r
-  EfiMaximumPhase\r
-} EFI_SLEEP_PHASE;\r
 \r
 typedef struct {\r
   EFI_SLEEP_TYPE  Type;\r
@@ -85,15 +69,15 @@ VOID
   @param  This                  Pointer to the EFI_SMM_SX_DISPATCH_PROTOCOL instance.\r
   @param  DispatchFunction      Function to install.\r
   @param  DispatchContext       Pointer to the dispatch function's context.\r
-                                The caller fills this context in before calling\r
-                                the register function to indicate to the register\r
+                                The caller fills in this context before calling\r
+                                the register function to indicates to the register\r
                                 function which Sx state type and phase the caller\r
-                                wishes to be called back on. For this intertace,\r
+                                wishes to be called back on. For this interface,\r
                                 the Sx driver will call the registered handlers for\r
                                 all Sx type and phases, so the Sx state handler(s)\r
                                 must check the Type and Phase field of the Dispatch\r
                                 context and act accordingly.\r
-  @param  DispatchHandle        Handle of dispatch function, for when interfacing\r
+  @param  DispatchHandle        Handle of dispatch function, for interfacing\r
                                 with the parent Sx state SMM driver.\r
 \r
   @retval EFI_SUCCESS           The dispatch function has been successfully\r