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