* [edk2-devel] [PATCH] MdePkg: Add generic port affinity structure for ACPI 6.5 header
@ 2024-08-12 3:38 Huang, Qing
0 siblings, 0 replies; only message in thread
From: Huang, Qing @ 2024-08-12 3:38 UTC (permalink / raw)
To: devel; +Cc: Qing Huang
Add generic port affinity structure introduced in ACPI 6.5 spec
Signed-off-by: Qing Huang <qing.huang@intel.com>
---
MdePkg/Include/IndustryStandard/Acpi65.h | 25 ++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/MdePkg/Include/IndustryStandard/Acpi65.h b/MdePkg/Include/IndustryStandard/Acpi65.h
index 1f2af6ad2a..afe6f34188 100644
--- a/MdePkg/Include/IndustryStandard/Acpi65.h
+++ b/MdePkg/Include/IndustryStandard/Acpi65.h
@@ -1,7 +1,7 @@
/** @file
ACPI 6.5 definitions from the ACPI Specification Revision 6.5 Aug, 2022.
- Copyright (c) 2017 - 2022, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2017 - 2024, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2019 - 2024, ARM Ltd. All rights reserved.<BR>
Copyright (c) 2023, Loongson Technology Corporation Limited. All rights reserved.<BR>
@@ -773,7 +773,7 @@ typedef struct {
//
// SRAT structure types.
-// All other values between 0x06 an 0xFF are reserved and
+// All other values between 0x07 an 0xFF are reserved and
// will be ignored by OSPM.
//
#define EFI_ACPI_6_5_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
@@ -782,6 +782,7 @@ typedef struct {
#define EFI_ACPI_6_5_GICC_AFFINITY 0x03
#define EFI_ACPI_6_5_GIC_ITS_AFFINITY 0x04
#define EFI_ACPI_6_5_GENERIC_INITIATOR_AFFINITY 0x05
+#define EFI_ACPI_6_5_GENERIC_PORT_AFFINITY 0x06
///
/// Processor Local APIC/SAPIC Affinity Structure Definition
@@ -923,6 +924,26 @@ typedef struct {
#define EFI_ACPI_6_5_GENERIC_INITIATOR_AFFINITY_STRUCTURE_ENABLED BIT0
#define EFI_ACPI_6_5_GENERIC_INITIATOR_AFFINITY_STRUCTURE_ARCHITECTURAL_TRANSACTIONS BIT1
+///
+/// Generic Port Affinity Structure
+///
+typedef struct {
+ UINT8 Type;
+ UINT8 Length;
+ UINT8 Reserved1;
+ UINT8 DeviceHandleType;
+ UINT32 ProximityDomain;
+ EFI_ACPI_6_5_DEVICE_HANDLE DeviceHandle;
+ UINT32 Flags;
+ UINT8 Reserved2[4];
+} EFI_ACPI_6_5_GENERIC_PORT_AFFINITY_STRUCTURE;
+
+///
+/// Generic Port Affinity Structure
+///
+#define EFI_ACPI_6_5_GENERIC_PORT_AFFINITY_STRUCTURE_ENABLED BIT0
+#define EFI_ACPI_6_5_GENERIC_PORT_AFFINITY_STRUCTURE_ARCHITECTURAL_TRANSACTIONS BIT1
+
///
/// System Locality Distance Information Table (SLIT).
/// The rest of the table is a matrix.
--
2.42.0.windows.2
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120315): https://edk2.groups.io/g/devel/message/120315
Mute This Topic: https://groups.io/mt/107851207/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-08-12 3:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 3:38 [edk2-devel] [PATCH] MdePkg: Add generic port affinity structure for ACPI 6.5 header Huang, Qing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox