1 /** @file 2 This file contains a structure definition for the ACPI Memory Mapped Configuration 3 Address Space table (MCFG). Any changes to the number of entries in the table require 4 updating the structure count in Mcfg.h and then adding the structure to the 5 MCFG defined in this file. The table layout is defined in Mcfg.h and the 6 table contents are defined in the MemoryMappedConfigurationSpaceAccessTable.h. 7 8 Copyright (c) 2013-2015 Intel Corporation. 9 10 This program and the accompanying materials 11 are licensed and made available under the terms and conditions of the BSD License 12 which accompanies this distribution. The full text of the license may be found at 13 http://opensource.org/licenses/bsd-license.php 14 15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 16 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 17 18 **/ 19 20 // 21 // Statements that include other files 22 // 23 24 #include "Mcfg.h" 25 26 // 27 // Multiple APIC Description Table 28 // 29 30 EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_DESCRIPTION_TABLE Mcfg = { 31 { 32 EFI_ACPI_3_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE, 33 sizeof (EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_DESCRIPTION_TABLE), 34 EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_TABLE_REVISION, 35 36 // 37 // Checksum will be updated at runtime 38 // 39 0x00, 40 41 // 42 // It is expected that these values will be programmed at runtime 43 // 44 {' ', ' ', ' ', ' ', ' ', ' '}, 45 46 0, 47 EFI_ACPI_OEM_MCFG_REVISION, 48 0, 49 0 50 }, 51 // 52 // Reserved 53 // 54 0x0000000000000000, 55 56 // 57 // MCFG specific fields 58 // 59 60 { 61 { 62 0x00000000, // BaseAddress (will be updated at runtime) 63 0x0000, // PciSegmentGroupNumber 64 0x00, // StartBusNumber 65 0x1F, // EndBusNumber 66 0x00000000 // Reserved 67 } 68 } 69 }; 70 71 VOID* 72 ReferenceAcpiTable ( 73 VOID 74 ) 75 { 76 // 77 // Reference the table being generated to prevent the optimizer from removing the 78 // data structure from the exeutable 79 // 80 return (VOID*)&Mcfg; 81 } 82