]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Mcfg/Mcfg.aslc
Vlv2DeviceRefCodePkg: Fixed thermal issue.
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / AcpiTablesPCAT / Mcfg / Mcfg.aslc
CommitLineData
3cbfba02
DW
1/*++\r
2\r
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
4\r
5 This program and the accompanying materials are licensed and made available under\r
6 the terms and conditions of the BSD License that accompanies this distribution.\r
7 The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php.\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13\r
14\r
15Module Name:\r
16\r
17 Mcfg.c\r
18\r
19Abstract:\r
20\r
21 This file contains a structure definition for the ACPI Memory mapped\r
22 configuration space base address Description Table (MCFG). Any changes\r
23 to the MCFG table require updating the respective structure count in\r
24 Mcfg.h and then adding the structure to the MCFG defined in this file.\r
25 The table layout is defined in Mcfg.h and the table contents are defined\r
26 in McfgTable.h and Mcfg.h.\r
27\r
28--*/\r
29\r
30//\r
31// Statements that include other files\r
32//\r
33#include <Mcfg.h>\r
34\r
35//\r
36// MCFG Table definition\r
37//\r
38EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE MCFG = {\r
39 EFI_ACPI_3_0_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE_SIGNATURE,\r
40 sizeof (EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE),\r
41 EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE_REVISION,\r
42 //\r
43 // Checksum will be updated at runtime\r
44 //\r
45 0x00,\r
46 //\r
47 // It is expected that these values will be programmed at runtime\r
48 //\r
49 ' ',\r
50 ' ',\r
51 ' ',\r
52 ' ',\r
53 ' ',\r
54 ' ',\r
55\r
56 0,\r
57 EFI_ACPI_OEM_MCFG_REVISION,\r
58 0,\r
59 0,\r
60 //\r
61 // Beginning of MCFG specific fields\r
62 //\r
63 EFI_ACPI_RESERVED_QWORD,\r
64 //\r
65 // Sample Memory Mapped Configuration Space Base Address Structure\r
66 //\r
67 // 0x0, // Base Address\r
68 // 0x0, // PCI Segment Group Number\r
69 // 0x0, // Start Bus Number\r
70 // 0x0, // End Bus Number\r
71 // EFI_ACPI_RESERVED_DWORD, // Reserved\r
72 //\r
73 // Memory Mapped Configuration Space Base Address Structure\r
74 //\r
75 0x0, // Base Address, will be updated by AcpiPlatform\r
76 0x0, // PCI Segment Group Number\r
77 0x0, // Start Bus Number\r
78 PLATFORM_MAX_BUS_NUM, // End Bus Number\r
79 EFI_ACPI_RESERVED_DWORD, // Reserved\r
80};\r
81\r
82VOID*\r
83ReferenceAcpiTable (\r
84 VOID\r
85 )\r
86{\r
87 //\r
88 // Reference the table being generated to prevent the optimizer from\r
89 // removing the data structure from the executable\r
90 //\r
91 return (VOID*)&MCFG;\r
92}\r