]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/IndustryStandard/MemoryMappedConfigurationSpaceAccessTable.h
Code Scrub for MdePkg.
[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 draft version 0.5.
4 Specification is available at http://www.pcisig.com.
5
6 Copyright (c) 2007, Intel Corporation
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 **/
15
16 #ifndef _MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_TABLE_H_
17 #define _MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_TABLE_H_
18
19 //
20 // Ensure proper structure formats
21 //
22 #pragma pack(1)
23 //
24 // Memory Mapped Configuration Space Access Table (MCFG)
25 // This table is a basic description table header followed by
26 // a number of base address allocation structures.
27 //
28 typedef struct {
29 UINT64 BaseAddress;
30 UINT16 PciSegmentGroupNumber;
31 UINT8 StartBusNumber;
32 UINT8 EndBusNumber;
33 UINT32 Reserved;
34 } EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_SPACE_BASE_ADDRESS_ALLOCATION_STRUCTURE;
35 //
36 // MCFG Table header definition. The rest of the table
37 // must be defined in a platform specific manner.
38 //
39 typedef struct {
40 EFI_ACPI_DESCRIPTION_HEADER Header;
41 UINT64 Reserved;
42 } EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_BASE_ADDRESS_TABLE_HEADER;
43 //
44 // MCFG Revision (defined in spec)
45 //
46 #define EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_TABLE_REVISION 0x01
47
48 #pragma pack()
49
50 #endif