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