TianoCore EDK2 master
Loading...
Searching...
No Matches
Mpam.h
Go to the documentation of this file.
1
21#ifndef MPAM_H_
22#define MPAM_H_
23
25
29#define EFI_ACPI_MEMORY_SYSTEM_RESOURCE_PARTITIONING_AND_MONITORING_TABLE_REVISION (0x01)
30
34#define EFI_ACPI_MPAM_INTERRUPT_LEVEL_TRIGGERED (0x0)
35#define EFI_ACPI_MPAM_INTERRUPT_EDGE_TRIGGERED (0x1)
36
40#define EFI_ACPI_MPAM_INTERRUPT_WIRED (0x0)
41
45#define EFI_ACPI_MPAM_INTERRUPT_PROCESSOR_AFFINITY (0x0)
46#define EFI_ACPI_MPAM_INTERRUPT_PROCESSOR_CONTAINER_AFFINITY (0x1)
47
51#define EFI_ACPI_MPAM_INTERRUPT_AFFINITY_NOT_VALID (0x0)
52#define EFI_ACPI_MPAM_INTERRUPT_AFFINITY_VALID (0x1)
53
57#define EFI_ACPI_MPAM_INTERRUPT_MODE_SHIFT (0)
58#define EFI_ACPI_MPAM_INTERRUPT_TYPE_SHIFT (1)
59#define EFI_ACPI_MPAM_INTERRUPT_AFFINITY_TYPE_SHIFT (3)
60#define EFI_ACPI_MPAM_INTERRUPT_AFFINITY_VALID_SHIFT (4)
61#define EFI_ACPI_MPAM_INTERRUPT_RESERVED_SHIFT (5)
62
66#define EFI_ACPI_MPAM_INTERRUPT_MODE_MASK (0x1)
67#define EFI_ACPI_MPAM_INTERRUPT_TYPE_MASK (0x3)
68#define EFI_ACPI_MPAM_INTERRUPT_AFFINITY_TYPE_MASK (0x8)
69#define EFI_ACPI_MPAM_INTERRUPT_AFFINITY_VALID_MASK (0x10)
70#define EFI_ACPI_MPAM_INTERRUPT_RESERVED_MASK (0xFFFFFFE0)
71
76#define EFI_ACPI_MPAM_LOCATION_PROCESSOR_CACHE (0x0)
77#define EFI_ACPI_MPAM_LOCATION_MEMORY (0x1)
78#define EFI_ACPI_MPAM_LOCATION_SMMU (0x2)
79#define EFI_ACPI_MPAM_LOCATION_MEMORY_CACHE (0x3)
80#define EFI_ACPI_MPAM_LOCATION_ACPI_DEVICE (0x4)
81#define EFI_ACPI_MPAM_LOCATION_INTERCONNECT (0x5)
82#define EFI_ACPI_MPAM_LOCATION_UNKNOWN (0xFF)
83
88#define EFI_ACPI_MPAM_INTERFACE_MMIO (0x00)
89#define EFI_ACPI_MPAM_INTERFACE_PCC (0x0A)
90
95#define EFI_ACPI_MPAM_LINK_TYPE_NUMA (0x00)
96#define EFI_ACPI_MPAM_LINK_TYPE_PROC (0x01)
97
98#pragma pack(1)
99
104typedef struct {
105 UINT64 Descriptor1;
106 UINT32 Descriptor2;
108
113typedef struct {
114 UINT64 CacheReference;
115 UINT32 Reserved;
117
122typedef struct {
123 UINT64 ProximityDomain;
124 UINT32 Reserved;
126
131typedef struct {
132 UINT64 SmmuInterface;
133 UINT32 Reserved;
135
140typedef struct {
141 UINT8 Reserved[7];
142 UINT8 Level;
143 UINT32 Reference;
145
150typedef struct {
151 UINT64 AcpiHardwareId;
152 UINT32 AcpiUniqueId;
154
159typedef struct {
160 UINT64 InterconnectDescTblOff;
161 UINT32 Reserved;
163
168typedef struct {
169 UINT32 SourceId;
170 UINT32 DestinationId;
171 UINT8 LinkType;
172 UINT8 Reserved[3];
174
179typedef struct {
180 UINT8 Signature[16];
181 UINT32 NumDescriptors;
183
187typedef union {
188 EFI_ACPI_MPAM_CACHE_LOCATOR CacheLocator;
189 EFI_ACPI_MPAM_MEMORY_LOCATOR MemoryLocator;
190 EFI_ACPI_MPAM_SMMU_LOCATOR SmmuLocator;
192 EFI_ACPI_MPAM_ACPI_LOCATOR AcpiLocator;
193 EFI_ACPI_MPAM_INTERCONNECT_LOCATOR InterconnectIfcLocator;
194 EFI_ACPI_MPAM_GENERIC_LOCATOR GenericLocator;
196
201typedef struct {
202 UINT16 Length;
203 UINT8 InterfaceType;
204 UINT8 Reserved;
205 UINT32 Identifier;
206 UINT64 BaseAddress;
207 UINT32 MmioSize;
208 UINT32 OverflowInterrupt;
209 UINT32 OverflowInterruptFlags;
210 UINT32 Reserved1;
211 UINT32 OverflowInterruptAffinity;
212 UINT32 ErrorInterrupt;
213 UINT32 ErrorInterruptFlags;
214 UINT32 Reserved2;
215 UINT32 ErrorInterruptAffinity;
216 UINT32 MaxNrdyUsec;
217 UINT64 HardwareIdLinkedDevice;
218 UINT32 InstanceIdLinkedDevice;
219 UINT32 NumResources;
221
226typedef struct {
227 UINT32 Identifier;
228 UINT8 RisIndex;
229 UINT16 Reserved1;
230 UINT8 LocatorType;
231 EFI_ACPI_MPAM_LOCATOR Locator;
232 UINT32 NumFunctionalDependencies;
234
239typedef struct {
240 UINT32 Producer;
241 UINT32 Reserved;
243
244#pragma pack()
245
246#endif