From: "Huang, Qing" <qing.huang@intel.com>
To: devel@edk2.groups.io
Cc: Qing Huang <qing.huang@intel.com>
Subject: [edk2-devel] [PATCH] MdePkg: Add generic port affinity structure for ACPI 6.5 header
Date: Mon, 12 Aug 2024 11:38:11 +0800 [thread overview]
Message-ID: <6713ea91a46340c1e0c6d0155b013d17cb6ad6a1.1723433714.git.qing.huang@intel.com> (raw)
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]
-=-=-=-=-=-=-=-=-=-=-=-
reply other threads:[~2024-08-12 3:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6713ea91a46340c1e0c6d0155b013d17cb6ad6a1.1723433714.git.qing.huang@intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox