From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web11.5150.1587459210876845847 for ; Tue, 21 Apr 2020 01:53:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=F/V2aGI/; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: qX05jQKlz/lV4x9cJcWYgd3oxBD/hh5tYFTMqjJ5etK2T9RtoLNinNaVPTn2X+/3jGn6CEErKY RhP6Zcq8Hhqg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2020 01:53:30 -0700 IronPort-SDR: JdyXqxmaqXFLXhD3VXVenmJhbq8d2q84VJuzmnJTW955/jBujUBfaa/hV4ShgSImwQ4++C69hk iOyH8B0Ktilg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,409,1580803200"; d="scan'208";a="365284830" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga001.fm.intel.com with ESMTP; 21 Apr 2020 01:53:30 -0700 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Apr 2020 01:53:30 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Apr 2020 01:53:29 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.36.50) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Apr 2020 01:53:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZvN4o6cu4ltQX/IxRkhakAX1RkE4ygMnzrTnUwKWsQaXaoLJHBrKvPJbWXnJ9yKyttyFaTLIw8n9yOoUbewswLikYZPHUX/A02MpO9xHb6FvpH9mpNKi7w39ejDFsuT59CNUkIyReJlUEHtVpe/mtKL5PndnGiHeiaYCDkxnK3O72pmpvMYxd+Cujy+IjcBZqINkmd/611HRSvwejR4tjtaugDn/i2wwGhyfr7arPED2ZTfhNR7jP2Lb/vvlH0ihECHnE7FYxKj70vjTB4Zrn1ZNlyM1CXMJgFYEra1UXUDWWpGDH2fd7CUWz6nHjNtmqnVTo/QWqCfc8lrm7X5cyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SetnNZXIXzrzVCDYritvUwc5/mOxu2qqjD5E2ajv8zA=; b=Ia7mIp/Z2OwKUHf8mSoXv74Wu1FhSbADRYZPCX01PyuqxKb/tkqVKKfUgKY7HnKXTZFsFkEvYwEUVH3/Odv6Yd+xDiShy5xumieRgP+kUn+pg3CRUUMELnqMlw1OgL/RRmSNSwBlVDOpBFykSZWD7yqtp5n7SXqU+iw/nav/3V0/81sYib8XTi1zimYVgHVaxYlOi2oDfWn4tuiPrNXoeN743haKYQy9PIfICCx/WA4we1PKhFywKCX7rxLHxd/BFdFcyI8j7hXpxyKuEUXBrijFR+KDfyzZhGojoBStZ7BU/RXWNuktmZ/GAu2/6BDzp4TFUsoSNexFskl0+V2oMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SetnNZXIXzrzVCDYritvUwc5/mOxu2qqjD5E2ajv8zA=; b=F/V2aGI/JfHBY4ea5Zrj4kL6fdGW1Sqc8SUNcLBGl9/PpgV2S/htds/NIT6/6o4C9Glt5US69DxYzY5CcVl0JJ7APGIIWK+AYpeA7I47H5zWsQOCNC4W3lLkqkY83N1s57u4+yzSTfk2ki2WmAVK4o9DRt8iRkOMd2ay0fZAG3s= Received: from BN7PR11MB2804.namprd11.prod.outlook.com (2603:10b6:406:ac::12) by BN7PR11MB2627.namprd11.prod.outlook.com (2603:10b6:406:ae::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.27; Tue, 21 Apr 2020 08:53:28 +0000 Received: from BN7PR11MB2804.namprd11.prod.outlook.com ([fe80::79e2:ed1f:4d6b:532c]) by BN7PR11MB2804.namprd11.prod.outlook.com ([fe80::79e2:ed1f:4d6b:532c%7]) with mapi id 15.20.2921.030; Tue, 21 Apr 2020 08:53:28 +0000 From: "Zhiguang Liu" To: "devel@edk2.groups.io" , "abner.chang@hpe.com" CC: Gilbert Chen , Leif Lindholm , "Kinney, Michael D" , "Gao, Liming" Subject: Re: [edk2-devel] [PATCH v2 5/9] MdePkg/BaseIoLibIntrinsic: Rename IoLibArm.c=>IoLibNoIo.c Thread-Topic: [edk2-devel] [PATCH v2 5/9] MdePkg/BaseIoLibIntrinsic: Rename IoLibArm.c=>IoLibNoIo.c Thread-Index: AQHWF7dXE2xf8gBQDU6AfjNkOqonSaiDRS3Q Date: Tue, 21 Apr 2020 08:53:28 +0000 Message-ID: References: <20200421075241.25959-1-abner.chang@hpe.com> In-Reply-To: <20200421075241.25959-1-abner.chang@hpe.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiguang.liu@intel.com; x-originating-ip: [192.102.204.36] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4b5a58dd-f50a-4cb4-5c54-08d7e5d175eb x-ms-traffictypediagnostic: BN7PR11MB2627: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1148; x-forefront-prvs: 038002787A x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN7PR11MB2804.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10019020)(6029001)(376002)(39860400002)(346002)(396003)(366004)(136003)(26005)(81156014)(52536014)(55016002)(316002)(9686003)(66446008)(8936002)(107886003)(66556008)(2906002)(66476007)(64756008)(66946007)(76116006)(86362001)(33656002)(53546011)(478600001)(5660300002)(4326008)(6506007)(8676002)(966005)(7696005)(186003)(110136005)(54906003)(71200400001);DIR:OUT;SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2yZQHxBDtZL8YDzVmk6fasjo9tC333nKhLnCxYM+cP84exXPAXXYekDGwjvPWF7Mue9TrJSeRJLaGMbOmqQAYfn7BXmQMLEaxO18flXtFTdeq+cSjjwXF+06+HYZNpGSiI/SU/NstkdYNQvLsCme4KjbzK46K1/5cqmRVzfVLkq9chG5R0WAD/kGssWIqevtOfVsNAFT+F8C9ZZG8vbNMZZDWr+eqVjDCcvKDRpT4O9oRnScn7YXYXAWz+o6KQuDWsJxI7sEHtlMAHiLWs4mrWXm43vvaCImHEkmlEjrLhBWpbGgio6HrAb+RZs51UUqEGNz8/bVh4OILYTRKP8DmuDOa9xGfwtrq5+O+Gx10is2EYyjwvKBCBB3UQD0HLXTqBNm4Oe77SLQPzFvG3q3qXWiU+fnq0EadhS8EkwNvjmavq0bjhSIQ0orGz02BcZ+RPUiVms1A4xrEwaK2pI6WH+Epz1MiWzhgI+37hYNTGB4LzvHF6/02zSO+MB6wXUVeUgL/IF856KZ6+mBkuBuoA== x-ms-exchange-antispam-messagedata: 2KlMx75kNzmWuFNRJXoO42tZuvTaR6YX6IyatYdbohqHGUFUXi6m0EKNEJVOo4OcDE8SRgypo10YgmFjN9YEIvBM0b4HcHpbtWjSEUnQ4ziEeOaNE59nZ4nOFoPLz8gUCvpDYZMTcvIXJriHIzQkvQ== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4b5a58dd-f50a-4cb4-5c54-08d7e5d175eb X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2020 08:53:28.3630 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XYzMrT7kcZeotnWssM/zBgcsmiJboNDUZB+PCDgpX+CE1wXYjSIZrypTP7RhQnMTf5feIcKlzpVhQZrPhhmgvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2627 Return-Path: zhiguang.liu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Zhiguang Liu -----Original Message----- From: devel@edk2.groups.io On Behalf Of Abner Chang Sent: Tuesday, April 21, 2020 3:53 PM To: devel@edk2.groups.io Cc: abner.chang@hpe.com; Gilbert Chen ; Leif Lindholm= ; Kinney, Michael D = ; Gao, Liming Subject: [edk2-devel] [PATCH v2 5/9] MdePkg/BaseIoLibIntrinsic: Rename IoLi= bArm.c=3D>IoLibNoIo.c RISC-V MMIO library instance. IoLibArm.c in fact implements a generic Mmio-only (and ANSI C compliant), so rename it to better reflect this. Signed-off-by: Abner Chang Co-authored-by: Gilbert Chen Reviewed-by: Leif Lindholm Cc: Michael D Kinney Cc: Liming Gao Cc: Leif Lindholm Cc: Gilbert Chen --- .../BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf | 13 +++++++++---- .../BaseIoLibIntrinsic/{IoLibArm.c =3D> IoLibNoIo.c} | 4 +++- 2 files changed, 12 insertions(+), 5 deletions(-) rename MdePkg/Library/BaseIoLibIntrinsic/{IoLibArm.c =3D> IoLibNoIo.c} (94= %) diff --git a/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf b/Mde= Pkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf index 457cce9378..690b95d440 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf +++ b/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf @@ -4,11 +4,13 @@ # I/O Library that uses compiler intrinsics to perform IN and OUT instruc= tions # for IA-32 and x64. On IPF, I/O port requests are translated into MMIO = requests. # MMIO requests are forwarded directly to memory. For EBC, I/O port requ= ests -# ASSERT(). +# ASSERT(). For ARM, AARCH64 and RISCV64, this I/O library only provides = non I/O +# read and write. # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
# Copyright (c) 2017, AMD Incorporated. All rights reserved.
+# Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP.= All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -25,7 +27,7 @@ =20 =20 # -# VALID_ARCHITECTURES =3D IA32 X64 EBC ARM AARCH64 +# VALID_ARCHITECTURES =3D IA32 X64 EBC ARM AARCH64 RISCV64 # =20 [Sources] @@ -50,10 +52,13 @@ IoLib.c =20 [Sources.ARM] - IoLibArm.c + IoLibNoIo.c =20 [Sources.AARCH64] - IoLibArm.c + IoLibNoIo.c + +[Sources.RISCV64] + IoLibNoIo.c =20 [Packages] MdePkg/MdePkg.dec diff --git a/MdePkg/Library/BaseIoLibIntrinsic/IoLibArm.c b/MdePkg/Library/= BaseIoLibIntrinsic/IoLibNoIo.c similarity index 94% rename from MdePkg/Library/BaseIoLibIntrinsic/IoLibArm.c rename to MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c index c6b822461d..a107136a74 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/IoLibArm.c +++ b/MdePkg/Library/BaseIoLibIntrinsic/IoLibNoIo.c @@ -1,9 +1,11 @@ /** @file - I/O Library for ARM. + I/O library for non I/O read and write access (memory map I/O read and + write only) architecture, such as ARM and RISC-V processor. =20 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
Copyright (c) 2017, AMD Incorporated. All rights reserved.
+ Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All right= s reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 --=20 2.25.0 -=3D-=3D-=3D-=3D-=3D-=3D Groups.io Links: You receive all messages sent to this group. View/Reply Online (#57719): https://edk2.groups.io/g/devel/message/57719 Mute This Topic: https://groups.io/mt/73168211/1779286 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [zhiguang.liu@intel.com] -=3D-=3D-=3D-=3D-=3D-=3D