From nobody Mon May 13 23:01:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+111901+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+111901+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1701342610; cv=none; d=zohomail.com; s=zohoarc; b=Yer3A8STptVGnm8P1L8FPWA28KYhFbvJbw6mnNkZmf4BVQ+qqKTvKTuLXAK/xmiAAq33KhaV8NhkRKOViX1jv8aMwhSi0DdmX1khPpGmp1HHRtGa04/QInaXnykcH3XO+8d9TwwplLFXFyGDpzNqprcTdruyhOsA/nfVueWwDt4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701342610; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=viEq6GdvW31JckTG9fWH0xpdLYEJNFCY9TAStJKQZ/g=; b=iVaBQBOBs+kbmtHGI5wcphVahFDm7UmUU0WJ3RLO91ihtGuPUB7FnFREVsmkLAayKoO6Tt2h5PcukaAOlVQ14F9vRgWIszBG11q8OBzf4BZ1/yeJ/Z6aOzA02rm+ZDlX9NSEl2o7szPCwLpMiM4+fyoSjd76wWz2p/hEgFuuwso= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+111901+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 17013426109041020.3106663110683; Thu, 30 Nov 2023 03:10:10 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=qyDZkhD+xzGeLhAWoFLheXr7m9kdkOAlueX5/cj1wCA=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1701342610; v=1; b=lxLwNuFc0kM0tWUDW0FZLbBPWj4EnA8G3BqK/ialTiXwzm7+/ckQ4gI414g07BVmpm8DZ3n1 3WVh9x/JL/JIdNWD7QwDbyazJ4nMthMYVSZQ7m71oOMaCgAcAJGgXvkYnjEsD7JzVJDZbsl5IK/ o1mujR7YipsIQ16+ZTOAnWV4= X-Received: by 127.0.0.2 with SMTP id cjtjYY1788612xD2PgI8hcs7; Thu, 30 Nov 2023 03:10:10 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.69898.1701342609377648386 for ; Thu, 30 Nov 2023 03:10:09 -0800 X-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 853821FB; Thu, 30 Nov 2023 03:10:55 -0800 (PST) X-Received: from e126645.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1ED603F6C4; Thu, 30 Nov 2023 03:10:06 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu , Ray Ni , Sami Mujawar , Leif Lindholm Subject: [edk2-devel] [PATCH 1/1] MdePkg/IndustryStandard: Add _PSD/_CPC/Coord types definitions Date: Thu, 30 Nov 2023 12:09:53 +0100 Message-Id: <20231130110953.16550-2-pierre.gondois@arm.com> In-Reply-To: <20231130110953.16550-1-pierre.gondois@arm.com> References: <20231130110953.16550-1-pierre.gondois@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: x6aTRzj2MI7MQ9LIYKU1c55wx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1701342612972000007 Content-Type: text/plain; charset="utf-8" Add definitions for: - _PSD version: added in ACPI 3.0 - C-state Coordination Types: added in ACPI 3.0 - _CPC version: added in ACPI 5.0 Signed-off-by: Pierre Gondois Reviewed-by: Sami Mujawar --- MdePkg/Include/IndustryStandard/Acpi30.h | 14 ++++++++++++++ MdePkg/Include/IndustryStandard/Acpi40.h | 5 +++++ MdePkg/Include/IndustryStandard/Acpi50.h | 10 ++++++++++ MdePkg/Include/IndustryStandard/Acpi51.h | 10 ++++++++++ MdePkg/Include/IndustryStandard/Acpi60.h | 10 ++++++++++ MdePkg/Include/IndustryStandard/Acpi61.h | 10 ++++++++++ MdePkg/Include/IndustryStandard/Acpi62.h | 10 ++++++++++ MdePkg/Include/IndustryStandard/Acpi63.h | 10 ++++++++++ MdePkg/Include/IndustryStandard/Acpi64.h | 10 ++++++++++ MdePkg/Include/IndustryStandard/Acpi65.h | 10 ++++++++++ 10 files changed, 99 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/Acpi30.h b/MdePkg/Include/Indu= stryStandard/Acpi30.h index 29f0d5535593..cb50b1d8f71a 100644 --- a/MdePkg/Include/IndustryStandard/Acpi30.h +++ b/MdePkg/Include/IndustryStandard/Acpi30.h @@ -17,6 +17,20 @@ =20 #define ACPI_EXTENDED_ADDRESS_SPACE_DESCRIPTOR 0x8B =20 +/// +/// C-state Coordination Types +/// See s8.4.2.2 _CSD (C-State Dependency) +/// +#define ACPI_AML_COORD_TYPE_SW_ALL 0xFC +#define ACPI_AML_COORD_TYPE_SW_ANY 0xFD +#define ACPI_AML_COORD_TYPE_HW_ALL 0xFE + +/// +/// _PSD Revision for ACPI 3.0 +// See s8.4.4.5 _PSD (P-State Dependency) +/// +#define EFI_ACPI_3_0_AML_PSD_REVISION 0 + // // Ensure proper structure formats // diff --git a/MdePkg/Include/IndustryStandard/Acpi40.h b/MdePkg/Include/Indu= stryStandard/Acpi40.h index a2da09346f1c..0e30f4f8417d 100644 --- a/MdePkg/Include/IndustryStandard/Acpi40.h +++ b/MdePkg/Include/IndustryStandard/Acpi40.h @@ -10,6 +10,11 @@ =20 #include =20 +/// +/// _PSD Revision for ACPI 4.0 +/// +#define EFI_ACPI_4_0_AML_PSD_REVISION 0 + // // Ensure proper structure formats // diff --git a/MdePkg/Include/IndustryStandard/Acpi50.h b/MdePkg/Include/Indu= stryStandard/Acpi50.h index 76706aa640f8..a00b8259b8f7 100644 --- a/MdePkg/Include/IndustryStandard/Acpi50.h +++ b/MdePkg/Include/IndustryStandard/Acpi50.h @@ -23,6 +23,16 @@ #define ACPI_GPIO_CONNECTION_DESCRIPTOR 0x8C #define ACPI_GENERIC_SERIAL_BUS_CONNECTION_DESCRIPTOR 0x8E =20 +/// +/// _PSD Revision for ACPI 5.0 +/// +#define EFI_ACPI_5_0_AML_PSD_REVISION 0 + +/// +/// _CPC Revision for ACPI 5.0 +/// +#define EFI_ACPI_5_0_AML_CPC_REVISION 1 + #pragma pack(1) =20 /// diff --git a/MdePkg/Include/IndustryStandard/Acpi51.h b/MdePkg/Include/Indu= stryStandard/Acpi51.h index 01ef544c3a29..19dd7b4f864c 100644 --- a/MdePkg/Include/IndustryStandard/Acpi51.h +++ b/MdePkg/Include/IndustryStandard/Acpi51.h @@ -13,6 +13,16 @@ =20 #include =20 +/// +/// _PSD Revision for ACPI 5.1 +/// +#define EFI_ACPI_5_1_AML_PSD_REVISION 0 + +/// +/// _CPC Revision for ACPI 5.1 +/// +#define EFI_ACPI_5_1_AML_CPC_REVISION 1 + // // Ensure proper structure formats // diff --git a/MdePkg/Include/IndustryStandard/Acpi60.h b/MdePkg/Include/Indu= stryStandard/Acpi60.h index 5ac3be6ad71c..3757d3f82792 100644 --- a/MdePkg/Include/IndustryStandard/Acpi60.h +++ b/MdePkg/Include/IndustryStandard/Acpi60.h @@ -12,6 +12,16 @@ =20 #include =20 +/// +/// _PSD Revision for ACPI 6.0 +/// +#define EFI_ACPI_6_0_AML_PSD_REVISION 0 + +/// +/// _CPC Revision for ACPI 6.0 +/// +#define EFI_ACPI_6_0_AML_CPC_REVISION 2 + // // Ensure proper structure formats // diff --git a/MdePkg/Include/IndustryStandard/Acpi61.h b/MdePkg/Include/Indu= stryStandard/Acpi61.h index 7af67d832bb2..c3facc6e376e 100644 --- a/MdePkg/Include/IndustryStandard/Acpi61.h +++ b/MdePkg/Include/IndustryStandard/Acpi61.h @@ -12,6 +12,16 @@ =20 #include =20 +/// +/// _PSD Revision for ACPI 6.1 +/// +#define EFI_ACPI_6_1_AML_PSD_REVISION 0 + +/// +/// _CPC Revision for ACPI 6.1 +/// +#define EFI_ACPI_6_1_AML_CPC_REVISION 2 + // // Ensure proper structure formats // diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h b/MdePkg/Include/Indu= stryStandard/Acpi62.h index e27775a85ade..4dd3e21c2325 100644 --- a/MdePkg/Include/IndustryStandard/Acpi62.h +++ b/MdePkg/Include/IndustryStandard/Acpi62.h @@ -29,6 +29,16 @@ #define ACPI_PIN_GROUP_FUNCTION_DESCRIPTOR 0x91 #define ACPI_PIN_GROUP_CONFIGURATION_DESCRIPTOR 0x92 =20 +/// +/// _PSD Revision for ACPI 6.2 +/// +#define EFI_ACPI_6_2_AML_PSD_REVISION 0 + +/// +/// _CPC Revision for ACPI 6.2 +/// +#define EFI_ACPI_6_2_AML_CPC_REVISION 3 + #pragma pack(1) =20 /// diff --git a/MdePkg/Include/IndustryStandard/Acpi63.h b/MdePkg/Include/Indu= stryStandard/Acpi63.h index 10bdf5fe5a57..7582dccf649b 100644 --- a/MdePkg/Include/IndustryStandard/Acpi63.h +++ b/MdePkg/Include/IndustryStandard/Acpi63.h @@ -12,6 +12,16 @@ =20 #include =20 +/// +/// _PSD Revision for ACPI 6.3 +/// +#define EFI_ACPI_6_3_AML_PSD_REVISION 0 + +/// +/// _CPC Revision for ACPI 6.3 +/// +#define EFI_ACPI_6_3_AML_CPC_REVISION 3 + // // Ensure proper structure formats // diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu= stryStandard/Acpi64.h index 575ca0430c13..faf069a0454e 100644 --- a/MdePkg/Include/IndustryStandard/Acpi64.h +++ b/MdePkg/Include/IndustryStandard/Acpi64.h @@ -12,6 +12,16 @@ =20 #include =20 +/// +/// _PSD Revision for ACPI 6.4 +/// +#define EFI_ACPI_6_4_AML_PSD_REVISION 0 + +/// +/// _CPC Revision for ACPI 6.4 +/// +#define EFI_ACPI_6_4_AML_CPC_REVISION 3 + // // Ensure proper structure formats // diff --git a/MdePkg/Include/IndustryStandard/Acpi65.h b/MdePkg/Include/Indu= stryStandard/Acpi65.h index d79d0b2b5f9c..b9616a3e29c2 100644 --- a/MdePkg/Include/IndustryStandard/Acpi65.h +++ b/MdePkg/Include/IndustryStandard/Acpi65.h @@ -18,6 +18,16 @@ // #pragma pack(1) =20 +/// +/// _PSD Revision for ACPI 6.5 +/// +#define EFI_ACPI_6_5_AML_PSD_REVISION 0 + +/// +/// _CPC Revision for ACPI 6.5 +/// +#define EFI_ACPI_6_5_AML_CPC_REVISION 3 + /// /// ACPI 6.5 Generic Address Space definition /// --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111901): https://edk2.groups.io/g/devel/message/111901 Mute This Topic: https://groups.io/mt/102891569/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-