From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 445FE202E611D for ; Sun, 15 Oct 2017 20:14:10 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP; 15 Oct 2017 20:17:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,385,1503385200"; d="scan'208";a="910237123" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 15 Oct 2017 20:17:44 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 15 Oct 2017 20:17:44 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 15 Oct 2017 20:17:44 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by shsmsx102.ccr.corp.intel.com ([169.254.2.175]) with mapi id 14.03.0319.002; Mon, 16 Oct 2017 11:17:42 +0800 From: "Gao, Liming" To: Meenakshi Aggarwal , Ard Biesheuvel , "Kinney, Michael D" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [PATCH 1/1] MdePkg/IoLib: Add support for big-endian MMIO Thread-Index: AQHSJf8g4WbKjSWeTUGVohhhcxe8iqCr++gAgAAQ+YCAADsgAIAAJeEAgjcV3KCABIjHYA== Date: Mon, 16 Oct 2017 03:17:42 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E16B65D@SHSMSX104.ccr.corp.intel.com> References: <1476437615-29534-1-git-send-email-bhupesh.sharma@nxp.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14B49505E@shsmsx102.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 1/1] MdePkg/IoLib: Add support for big-endian MMIO X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Oct 2017 03:14:11 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 TWVlbmFrc2hpOg0KICBJIHN1Z2dlc3QgdG8gaW50cm9kdWNlIG5ldyBJb0xpYiBsaWJyYXJ5IGlu c3RhbmNlLCBub3QgdG8gYWRkIG5ldyBJb0xpYiBBUElzLiBOZXcgSW9MaWIgbGlicmFyeSBpbnN0 YW5jZSB3aWxsIHBlcmZvcm0gSU8gb3BlcmF0aW9uIGFzIHRoZSBiaWcgZW5kaWFuLiBZb3UgY2Fu IHVwZGF0ZSBNZGVQa2cvTGlicmFyeS9CYXNlSW9MaWJJbnRyaW5zaWMgaW5zdGFuY2UsIGFkZCBu ZXcgc291cmNlIGZpbGUgYW5kIG5ldyBJTkYgZm9yIGl0LiANCg0KVUlOVDMyDQpFRklBUEkNCk1t aW9SZWFkMzIgKA0KICBJTiAgVUlOVE4gICAgIEFkZHJlc3MNCiAgKQ0Kew0KICBVSU5UMzIgICAg ICAgICAgICAgICAgICAgICAgICAgICAgVmFsdWU7DQoNCiAgQVNTRVJUICgoQWRkcmVzcyAmIDMp ID09IDApOw0KICBWYWx1ZSA9ICoodm9sYXRpbGUgVUlOVDMyKilBZGRyZXNzOw0KICByZXR1cm4g U3dhcEJ5dGVzMzIoVmFsdWUpOw0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