summaryrefslogtreecommitdiff
path: root/ChvRefCodePkg/AcpiTablesPCAT/Mcfg/McfgTable.h
diff options
context:
space:
mode:
authorGuo Mang <mang.guo@intel.com>2016-06-02 11:38:41 +0800
committerHao Wu <hao.a.wu@intel.com>2016-06-07 09:55:18 +0800
commitb4ff1d4d2cec557ae3e4bb3a3cbc12812ffd2084 (patch)
tree7cf353dd65819b4eab096b4245fdaba17e7d1332 /ChvRefCodePkg/AcpiTablesPCAT/Mcfg/McfgTable.h
parent5526fca2fe67d46a8593580292ee6d533c12488a (diff)
downloadedk2-platforms-b4ff1d4d2cec557ae3e4bb3a3cbc12812ffd2084.tar.xz
ChvRefCodePkg: Add AcpiTablesPCAT.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Guo Mang <mang.guo@intel.com>
Diffstat (limited to 'ChvRefCodePkg/AcpiTablesPCAT/Mcfg/McfgTable.h')
-rw-r--r--ChvRefCodePkg/AcpiTablesPCAT/Mcfg/McfgTable.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/ChvRefCodePkg/AcpiTablesPCAT/Mcfg/McfgTable.h b/ChvRefCodePkg/AcpiTablesPCAT/Mcfg/McfgTable.h
new file mode 100644
index 0000000000..433119ca04
--- /dev/null
+++ b/ChvRefCodePkg/AcpiTablesPCAT/Mcfg/McfgTable.h
@@ -0,0 +1,61 @@
+/** @file
+ ACPI Memory mapped configuration space base address Description Table
+ definition, based on PCI Firmware Specification Revision 3.0 final draft,
+ downloadable at http://www.pcisig.com/home
+
+ Copyright (c) 1996 - 2015, Intel Corporation. All rights reserved.<BR>
+
+ This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD License
+ which 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 _MCFG_TABLE_H_
+#define _MCFG_TABLE_H_
+
+//
+// Include files
+//
+#include <PiDxe.h>
+
+//
+// Ensure proper structure formats
+//
+#pragma pack(1)
+//
+// MCFG Revision (defined in spec)
+//
+#define EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE_REVISION 0x01
+
+//
+// MCFG Structure Definitions
+//
+//
+// Memory Mapped Enhanced Configuration Base Address Allocation
+// Structure Definition
+//
+typedef struct {
+ UINT64 BaseAddress;
+ UINT16 PciSegmentGroupNumber;
+ UINT8 StartBusNumber;
+ UINT8 EndBusNumber;
+ UINT32 Reserved;
+} EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_BASE_ADDRESS_STRUCTURE;
+
+//
+// MCFG Table header definition. The rest of the table
+// must be defined in a platform specific manner.
+//
+typedef struct {
+ EFI_ACPI_DESCRIPTION_HEADER Header;
+ UINT64 Reserved;
+} EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE_HEADER;
+
+#pragma pack()
+
+#endif // _MCFG_TABLE_H