]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/IndustryStandard/MemoryMappedConfigurationSpaceAccessTable.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / MemoryMappedConfigurationSpaceAccessTable.h
1 /** @file
2 ACPI memory mapped configuration space access table definition, defined at
3 in the PCI Firmware Specification, version 3.0.
4 Specification is available at http://www.pcisig.com.
5
6 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8 **/
9
10 #ifndef _MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_TABLE_H_
11 #define _MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_TABLE_H_
12
13 //
14 // Ensure proper structure formats
15 //
16 #pragma pack(1)
17
18 ///
19 /// Memory Mapped Configuration Space Access Table (MCFG)
20 /// This table is a basic description table header followed by
21 /// a number of base address allocation structures.
22 ///
23 typedef struct {
24 UINT64 BaseAddress;
25 UINT16 PciSegmentGroupNumber;
26 UINT8 StartBusNumber;
27 UINT8 EndBusNumber;
28 UINT32 Reserved;
29 } EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_SPACE_BASE_ADDRESS_ALLOCATION_STRUCTURE;
30
31 ///
32 /// MCFG Table header definition. The rest of the table
33 /// must be defined in a platform specific manner.
34 ///
35 typedef struct {
36 EFI_ACPI_DESCRIPTION_HEADER Header;
37 UINT64 Reserved;
38 } EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE_HEADER;
39
40 ///
41 /// MCFG Revision (defined in spec)
42 ///
43 #define EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_TABLE_REVISION 0x01
44
45 #pragma pack()
46
47 #endif