[edk2-devel] [PATCH RESEND v1 09/13] MdePkg: Add Multiprocessor Wakeup structure

Chris Jones christopher.jones at arm.com
Fri Jul 30 10:22:37 UTC 2021


Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3516)

Make changes to ACPI 6.4 header according to the latest specification:
- ACPI 6.4 January 2021, Table 5.21, Section 5.2.12.19
- Mantis ID 2087 (https://mantis.uefi.org/mantis/view.php?id=2087)

Signed-off-by: Chris Jones <christopher.jones at arm.com>
---
 MdePkg/Include/IndustryStandard/Acpi64.h | 29 +++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/IndustryStandard/Acpi64.h
index 995426ae817561819e4de09553570c2735a5b268..5864870e2ba60eca0e8b04b7b2ab1217895b4994 100644
--- a/MdePkg/Include/IndustryStandard/Acpi64.h
+++ b/MdePkg/Include/IndustryStandard/Acpi64.h
@@ -302,7 +302,7 @@ typedef struct {
 
 //
 // Multiple APIC Description Table APIC structure types
-// All other values between 0x0D and 0x7F are reserved and
+// All other values between 0x10 and 0x7F are reserved and
 // will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM.
 //
 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC           0x00
@@ -321,6 +321,7 @@ typedef struct {
 #define EFI_ACPI_6_4_GIC_MSI_FRAME                  0x0D
 #define EFI_ACPI_6_4_GICR                           0x0E
 #define EFI_ACPI_6_4_GIC_ITS                        0x0F
+#define EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP          0x10
 
 //
 // APIC Structure Definitions
@@ -589,6 +590,32 @@ typedef struct {
   UINT32  Reserved2;
 } EFI_ACPI_6_4_GIC_ITS_STRUCTURE;
 
+///
+/// Multiprocessor Wakeup Structure
+///
+typedef struct {
+  UINT8   Type;
+  UINT8   Length;
+  UINT16  MailBoxVersion;
+  UINT32  Reserved;
+  UINT64  MailBoxAddress;
+} EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_STRUCTURE;
+
+///
+/// Multiprocessor Wakeup Mailbox Structure
+///
+typedef struct {
+  UINT16  Command;
+  UINT16  Reserved;
+  UINT32  AcpiId;
+  UINT64  WakeupVector;
+  UINT8   ReservedForOs[2032];
+  UINT8   ReservedForFirmware[2048];
+} EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_MAILBOX_STRUCTURE;
+
+#define EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_MAILBOX_COMMAND_NOOP     0x0000
+#define EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_MAILBOX_COMMAND_WAKEUP   0x0001
+
 ///
 /// Smart Battery Description Table (SBST)
 ///
-- 
Guid("CE165669-3EF3-493F-B85D-6190EE5B9759")



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#78417): https://edk2.groups.io/g/devel/message/78417
Mute This Topic: https://groups.io/mt/84547381/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list