]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Follow UEFI 2.7 spec to deprecate SMM Communication ACPI Table
authorStar Zeng <star.zeng@intel.com>
Thu, 20 Jul 2017 06:47:28 +0000 (14:47 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 27 Jul 2017 06:08:09 +0000 (14:08 +0800)
Delete PiSmmCommunicationAcpiTable.h and delete SMM Communication ACPI
Table definition in UefiAcpiDataTable.h.
As EFI_SMM_COMMUNICATE_HEADER is defined in both PI spec vol 4
and UEFI spec, move its definition to SmmCommunication.h.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdePkg/Include/Pi/PiSmmCommunicationAcpiTable.h [deleted file]
MdePkg/Include/PiSmm.h
MdePkg/Include/Protocol/SmmCommunication.h
MdePkg/Include/Uefi/UefiAcpiDataTable.h

diff --git a/MdePkg/Include/Pi/PiSmmCommunicationAcpiTable.h b/MdePkg/Include/Pi/PiSmmCommunicationAcpiTable.h
deleted file mode 100644 (file)
index 979aa9b..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/** @file\r
-  PI SMM Communication ACPI Table Definition.\r
-\r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
-The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-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
-**/\r
-\r
-#ifndef __PI_SMM_COMMUNICATION_ACPI_TABLE__\r
-#define __PI_SMM_COMMUNICATION_ACPI_TABLE__\r
-\r
-#include <Uefi/UefiAcpiDataTable.h>\r
-\r
-#endif\r
index 535080037b8d4ec0aeb89d7324f7be6427c38c61..e94a5d21b8bf82b26f2743f903aa095e7ce80dd9 100644 (file)
@@ -2,7 +2,7 @@
 \r
   Root include file for Mde Package SMM modules.\r
 \r
-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under \r
 the terms and conditions of the BSD License that accompanies this distribution.  \r
 The full text of the license may be found at\r
@@ -20,7 +20,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Uefi/UefiSpec.h>\r
 \r
 #include <Pi/PiSmmCis.h>\r
-#include <Pi/PiSmmCommunicationAcpiTable.h>\r
 \r
 #endif\r
 \r
index c284e55b24a819155cdca570a9bc87c2b29f6e74..5587d49ceda39d081a99381594049161c301be65 100644 (file)
@@ -4,7 +4,7 @@
   This protocol provides a means of communicating between drivers outside of SMM and SMI \r
   handlers inside of SMM.  \r
 \r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
 #ifndef _SMM_COMMUNICATION_H_\r
 #define _SMM_COMMUNICATION_H_\r
 \r
-//\r
-// Need include this header file for EFI_SMM_COMMUNICATE_HEADER data structure.\r
-//\r
-#include <Uefi/UefiAcpiDataTable.h>\r
+#pragma pack(1)\r
+\r
+///\r
+/// To avoid confusion in interpreting frames, the communication buffer should always \r
+/// begin with EFI_SMM_COMMUNICATE_HEADER\r
+///\r
+typedef struct {\r
+  ///\r
+  /// Allows for disambiguation of the message format.\r
+  ///\r
+  EFI_GUID  HeaderGuid;\r
+  ///\r
+  /// Describes the size of Data (in bytes) and does not include the size of 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
+#pragma pack()\r
 \r
 #define EFI_SMM_COMMUNICATION_PROTOCOL_GUID \\r
   { \\r
index 957721fa7cec8ca2c48fbeccdec4807936a21b72..ae4942b69b4733cd1afa632cb86ad528889ecc2e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   UEFI ACPI Data Table Definition.\r
 \r
-Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under \r
 the terms and conditions of the BSD License that accompanies this distribution.  \r
 The full text of the license may be found at\r
@@ -23,37 +23,6 @@ typedef struct {
   GUID                          Identifier;\r
   UINT16                        DataOffset;\r
 } EFI_ACPI_DATA_TABLE;\r
-\r
-typedef struct {\r
-  EFI_ACPI_DATA_TABLE  UefiAcpiDataTable;\r
-  UINT32               SwSmiNumber;\r
-  UINT64               BufferPtrAddress;\r
-} EFI_SMM_COMMUNICATION_ACPI_TABLE;\r
-\r
-typedef struct {\r
-  EFI_SMM_COMMUNICATION_ACPI_TABLE        UefiSmmCommunicationAcpiTable;\r
-  EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE  InvocationRegister;\r
-} EFI_SMM_COMMUNICATION_ACPI_TABLE_2;\r
-\r
-///\r
-/// To avoid confusion in interpreting frames, the communication buffer should always \r
-/// begin with EFI_SMM_COMMUNICATE_HEADER\r
-///\r
-typedef struct {\r
-  ///\r
-  /// Allows for disambiguation of the message format.\r
-  ///\r
-  EFI_GUID  HeaderGuid;\r
-  ///\r
-  /// Describes the size of Data (in bytes) and does not include the size of 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
 #pragma pack()\r
 \r
 #endif\r