]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Include/Protocol/SmmBase.h
Remove duplicated definition of EFI_SMM_COMMUNICATE_HEADER in PI and Framework SMM.
[mirror_edk2.git] / IntelFrameworkPkg / Include / Protocol / SmmBase.h
index 0f82dce7e0c40b8478e9696e09ce0ec72690d957..65d0979496ba4ae5c0297df72af79e7483851869 100644 (file)
 #ifndef _SMM_BASE_H_\r
 #define _SMM_BASE_H_\r
 \r
+//\r
+// Share some common definitions with PI SMM\r
+//\r
+#include <Framework/SmmCis.h>\r
+#include <Protocol/SmmCommunication.h>\r
+\r
 ///\r
 /// Global ID for the EFI_SMM_BASE_PROTOCOL\r
 ///\r
@@ -60,24 +66,6 @@ typedef struct _EFI_SMM_BASE_PROTOCOL  EFI_SMM_BASE_PROTOCOL;
 #define EFI_HANDLER_SOURCE_PENDING  0x0003\r
 ///@}\r
 \r
-///\r
-/// The header data is mandatory for messages sent into the SMM agent.\r
-///\r
-typedef struct {\r
-  ///\r
-  /// Allows for disambiguation of the message format.\r
-  ///\r
-  EFI_GUID                         HeaderGuid;\r
-  ///\r
-  /// Describes the size of the message, not including the header.\r
-  ///\r
-  UINTN                            MessageLength;\r
-  ///\r
-  /// Designates an array of bytes that is MessageLength in size.\r
-  ///\r
-  UINT8                            Data[1];\r
-} EFI_SMM_COMMUNICATE_HEADER;\r
-\r
 /**\r
   Entry Point to Callback service\r
 \r
@@ -127,7 +115,7 @@ EFI_STATUS
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_SMM_REGISTER_HANDLER)(\r
-  IN EFI_SMM_BASE_PROTOCOL                           *This,\r
+  IN  EFI_SMM_BASE_PROTOCOL                          *This,\r
   IN  EFI_DEVICE_PATH_PROTOCOL                       *FilePath,\r
   IN  VOID                                           *SourceBuffer OPTIONAL,\r
   IN  UINTN                                          SourceSize,\r