#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
#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
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