[edk2-devel] [edk2-platforms][PATCH V1 01/17] Platform/Sgi: Macro definitions for ACPI _OSC
Pranav Madhu
pranav.madhu at arm.com
Wed Apr 28 12:35:44 UTC 2021
Add helper macros required for use with ACPI Operating System
Capabilities (_OSC) control method. The macros for capability DWORD and
return status value DWORD are defined.
Signed-off-by: Pranav Madhu <pranav.madhu at arm.com>
---
Platform/ARM/SgiPkg/Include/SgiAcpiHeader.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/Platform/ARM/SgiPkg/Include/SgiAcpiHeader.h b/Platform/ARM/SgiPkg/Include/SgiAcpiHeader.h
index 57f6a8444b63..4977d4d898aa 100644
--- a/Platform/ARM/SgiPkg/Include/SgiAcpiHeader.h
+++ b/Platform/ARM/SgiPkg/Include/SgiAcpiHeader.h
@@ -23,6 +23,22 @@
#define CORE_COUNT FixedPcdGet32 (PcdCoreCount)
#define CLUSTER_COUNT FixedPcdGet32 (PcdClusterCount)
+// ACPI OSC Status bits
+#define OSC_STS_BIT0_RES (1U << 0)
+#define OSC_STS_FAILURE (1U << 1)
+#define OSC_STS_UNRECOGNIZED_UUID (1U << 2)
+#define OSC_STS_UNRECOGNIZED_REV (1U << 3)
+#define OSC_STS_CAPABILITY_MASKED (1U << 4)
+#define OSC_STS_MASK (OSC_STS_BIT0_RES | \
+ OSC_STS_FAILURE | \
+ OSC_STS_UNRECOGNIZED_UUID | \
+ OSC_STS_UNRECOGNIZED_REV | \
+ OSC_STS_CAPABILITY_MASKED)
+
+// ACPI OSC for Platform-Wide Capability
+#define OSC_CAP_CPPC_SUPPORT (1U << 5)
+#define OSC_CAP_OS_INITIATED_LPI (1U << 8)
+
#pragma pack(1)
// PPTT processor core structure
typedef struct {
--
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#74542): https://edk2.groups.io/g/devel/message/74542
Mute This Topic: https://groups.io/mt/82428255/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