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.26915.1683292659130447067 for ; Fri, 05 May 2023 06:17:39 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pierre.gondois@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 1B1C71477; Fri, 5 May 2023 06:18:23 -0700 (PDT) Received: from e126645.arm.com (e126645.nice.arm.com [10.34.100.110]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9F7823F64C; Fri, 5 May 2023 06:17:37 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v1 03/11] MdePkg/Acpi64: Add _PSD/_CPC/State Coordination Types macros Date: Fri, 5 May 2023 15:17:13 +0200 Message-Id: <20230505131721.1310590-4-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230505131721.1310590-1-pierre.gondois@arm.com> References: <20230505131721.1310590-1-pierre.gondois@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Pierre Gondois Add macros for: - _PSD version - _CPC version - C-state/T-state/P-state Coordination Types These objects were present in previous ACPI specification version, but are only added to the latest availbable version (6.4). Signed-off-by: Pierre Gondois --- MdePkg/Include/IndustryStandard/Acpi64.h | 25 +++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/In= dustryStandard/Acpi64.h index 575ca0430c13..e3c128d7548d 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -2,7 +2,7 @@ ACPI 6.4 definitions from the ACPI Specification Revision 6.4 Jan, 202= 1. =20 Copyright (c) 2017 - 2022, Intel Corporation. All rights reserved.
- Copyright (c) 2019 - 2021, ARM Ltd. All rights reserved.
+ Copyright (c) 2019 - 2023, Arm Ltd. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -17,6 +17,29 @@ // #pragma pack(1) =20 +/// +/// C-state/T-state/P-state Coordination Types +/// Cf. s8.3 Power, Performance, and Throttling State Dependencies +/// +#define EFI_ACPI_6_4_AML_STATE_COORD_TYPE_SW_ALL 0xFC +#define EFI_ACPI_6_4_AML_STATE_COORD_TYPE_SW_ANY 0xFD +#define EFI_ACPI_6_4_AML_STATE_COORD_TYPE_HW_ALL 0xFE + +/// +/// _PSD Revision +/// Cf. s8.4.6.5 _PSD (P-State Dependency) +/// +#define EFI_ACPI_6_4_AML_PSD_REVISION_V0 0 + +/// +/// _CPC Revision +/// Cf. s8.4.7.1 _CPC (Continuous Performance Control) +/// +#define EFI_ACPI_6_4_AML_CPC_REVISION_V0 0 +#define EFI_ACPI_6_4_AML_CPC_REVISION_V1 1 +#define EFI_ACPI_6_4_AML_CPC_REVISION_V2 2 +#define EFI_ACPI_6_4_AML_CPC_REVISION_V3 3 + /// /// ACPI 6.4 Generic Address Space definition /// --=20 2.25.1