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 2B7F5AC0F32 for ; Wed, 19 Jun 2024 22:07:22 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=9U78Mq+Zg7mH0kWq609jQ9jqdf5JZzbC88hoj5kjPtA=; 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=1718834841; v=1; b=ljXcWdtDCLfIsEnkcHh9ZAzqimcSxkYRDU/S3eb/q/XuK44b12hC5/allK+1RunVEjavH419 IhdRr0vWowIWCwnNVLAtDrnVSrTCJ7fyWSAwl0CG2IunVZZrDhhRrSwETQXMgJZpDaykvTRC916 N2KmXQXoKTxnfSr0lQjHXzvutBWSmkx7mlBsl3q2zSWBjtqEbLmJm/qkidzm7feY3s30aUXM/Xf QKi43SWyUvpg9dKltBFygHug1aQk7LH0EI2mX4dNVybCWFAEmMryV6h7K/dkGt7VyEDrKF4e94K fUy1AuDk3/HlDqToLKkNDUZQ/82DLW69LlGjtS151FGZg== X-Received: by 127.0.0.2 with SMTP id hWKnYY7687511xuJ3UxYvSZV; Wed, 19 Jun 2024 15:07:20 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.34061.1718834840124796065 for ; Wed, 19 Jun 2024 15:07:20 -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 8F618DA7; Wed, 19 Jun 2024 15:07:44 -0700 (PDT) X-Received: from e126645.home (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7FD6C3F64C; Wed, 19 Jun 2024 15:07:17 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io Cc: Pierre Gondois , AbdulLateef Attar , Girish Mahadevan , Jeff Brasen , Jeshua Smith , Leif Lindholm , Meenakshi Aggarwal , Sami Mujawar , Sunil V L , Yeo Reum Yun Subject: [edk2-devel] [staging/dynamictables-reorg PATCH 12/15] DynamicTablesPkg: FdtHwInfoParserLib: Make Serial Port parser arch neutral Date: Thu, 20 Jun 2024 00:06:26 +0200 Message-Id: <20240619220629.1994362-13-pierre.gondois@arm.com> In-Reply-To: <20240619220629.1994362-1-pierre.gondois@arm.com> References: <20240619220629.1994362-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: Wed, 19 Jun 2024 15:07:20 -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: Ldi3D2uiFKqzCfYv0vLfFhz5x7686176AA= 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=ljXcWdtD; 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 To allow other architectures to potentially re-use the serial port parser and make the code arch neutral, remove the Arm prefixes. Suggested-by: Sunil V L Signed-off-by: Pierre Gondois --- .../FdtHwInfoParserLib/Arm/ArmFdtHwInfoParser.c | 2 +- .../FdtHwInfoParserLib/FdtHwInfoParserLib.inf | 4 ++-- ...{ArmSerialPortParser.c =3D> SerialPortParser.c} | 16 ++++++++-------- ...{ArmSerialPortParser.h =3D> SerialPortParser.h} | 8 ++++---- 4 files changed, 15 insertions(+), 15 deletions(-) rename DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/{ArmSerialPortPa= rser.c =3D> SerialPortParser.c} (95%) rename DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/{ArmSerialPortPa= rser.h =3D> SerialPortParser.h} (89%) diff --git a/DynamicTablesPkg/Library/FdtHwInfoParserLib/Arm/ArmFdtHwInfoPa= rser.c b/DynamicTablesPkg/Library/FdtHwInfoParserLib/Arm/ArmFdtHwInfoParser= .c index 49a7636dad0a..2c9105ed1023 100644 --- a/DynamicTablesPkg/Library/FdtHwInfoParserLib/Arm/ArmFdtHwInfoParser.c +++ b/DynamicTablesPkg/Library/FdtHwInfoParserLib/Arm/ArmFdtHwInfoParser.c @@ -10,7 +10,7 @@ #include "Arm/GenericTimer/ArmGenericTimerParser.h"=0D #include "Arm/Gic/ArmGicDispatcher.h"=0D #include "Pci/PciConfigSpaceParser.h"=0D -#include "Serial/ArmSerialPortParser.h"=0D +#include "Serial/SerialPortParser.h"=0D =0D /** Ordered table of parsers/dispatchers.=0D =0D diff --git a/DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtHwInfoParserLib= .inf b/DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtHwInfoParserLib.inf index 55ec7d97fa18..d3010af527c1 100644 --- a/DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtHwInfoParserLib.inf +++ b/DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtHwInfoParserLib.inf @@ -24,8 +24,8 @@ [Sources] FdtUtility.h=0D Pci/PciConfigSpaceParser.c=0D Pci/PciConfigSpaceParser.h=0D - Serial/ArmSerialPortParser.c=0D - Serial/ArmSerialPortParser.h=0D + Serial/SerialPortParser.c=0D + Serial/SerialPortParser.h=0D =0D [Sources.ARM, Sources.AARCH64]=0D Arm/ArmFdtHwInfoParser.c=0D diff --git a/DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/ArmSerialPo= rtParser.c b/DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/SerialPortP= arser.c similarity index 95% rename from DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/ArmSerialPor= tParser.c rename to DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/SerialPortPars= er.c index f17ad2e842e2..2d0dccea3d3a 100644 --- a/DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/ArmSerialPortParse= r.c +++ b/DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/SerialPortParser.c @@ -1,5 +1,5 @@ /** @file=0D - Arm Serial Port Parser.=0D + Serial Port Parser.=0D =0D Copyright (c) 2021 - 2023, Arm Limited. All rights reserved.
=0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D @@ -15,7 +15,7 @@ =0D #include "CmObjectDescUtility.h"=0D #include "FdtHwInfoParser.h"=0D -#include "Serial/ArmSerialPortParser.h"=0D +#include "Serial/SerialPortParser.h"=0D =0D /** List of "compatible" property values for serial port nodes.=0D =0D @@ -329,7 +329,7 @@ GetSerialConsoleNode ( STATIC=0D EFI_STATUS=0D EFIAPI=0D -ArmSerialPortInfoDispatch (=0D +SerialPortInfoDispatch (=0D IN CONST FDT_HW_INFO_PARSER_HANDLE FdtParserHandle,=0D IN CM_ARCH_COMMON_SERIAL_PORT_INFO *GenericSerialInfo,=0D IN INT32 NodeCount,=0D @@ -408,7 +408,7 @@ ArmSerialPortInfoDispatch ( STATIC=0D EFI_STATUS=0D EFIAPI=0D -ArmSerialPortInfoParser (=0D +SerialPortInfoParser (=0D IN CONST FDT_HW_INFO_PARSER_HANDLE FdtParserHandle,=0D IN INT32 FdtBranch,=0D IN EARCH_COMMON_OBJECT_ID SerialObjectId=0D @@ -436,7 +436,7 @@ ArmSerialPortInfoParser ( return Status;=0D }=0D =0D - Status =3D ArmSerialPortInfoDispatch (=0D + Status =3D SerialPortInfoDispatch (=0D FdtParserHandle,=0D &SerialInfo,=0D 1,=0D @@ -529,7 +529,7 @@ SerialPortDispatcher ( return Status;=0D } else {=0D // Parse the console serial-port.=0D - Status =3D ArmSerialPortInfoParser (=0D + Status =3D SerialPortInfoParser (=0D FdtParserHandle,=0D SerialConsoleNode,=0D EArchCommonObjConsolePortInfo=0D @@ -587,7 +587,7 @@ SerialPortDispatcher ( // The first serial-port node, not being the console serial-port,=0D // will be the debug serial-port.=0D SerialDebugNode =3D SerialNode;=0D - Status =3D ArmSerialPortInfoParser (=0D + Status =3D SerialPortInfoParser (=0D FdtParserHandle,=0D SerialDebugNode,=0D EArchCommonObjSerialDebugPortInfo=0D @@ -617,7 +617,7 @@ SerialPortDispatcher ( } // for=0D =0D if (GenericSerialIndex > 0) {=0D - Status =3D ArmSerialPortInfoDispatch (=0D + Status =3D SerialPortInfoDispatch (=0D FdtParserHandle,=0D GenericSerialInfo,=0D GenericSerialIndex,=0D diff --git a/DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/ArmSerialPo= rtParser.h b/DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/SerialPortP= arser.h similarity index 89% rename from DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/ArmSerialPor= tParser.h rename to DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/SerialPortPars= er.h index 037c409d450a..22c686d5d4ad 100644 --- a/DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/ArmSerialPortParse= r.h +++ b/DynamicTablesPkg/Library/FdtHwInfoParserLib/Serial/SerialPortParser.h @@ -1,5 +1,5 @@ /** @file=0D - Arm Serial Port Parser.=0D + Serial Port Parser.=0D =0D Copyright (c) 2021, ARM Limited. All rights reserved.
=0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D @@ -9,8 +9,8 @@ - linux/Documentation/devicetree/bindings/serial/8250.txt=0D **/=0D =0D -#ifndef ARM_SERIAL_PORT_PARSER_H_=0D -#define ARM_SERIAL_PORT_PARSER_H_=0D +#ifndef SERIAL_PORT_PARSER_H_=0D +#define SERIAL_PORT_PARSER_H_=0D =0D /** SerialPort dispatcher.=0D =0D @@ -44,4 +44,4 @@ SerialPortDispatcher ( IN INT32 FdtBranch=0D );=0D =0D -#endif // ARM_SERIAL_PORT_PARSER_H_=0D +#endif // SERIAL_PORT_PARSER_H_=0D --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119644): https://edk2.groups.io/g/devel/message/119644 Mute This Topic: https://groups.io/mt/106770179/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-