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 1C897740038 for ; Mon, 10 Jun 2024 09:34:38 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=8BUmhbAa/gvJvTmdD4Fqnv+i9py7isKb9w+2jvSRaCk=; 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=1718012078; v=1; b=m4qnjOxfuWPX8GLiOtu4o5xw12qchkJoYy5GgLhYuI5eZEcRH8KGi8unbahjACQRNDemFC5h 15dwXgB+L7NcYFAXMU0Px9eXj/e7yYM6KkixnweUhWOU88vvuraxFHiA70RzhPacGEBNs9GQR9r ASWNM583NWyyaax+r3UR0yNLmGMQnpD7OWzUJr9p+2X7vud5zxAa2DcQbQsWusiRro0sT7OzXJU jgotSj5rYzihE9tCV+XkXgboFe8tpTYs78z+K3LyDyhoF8z41MN9zL1dPif/yNWbb704Zfojfpj f4SyI5xL6sqQ8vFyEWSxkVcogPKqOStrGmd6R+bor0zHQ== X-Received: by 127.0.0.2 with SMTP id re26YY7687511xeoGJ6TmIY4; Mon, 10 Jun 2024 02:34:37 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.15588.1718012076984289485 for ; Mon, 10 Jun 2024 02:34:37 -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 258B812FC; Mon, 10 Jun 2024 02:35:01 -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 B5F9C3F73B; Mon, 10 Jun 2024 02:34:35 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io Cc: Pierre Gondois Subject: [edk2-devel] [platforms/devel-dynamictables-reorg PATCH 03/14] Platform/ARM: Morello,N1Sdp: Move Serial Port info to Arch Common Date: Mon, 10 Jun 2024 11:33:54 +0200 Message-Id: <20240610093405.1980592-4-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:37 -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: DamPYHSM2RMzekJqK3SAillfx7686176AA= 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=m4qnjOxf; 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. Reflect this change by renaming/moving the relevant object. This patch modifies the ConfigurationManager of the following platforms: - Morello - N1Sdp for the following Arch Common object Id: - EArchCommonObjConsolePortInfo - EArchCommonObjSerialDebugPortInfo Signed-off-by: Pierre Gondois --- .../ConfigurationManager.c | 40 +++++++++---------- .../ConfigurationManager.h | 4 +- .../ConfigurationManager.c | 40 +++++++++---------- .../ConfigurationManager.h | 4 +- 4 files changed, 44 insertions(+), 44 deletions(-) diff --git a/Platform/ARM/Morello/ConfigurationManager/ConfigurationManag= erDxe/ConfigurationManager.c b/Platform/ARM/Morello/ConfigurationManager/= ConfigurationManagerDxe/ConfigurationManager.c index 098199bbaa58..b4c0af1307b1 100644 --- a/Platform/ARM/Morello/ConfigurationManager/ConfigurationManagerDxe/C= onfigurationManager.c +++ b/Platform/ARM/Morello/ConfigurationManager/ConfigurationManagerDxe/C= onfigurationManager.c @@ -811,6 +811,26 @@ GetArchCommonNameSpaceObject ( ); break; =20 + case EArchCommonObjConsolePortInfo: + Status =3D HandleCmObject ( + CmObjectId, + &CommonPlatRepo->SpcrSerialPort, + sizeof (CommonPlatRepo->SpcrSerialPort), + 1, + CmObject + ); + break; + + case EArchCommonObjSerialDebugPortInfo: + Status =3D HandleCmObject ( + CmObjectId, + &CommonPlatRepo->DbgSerialPort, + sizeof (CommonPlatRepo->DbgSerialPort), + 1, + CmObject + ); + break; + default: { Status =3D EFI_NOT_FOUND; DEBUG (( @@ -962,26 +982,6 @@ GetArmNameSpaceObject ( ); break; =20 - case EArmObjSerialConsolePortInfo: - Status =3D HandleCmObject ( - CmObjectId, - &CommonPlatRepo->SpcrSerialPort, - sizeof (CommonPlatRepo->SpcrSerialPort), - 1, - CmObject - ); - break; - - case EArmObjSerialDebugPortInfo: - Status =3D HandleCmObject ( - CmObjectId, - &CommonPlatRepo->DbgSerialPort, - sizeof (CommonPlatRepo->DbgSerialPort), - 1, - CmObject - ); - break; - case EArmObjProcHierarchyInfo: Status =3D HandleCmObject ( CmObjectId, diff --git a/Platform/ARM/Morello/ConfigurationManager/ConfigurationManag= erDxe/ConfigurationManager.h b/Platform/ARM/Morello/ConfigurationManager/= ConfigurationManagerDxe/ConfigurationManager.h index 2881ed871bd6..2a35494bcc81 100644 --- a/Platform/ARM/Morello/ConfigurationManager/ConfigurationManagerDxe/C= onfigurationManager.h +++ b/Platform/ARM/Morello/ConfigurationManager/ConfigurationManagerDxe/C= onfigurationManager.h @@ -255,10 +255,10 @@ typedef struct CommonPlatformRepositoryInfo { /** Serial port information for the serial port console redirection port */ - CM_ARM_SERIAL_PORT_INFO SpcrSerialPort; + CM_ARCH_COMMON_SERIAL_PORT_INFO SpcrSerialPort; =20 /// Serial port information for the DBG2 UART port - CM_ARM_SERIAL_PORT_INFO DbgSerialPort; + CM_ARCH_COMMON_SERIAL_PORT_INFO DbgSerialPort; =20 // Processor topology information CM_ARM_PROC_HIERARCHY_INFO ProcHierarchyInfo[PLAT_PROC_HIER= ARCHY_NODE_COUNT]; diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/ConfigurationManager.c b/Platform/ARM/N1Sdp/ConfigurationManager/Conf= igurationManagerDxe/ConfigurationManager.c index 3b72d7705703..21180e8f2d51 100644 --- a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.c +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.c @@ -1723,6 +1723,26 @@ GetArchCommonNameSpaceObject ( ); break; =20 + case EArchCommonObjConsolePortInfo: + Status =3D HandleCmObject ( + CmObjectId, + &PlatformRepo->SpcrSerialPort, + sizeof (PlatformRepo->SpcrSerialPort), + 1, + CmObject + ); + break; + + case EArchCommonObjSerialDebugPortInfo: + Status =3D HandleCmObject ( + CmObjectId, + &PlatformRepo->DbgSerialPort, + sizeof (PlatformRepo->DbgSerialPort), + 1, + CmObject + ); + break; + default: { Status =3D EFI_NOT_FOUND; DEBUG (( @@ -1904,26 +1924,6 @@ GetArmNameSpaceObject ( ); break; =20 - case EArmObjSerialConsolePortInfo: - Status =3D HandleCmObject ( - CmObjectId, - &PlatformRepo->SpcrSerialPort, - sizeof (PlatformRepo->SpcrSerialPort), - 1, - CmObject - ); - break; - - case EArmObjSerialDebugPortInfo: - Status =3D HandleCmObject ( - CmObjectId, - &PlatformRepo->DbgSerialPort, - sizeof (PlatformRepo->DbgSerialPort), - 1, - CmObject - ); - break; - case EArmObjGicItsInfo: Status =3D HandleCmObject ( CmObjectId, diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/ConfigurationManager.h b/Platform/ARM/N1Sdp/ConfigurationManager/Conf= igurationManagerDxe/ConfigurationManager.h index dc15f17eb626..cb87b58a68ff 100644 --- a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.h +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.h @@ -261,10 +261,10 @@ typedef struct PlatformRepositoryInfo { /** Serial port information for the serial port console redirection port */ - CM_ARM_SERIAL_PORT_INFO SpcrSerialPort; + CM_ARCH_COMMON_SERIAL_PORT_INFO SpcrSerialPort; =20 /// Serial port information for the DBG2 UART port - CM_ARM_SERIAL_PORT_INFO DbgSerialPort; + CM_ARCH_COMMON_SERIAL_PORT_INFO DbgSerialPort; =20 // Processor topology information CM_ARM_PROC_HIERARCHY_INFO ProcHierarchyInfo[PLAT_PROC_HIER= ARCHY_NODE_COUNT * 2]; --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119523): https://edk2.groups.io/g/devel/message/119523 Mute This Topic: https://groups.io/mt/106589341/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-