From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.9475.1620719246841315944 for ; Tue, 11 May 2021 00:47:27 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pranav.madhu@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6F8E81691; Tue, 11 May 2021 00:47:26 -0700 (PDT) Received: from usa.arm.com (a074742.blr.arm.com [10.162.16.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 450243F73B; Tue, 11 May 2021 00:47:25 -0700 (PDT) From: "Pranav Madhu" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Sami Mujawar Subject: [edk2-platforms][PATCH V2 01/11] Platform/Sgi: Macro definitions for ACPI _OSC Date: Tue, 11 May 2021 13:17:04 +0530 Message-Id: <20210511074714.1894-2-pranav.madhu@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210511074714.1894-1-pranav.madhu@arm.com> References: <20210511074714.1894-1-pranav.madhu@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 --- Platform/ARM/SgiPkg/Include/SgiAcpiHeader.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Platform/ARM/SgiPkg/Include/SgiAcpiHeader.h b/Platform/ARM/S= giPkg/Include/SgiAcpiHeader.h index 23e6ee14a761..c23938fe3d4f 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) =20 +// 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 { --=20 2.17.1