From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.2903.1587546243473485034 for ; Wed, 22 Apr 2020 02:04:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=BPMfTlqY; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: 2Dsu1zJte7/iFgELEUB3DFnWmhRxY9VIScBxNg4GgKlPzhNTFjtSKzjIGFJvQPS9mFLjPVAigr tcoPuRePld/w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2020 02:04:03 -0700 IronPort-SDR: jJ/Lq7K6Db66bKQo8bgteOPFCmz9zCzpkysFyfjkD74KtiFm4qMkRpf20jv/Xv51AI1jJF7HB/ JDzEThFBEEPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,413,1580803200"; d="scan'208";a="273820900" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by orsmga002.jf.intel.com with ESMTP; 22 Apr 2020 02:04:02 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 22 Apr 2020 02:04:01 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 22 Apr 2020 02:04:01 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 22 Apr 2020 02:04:01 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.172) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 22 Apr 2020 02:03:59 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NTgcBBrrlpYBVA1erC/joHSADb7aHwrq5RHtnSLCo3/jr/DxaxOpoPlgVAWE+O1soaGOD921hfS9Tt5NwDQTLylF/FwE65kGF7Sg2A2ajzUuX4IjqkSgOfdF+xgMdw7hVB7AUgG6RG4R7GCgAjnKaOnq7y2K6LaxlatA8kkw3Rp226CMr2bWN+VCIlsBk4QW0XR72hK+0r5pemHA4I644sV4AJJsFTqn68vzH5Lo7ltd451qF9Vvnf3pQnY+4qEA4TEtznX5zTKGCjMsWpjejDGyMXSYOvKKDoGqc1EoUEHm/Rf7RCcWhm0UmX7rd+TL4z0azjaS/XfEAEF5YbLhSQ== 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=JGV+qQcQdA+e0PjBDR3zB3/EW2ECjxKm2QPEDQbg3df3pURp4LQj3Mbz918FNc0qpQIUR24MFv0juSJWpinSeOOw98fe8iPzPTALO4jOgGHiEUyxKYLCv8s9HGy6KGEpwXh6lti12FS9SHtRRM7xfVd1usx63CQ56qcnNOspx6EWZr41KzM9zTxCz9OrEtC+sb1rF/hP0N43GY0351hWfGBHIZISHAH/EhB8qXA4LEWThCCoTUZSqRHjGui+Nm6ZDjXYFMdOTSWig5GcMMBWoYu35sm7Ylwpakb66uVfAyjiv8BJKB51BhtJVClmzJS8t1PBe/NEJxj9d6L1ZbZkrw== 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=BPMfTlqYw0HT57QaDVO6XivqbgA+VrGi51lrDkqeQCmllgM0DfBsrA8HLPfaRSJAe/mvh374CB5FIpcs8CF+SmZEqtEWUrBPF/pp4lYFxQz87/XH+K0DEVvxUukyFmITkNXFhoSjrcxjjOxYR/iHLOl4SCpm+QGvz/JZIgOpidk= Received: from BN7PR11MB2804.namprd11.prod.outlook.com (2603:10b6:406:ac::12) by BN7PR11MB2722.namprd11.prod.outlook.com (2603:10b6:406:b8::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.26; Wed, 22 Apr 2020 09:03:58 +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; Wed, 22 Apr 2020 09:03:58 +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: AQHWF7dXE2xf8gBQDU6AfjNkOqonSaiE2m/A Date: Wed, 22 Apr 2020 09:03:58 +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.45] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8f89b967-ec0e-446c-5832-08d7e69c17ac x-ms-traffictypediagnostic: BN7PR11MB2722: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1148; x-forefront-prvs: 03818C953D 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)(136003)(346002)(376002)(366004)(396003)(39860400002)(316002)(186003)(8936002)(66556008)(478600001)(66946007)(71200400001)(8676002)(64756008)(966005)(33656002)(66446008)(66476007)(110136005)(76116006)(9686003)(2906002)(26005)(7696005)(55016002)(53546011)(81156014)(52536014)(54906003)(5660300002)(6506007)(107886003)(4326008)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gwyS84s2r3g606SznIadSnZypNBLyCr4njiQh8yWeTSmMeuGuUoivYElBpXuCT9QQOUuBAXTMgCpDTf5cpE1MVjQX+eXe9k4ffChWwFrHrgRmAUNQNNiLMd4vSvTEqz8b5RYxpWXnxhNGXZQ3sNEep8AkLEnUZD8ZETIQbj5DVmNMwUIFgikBrpyO72nLScDSxjxTknXI+hHKPeOZO6Ty8xQinRya6VGQkySrkoNqtM2zMyvWvDaDV2txytPJtztDhsxlqh+9wBskHDQwImkKSizjVPoK4XI8Yy2/MoF4knbUMG6eZ7OpChR6wfTcbPbxU+ESZvxNZidt8MzaIC4VorbBTOtW1xQCo7fv7s0ta5PYkBILXIyZM/K5wg7FCks8Kt2d+VXBv//ZcIYwnvQJT+IBFFEKy5NgcZPabHV5ffbTceSnZ0+hbsiIoVlNY6sQ++yXBd+0+7I1yHZ/9TVH8JmiaMef3RrcG5ICyGQ6rXprXriTvxUsdRIVUlCVn73dD80N7akG6hbcCsVenai1w== x-ms-exchange-antispam-messagedata: zR+RZiv8iLTtlbUGyuHQ5VbOsH/XMdGJGhtRZ3r/1GYPH2Yw/XIA3V+Rseic7ItQovLHSZZs9un1TVSMc8BWLq/i6CwvLnG6yfdgwjSSGZ4rdUxZADu3QvD3yP/Hen7Bq4+P9mqWLj9R+jXmvy/QLw== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 8f89b967-ec0e-446c-5832-08d7e69c17ac X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2020 09:03:58.0872 (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: u9xmafI1O5k/GqJjgaW/BhUmzKU86UCIbj/3M43b/AcH/f1qFvb0t9OED6aPDuMiBu+HsLaW8AmR3IpVaa5Uxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2722 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