]>
Commit | Line | Data |
---|---|---|
b303605e MK |
1 | /** @file\r |
2 | This file contains a structure definition for the ACPI Memory Mapped Configuration\r | |
3 | Address Space table (MCFG). Any changes to the number of entries in the table require\r | |
4 | updating the structure count in Mcfg.h and then adding the structure to the\r | |
5 | MCFG defined in this file. The table layout is defined in Mcfg.h and the\r | |
6 | table contents are defined in the MemoryMappedConfigurationSpaceAccessTable.h.\r | |
7 | \r | |
8 | Copyright (c) 2013-2015 Intel Corporation.\r | |
9 | \r | |
0eb3de2e | 10 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
b303605e MK |
11 | \r |
12 | **/\r | |
13 | \r | |
14 | //\r | |
15 | // Statements that include other files\r | |
16 | //\r | |
17 | \r | |
18 | #include "Mcfg.h"\r | |
19 | \r | |
20 | //\r | |
21 | // Multiple APIC Description Table\r | |
22 | //\r | |
23 | \r | |
24 | EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_DESCRIPTION_TABLE Mcfg = {\r | |
25 | {\r | |
26 | EFI_ACPI_3_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE,\r | |
27 | sizeof (EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_DESCRIPTION_TABLE),\r | |
28 | EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_TABLE_REVISION,\r | |
29 | \r | |
30 | //\r | |
31 | // Checksum will be updated at runtime\r | |
32 | //\r | |
33 | 0x00,\r | |
34 | \r | |
35 | //\r | |
36 | // It is expected that these values will be programmed at runtime\r | |
37 | //\r | |
38 | {' ', ' ', ' ', ' ', ' ', ' '},\r | |
39 | \r | |
40 | 0,\r | |
41 | EFI_ACPI_OEM_MCFG_REVISION,\r | |
42 | 0,\r | |
43 | 0\r | |
44 | },\r | |
45 | //\r | |
46 | // Reserved\r | |
47 | //\r | |
48 | 0x0000000000000000,\r | |
49 | \r | |
50 | //\r | |
51 | // MCFG specific fields\r | |
52 | //\r | |
53 | \r | |
54 | {\r | |
55 | {\r | |
56 | 0x00000000, // BaseAddress (will be updated at runtime)\r | |
57 | 0x0000, // PciSegmentGroupNumber\r | |
58 | 0x00, // StartBusNumber\r | |
59 | 0x1F, // EndBusNumber\r | |
60 | 0x00000000 // Reserved\r | |
61 | }\r | |
62 | }\r | |
63 | };\r | |
64 | \r | |
65 | VOID*\r | |
66 | ReferenceAcpiTable (\r | |
67 | VOID\r | |
68 | )\r | |
69 | {\r | |
70 | //\r | |
71 | // Reference the table being generated to prevent the optimizer from removing the\r | |
72 | // data structure from the exeutable\r | |
73 | //\r | |
74 | return (VOID*)&Mcfg;\r | |
75 | }\r |