From 2094c4d03f4f734f566f4d720cb9bad464d51a24 Mon Sep 17 00:00:00 2001 From: rsun3 Date: Tue, 22 Feb 2011 10:05:06 +0000 Subject: [PATCH 1/1] Add definitions for the UEFI ACPI Data Table defined in the UEFI spec and the SMM Communication ACPI Table defined in the PI spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11330 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Include/Pi/PiSmmCommunicationAcpiTable.h | 28 ++++++++++++++++++ MdePkg/Include/PiSmm.h | 3 +- MdePkg/Include/Uefi/UefiAcpiDataTable.h | 29 +++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 MdePkg/Include/Pi/PiSmmCommunicationAcpiTable.h create mode 100644 MdePkg/Include/Uefi/UefiAcpiDataTable.h diff --git a/MdePkg/Include/Pi/PiSmmCommunicationAcpiTable.h b/MdePkg/Include/Pi/PiSmmCommunicationAcpiTable.h new file mode 100644 index 0000000000..78d801aa71 --- /dev/null +++ b/MdePkg/Include/Pi/PiSmmCommunicationAcpiTable.h @@ -0,0 +1,28 @@ +/** @file + PI SMM Communication ACPI Table Definition. + +Copyright (c) 2011, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under +the terms and conditions of the BSD License that accompanies this distribution. +The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php. + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef __PI_SMM_COMMUNICATION_ACPI_TABLE__ +#define __PI_SMM_COMMUNICATION_ACPI_TABLE__ + +#include + +#pragma pack(1) +typedef struct { + EFI_ACPI_DATA_TABLE UefiAcpiDataTable; + UINT32 SwSmiNumber; + UINT64 BufferPtrAddress; +} EFI_SMM_COMMUNICATION_ACPI_TABLE; +#pragma pack() + +#endif diff --git a/MdePkg/Include/PiSmm.h b/MdePkg/Include/PiSmm.h index ae067ce8b6..535080037b 100644 --- a/MdePkg/Include/PiSmm.h +++ b/MdePkg/Include/PiSmm.h @@ -2,7 +2,7 @@ Root include file for Mde Package SMM modules. -Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at @@ -20,6 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include +#include #endif diff --git a/MdePkg/Include/Uefi/UefiAcpiDataTable.h b/MdePkg/Include/Uefi/UefiAcpiDataTable.h new file mode 100644 index 0000000000..d0245fca87 --- /dev/null +++ b/MdePkg/Include/Uefi/UefiAcpiDataTable.h @@ -0,0 +1,29 @@ +/** @file + UEFI ACPI Data Table Definition. + +Copyright (c) 2011, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under +the terms and conditions of the BSD License that accompanies this distribution. +The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php. + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef __UEFI_ACPI_DATA_TABLE_H__ +#define __UEFI_ACPI_DATA_TABLE_H__ + +#include + +#pragma pack(1) +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + GUID Identifier; + UINT16 DataOffset; +} EFI_ACPI_DATA_TABLE; +#pragma pack() + +#endif + -- 2.39.2