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.ma...@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/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-