]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Mcfg/Mcfg.aslc
Vlv2DeviceRefCodePkg: Replace BSD License with BSD+Patent License
[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
7ede8060 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
3cbfba02
DW
6\r
7\r
8\r
9Module Name:\r
10\r
11 Mcfg.c\r
12\r
13Abstract:\r
14\r
15 This file contains a structure definition for the ACPI Memory mapped\r
16 configuration space base address Description Table (MCFG). Any changes\r
17 to the MCFG table require updating the respective structure count in\r
18 Mcfg.h and then adding the structure to the MCFG defined in this file.\r
19 The table layout is defined in Mcfg.h and the table contents are defined\r
20 in McfgTable.h and Mcfg.h.\r
21\r
22--*/\r
23\r
24//\r
25// Statements that include other files\r
26//\r
27#include <Mcfg.h>\r
28\r
29//\r
30// MCFG Table definition\r
31//\r
32EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE MCFG = {\r
33 EFI_ACPI_3_0_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE_SIGNATURE,\r
34 sizeof (EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE),\r
35 EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE_REVISION,\r
36 //\r
37 // Checksum will be updated at runtime\r
38 //\r
39 0x00,\r
40 //\r
41 // It is expected that these values will be programmed at runtime\r
42 //\r
43 ' ',\r
44 ' ',\r
45 ' ',\r
46 ' ',\r
47 ' ',\r
48 ' ',\r
49\r
50 0,\r
51 EFI_ACPI_OEM_MCFG_REVISION,\r
52 0,\r
53 0,\r
54 //\r
55 // Beginning of MCFG specific fields\r
56 //\r
57 EFI_ACPI_RESERVED_QWORD,\r
58 //\r
59 // Sample Memory Mapped Configuration Space Base Address Structure\r
60 //\r
61 // 0x0, // Base Address\r
62 // 0x0, // PCI Segment Group Number\r
63 // 0x0, // Start Bus Number\r
64 // 0x0, // End Bus Number\r
65 // EFI_ACPI_RESERVED_DWORD, // Reserved\r
66 //\r
67 // Memory Mapped Configuration Space Base Address Structure\r
68 //\r
69 0x0, // Base Address, will be updated by AcpiPlatform\r
70 0x0, // PCI Segment Group Number\r
71 0x0, // Start Bus Number\r
72 PLATFORM_MAX_BUS_NUM, // End Bus Number\r
73 EFI_ACPI_RESERVED_DWORD, // Reserved\r
74};\r
75\r
76VOID*\r
77ReferenceAcpiTable (\r
78 VOID\r
79 )\r
80{\r
81 //\r
82 // Reference the table being generated to prevent the optimizer from\r
83 // removing the data structure from the executable\r
84 //\r
85 return (VOID*)&MCFG;\r
86}\r