]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2TbltDevicePkg/Include/Mcfg.h
IntelFrameworkModulePkg: Refine casting expression result to bigger size
[mirror_edk2.git] / Vlv2TbltDevicePkg / Include / Mcfg.h
CommitLineData
3cbfba02
DW
1/*++\r
2\r
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
4 \r\r
5 This program and the accompanying materials are licensed and made available under\r\r
6 the terms and conditions of the BSD License that accompanies this distribution. \r\r
7 The full text of the license may be found at \r\r
8 http://opensource.org/licenses/bsd-license.php. \r\r
9 \r\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r\r
12 \r\r
13\r
14\r
15Module Name:\r
16\r
17 Mcfg.h\r
18\r
19Abstract:\r
20\r
21 ACPI Memory mapped configuration space base address Description Table\r
22 implementation, based on PCI Firmware Specification Revision 3.0 final draft,\r
23 downloadable at http://www.pcisig.com/home\r
24\r
25**/\r
26\r
27#ifndef _MCFG_H_\r
28#define _MCFG_H_\r
29\r
30//\r
31// Statements that include other files\r
32//\r
33#include <IndustryStandard/Acpi20.h>\r
34#include "McfgTable.h"\r
35#include "Platform.h"\r
36\r
37//\r
38// "MCFG" Static Resource Affinity Table\r
39//\r
40#define EFI_ACPI_3_0_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE_SIGNATURE 0x4746434D\r
41\r
42//\r
43// MCFG Definitions, see specification for details.\r
44//\r
45#define EFI_ACPI_OEM_MCFG_REVISION 0x00000001\r
46\r
47//\r
48// Define the number of each table type.\r
49// This is where the table layout is modified.\r
50//\r
51#define EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_BASE_ADDRESS_STRUCTURE_COUNT 1\r
52\r
53//\r
54// MCFG Table definition. The table must be defined in a platform\r
55// specific manner.\r
56//\r
57//\r
58// Ensure proper structure formats\r
59//\r
60#pragma pack(1)\r
61\r
62typedef struct {\r
63 EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE_HEADER Header;\r
64\r
65#if EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_BASE_ADDRESS_STRUCTURE_COUNT > 0\r
66 EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_BASE_ADDRESS_STRUCTURE Segment[\r
67 EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_BASE_ADDRESS_STRUCTURE_COUNT];\r
68#endif\r
69\r
70} EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE;\r
71\r
72#pragma pack()\r
73\r
74#endif // _MCFG_H_\r