From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 744B77803E6 for ; Mon, 10 Jun 2024 09:34:52 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=FvfiS77OaT1cODOABU96wUHI+Xy4mCeSPijg8ckE4cE=; 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:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1718012092; v=1; b=444fTDTXX49qQ/bk0HNw8FNA1iT/LC9ndc2z1PejCWF9Kv+LhpdxcZw2Jq8jz8RWq84dMr+s bvlXnX2L7LbLtPEMVxsTD8uJqghb25C0F87UfR+rLhStWepsRoxEwemlM0yy4iZpxK7oBHjsfxI NN39/gGqwoG2DQnq6z/4+3ObPugESy+TiQ+H5LKbgdY0749ArwcZ8HQ9w0Qkw34t+h78ev30v7u g/vmpqiexr8vEX+Old3GJVkjJ2fpPHtrZyREsHRvzTK/RjSyBBa02xw/sKQ18T98mGDt/xoN2BH jsLql2OpxP45i6xLzMjwq2/S3SG8+L1fbtzRfw7W6zjEA== X-Received: by 127.0.0.2 with SMTP id h7DoYY7687511xYLJpl4PqNz; Mon, 10 Jun 2024 02:34:51 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.15510.1718012089531797614 for ; Mon, 10 Jun 2024 02:34:49 -0700 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 86A871692; Mon, 10 Jun 2024 02:35:13 -0700 (PDT) X-Received: from e126645.arm.com (unknown [10.57.69.240]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 334F53F73B; Mon, 10 Jun 2024 02:34:47 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io Cc: Pierre Gondois Subject: [edk2-devel] [platforms/devel-dynamictables-reorg PATCH 11/14] Platform/NXP: Add Arch Common objects handler Date: Mon, 10 Jun 2024 11:34:02 +0200 Message-Id: <20240610093405.1980592-12-Pierre.Gondois@arm.com> In-Reply-To: <20240610093405.1980592-1-Pierre.Gondois@arm.com> References: <20240610093405.1980592-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 Resent-Date: Mon, 10 Jun 2024 02:34:49 -0700 Resent-From: pierre.gondois@arm.com Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: cNrS5kFMhQQSZZohxMzNLCiex7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=444fTDTX; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io From: Pierre Gondois Some DynamicTables objects have been moved from the Arm namespace to a new Arch Common namespace. Prepare the handling of these objects in the ConfigurationManagers by adding a function handler for these objects. This patch modifies the ConfigurationManager of the NXP platforms. Signed-off-by: Pierre Gondois --- .../ConfigurationManager.c | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe= /ConfigurationManager.c b/Platform/NXP/ConfigurationManagerPkg/Configurat= ionManagerDxe/ConfigurationManager.c index 80ce8412c47a..b5ad69cc9632 100644 --- a/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/Config= urationManager.c +++ b/Platform/NXP/ConfigurationManagerPkg/ConfigurationManagerDxe/Config= urationManager.c @@ -3,6 +3,7 @@ =20 Copyright 2020 NXP Copyright 2020 Puresoftware Ltd + Copyright (c) 2024, Arm Limited. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -472,6 +473,56 @@ GetStandardNameSpaceObject ( return Status; } =20 +/** Return an Arch Common namespace object. + + @param [in] This Pointer to the Configuration Manager Prot= ocol. + @param [in] CmObjectId The Configuration Manager Object ID. + @param [in] Token An optional token identifying the object.= If + unused this must be CM_NULL_TOKEN. + @param [in, out] CmObject Pointer to the Configuration Manager Obje= ct + descriptor describing the requested Objec= t. + + @retval EFI_SUCCESS Success. + @retval EFI_INVALID_PARAMETER A parameter is invalid. + @retval EFI_NOT_FOUND The required object information is not f= ound. +**/ +EFI_STATUS +EFIAPI +GetArchCommonNameSpaceObject ( + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, + IN CONST CM_OBJECT_ID CmObjectId, + IN CONST CM_OBJECT_TOKEN Token OPTIONAL= , + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject + ) +{ + EFI_STATUS Status; + EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; + + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { + ASSERT (This !=3D NULL); + ASSERT (CmObject !=3D NULL); + return EFI_INVALID_PARAMETER; + } + + Status =3D EFI_NOT_FOUND; + PlatformRepo =3D This->PlatRepoInfo; + + switch (GET_CM_OBJECT_ID (CmObjectId)) { + default: { + Status =3D EFI_NOT_FOUND; + DEBUG (( + DEBUG_INFO, + "INFO: Object 0x%x. Status =3D %r\n", + CmObjectId, + Status + )); + break; + } + } //switch + + return Status; +} + /** Return an ARM namespace object. =20 @param [in] This Pointer to the Configuration Manager Prot= ocol. @@ -733,6 +784,9 @@ FslPlatformGetObject ( case EObjNameSpaceStandard: Status =3D GetStandardNameSpaceObject (This, CmObjectId, Token, Cm= Object); break; + case EObjNameSpaceArchCommon: + Status =3D GetArchCommonNameSpaceObject (This, CmObjectId, Token, = CmObject); + break; case EObjNameSpaceArm: Status =3D GetArmNameSpaceObject (This, CmObjectId, Token, CmObjec= t); break; --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119531): https://edk2.groups.io/g/devel/message/119531 Mute This Topic: https://groups.io/mt/106589349/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-