From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0616.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe49::616]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7AE0481B42 for ; Tue, 10 Jan 2017 15:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=D9oa1u4TTdOYTaReobI1Z4FB5b5V1C/oqbTasJ03c6w=; b=JM6/NzNxFKTxg7J4X4J4hPG8NxeRyb2k8cpgEAFWF0XsnPEnJAsHSfQOBijuJPTXmU/gbvq3UXHgEMnfCxzRxi54/O/ZmAujSX6/5HyLOUj9+kMy6vssYwG/4y0Dq0NSU2H+6DGDi4l1D1uORYHci4VkXUntoVbXL4BzF+CL7iA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by MWHPR12MB1247.namprd12.prod.outlook.com (10.169.205.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Tue, 10 Jan 2017 23:56:23 +0000 From: Leo Duran To: CC: , , , , , , Leo Duran Date: Tue, 10 Jan 2017 17:55:54 -0600 Message-ID: <1484092554-26224-9-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484092554-26224-1-git-send-email-leo.duran@amd.com> References: <1484092554-26224-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR15CA0019.namprd15.prod.outlook.com (10.172.204.157) To MWHPR12MB1247.namprd12.prod.outlook.com (10.169.205.7) X-MS-Office365-Filtering-Correlation-Id: ff8b68b6-f549-4de1-1879-08d439b448b0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR12MB1247; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1247; 3:cEt6fYRcHmXBChZyxLM41QbNG2/9wmcqGedou5r/ulwUeHYZVyEsELgJxYf3KR/vhZdaPp/gbsSQcO4UbUb2kjX5oPcrUsEK4zFG8Lf3vN02D2wSnVs2VDhvb7lUscTnOgeHZA+2muaIp/ek8BdX6k26Ipr4kMta9JCU9ZtZkQIzVNheg6/zh/XxVUCRfdYd9brLnmKWLGgaa9uf+/Jnef7VDZwxb8vp+9b1yR1HnIy/qqBvXqEQszOoEP/RDoBMRH/SrltTNOLyzPrWF37RMw==; 25:qMp6LTBAawHLSYTjxRq+1bvnAKONLpNR5w5OHmHO0fEpO+KLOxHQiZ7YaqjFL2pThO+qzFTAiaPvK82rHlCffiwJOkTdM3xU91VaMOJQXs57bo9cJieTFscxl8c4/E+fLNUHwpELqm4Bqz05Lp38EY8BOgu2YnVBv5AMacbxgvPvo18iSKb40w7rBg/8iTFESbJmBW+MKE/2H5k1x+EZlcUXbf5bvHTdJ2iFJ4Fb1BjKhGM8zFmjbLR0XfK0quHLxrTrH+EOZMi27yqJTm7rkg4f4YvOvdwl+mOAvZblwYASAWTHInYcZCXD2M/ETY5kIGC/fve/BBEQsq789qR6THKheTLg9CtorQlyudzMu1iG2WpvuuIzdw+Zg5Z0rSV7ISyxy3JyEvAPqNJ0viJKvIEVdxLVq23OQ0WzRPGKVfoTRrSpliRTtw/8PV1si5krpjh+RVRm6mmASmbaHLfxUQ== X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1247; 31:rx9XdF42HVQN3dV/vW1qEjypiUJIPP/4YYGM9Nw3Fp3kqUQ0OFPtUozLwFNXTLxwT2eA/TK8MwxY3gk0rdB5fY1SBfF8LjwARwan3PI8r4oOAnTX0R7xFyTLUmzMGvwsFPO/ogTcDSlP4EJtgzn6Rs3jWaZa+/QhNzd4Mz19FE0vtXlj+Z2wV4wEu+nDNP2sl7qxDwEXczPJiwvNO4z1Qcu10vX6PZ0JzBfYD33gmA2dKVqJJnoN6Vsb8GWVlSP3; 20:lNFA8D9Vk47p3gFwFMYAgWOjCv5qwovhwZnP10SkTmti3Z9gLnx4Tjs3gLpPwtd0mC5653jZNYue/a4azLeUhrQ4y6gKjgo+mobRRJHP89NnGrT2/daCMun4H9eeatDso6kqvL41XEXVMEjgsFC3tEvsfbPUE1kvHyra1NoPppURNsUsLz7YkzNknBfYWISpLTC+LOCDEr+DJye5Eyv1rKM3inRzLVokWlVedZ+YALEapuuL1NmgCJop8M9qdNo5IbZaFxVJ9QMndBHo2SJ3jBuZ2DMAqii0T97KPPhRhmFCn397A56eRhz6FVALULOHgbV2iR5FJmp4l98SzJccS2goqULW69ulSZ1GXba8YowwZk02H6qjlQCgaQ8NPE2zmD6tD5I7q8M1WttW6UGAOaQDrs1j5ysAQzUHahC75zy1sn3Ct9hAiFuilL/ViS7sOaZpomC2VEYXZJzK+lKuGBnO/ef26qt1jmoOiVdDq4tLak7Ob4Zgg7DUYB+hhlqv X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:MWHPR12MB1247; BCL:0; PCL:0; RULEID:; SRVR:MWHPR12MB1247; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1247; 4:TqryXylLgyF0tncFON9V5RoE/+18A9UF+y6CbyNUp3KtS+AiHIKp0Dq9lNcIdN2c68YbGvksFaGCdph9lGYtH9v+zs+rb2gitBOCYZ6f7KKAMGU/MFFNctzPFcy1DWNSLN9vnadyd76OCtC9QwWREHjOSQ+xI6PHpfmHgY3bBCDMPBS+VyYiOUWTFj/MFxVR4LqTTlXF7w97bpNOFmzRUDCQ4+CAGsKDxuNxuO5XRCDIEPis3UZdAaW8u+Av+0bEnwRFM2gyn5uGoVmNTItsbqHCPvJElcQwz4zVgCtFsH9H1Fz24a/2zZ5uQ8SVrmZIrbJv1c1I5mljvh9e4zYG1NC6pjVgMVvf4tyXNJ4FMNGBdEnDP+0ezd5DG4Xe+ID1Yu9BcHzvJzQqQvvH0jCcYzfehTsfpuMBvuk+BT4Wm40zJl5wbzRr+2xO6aMPtNr9FScCJ4hs0cPhaEBPmTO9oTLuw5fxWljQw1vFRwKsnJCpIppsoKxw5xFRbDbhMxsYsZCaSjv16nM7FBpaqpEcALCsCIniVQoH3EqWnF1PAfNFC4X6/uZRpf5mJqgv6t+p5mHQFQ4bq6AgQpmzWvdeur4z5cSeQzm84HcEM4DaAneGWPReeOx1wl2HxRMgywbEGfIGD1JyTjq6CN2NYh37Cwm7+vn3VYoB87ZEQaiiuf4= X-Forefront-PRVS: 01834E39B7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6029001)(7916002)(39860400002)(39840400002)(39450400003)(39410400002)(39850400002)(189002)(199003)(105586002)(33646002)(101416001)(97736004)(92566002)(3846002)(189998001)(7736002)(305945005)(5660300001)(50466002)(50226002)(6116002)(48376002)(8676002)(6666003)(81166006)(15395725005)(81156014)(68736007)(2950100002)(110136003)(6306002)(106356001)(2906002)(25786008)(47776003)(38730400001)(5003940100001)(42186005)(53416004)(54906002)(6916009)(6486002)(4326007)(76176999)(66066001)(2351001)(36756003)(86362001)(50986999)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1247; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR12MB1247; 23:v2eGcbaltulx/j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Rd6z207kT0X8VZjQg8gB/wWsdpAHE2qBOmbOuKzDbJ46jK+i5CpMCWBHwLZowEd6CC1rADEIyIDOT4iTIyMfDXf/aare8X/g==; 24:uHfv/k1jew9IPbhOX+GtGZh/8CvXFykjW3FZRO0NVLO8v13TmL7FSzuMIhWvNq1w2GAg2eSpHMPAnR7iBLDLnYpO7n+fJyhoAjviccXH8+g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1247; 7:udsbk/cJQHqEUUgsDwkhS7Q7OmBiiyie0UYbGB6zw6i49uypYBu0ZNB76NtBtr9HmCighYoamIoZIAJ56WWQqBMuWbGIgvOjlLPk5tZ+X33C4+bn8+V+h68oRYBkY1l+3yWH6CKcqXl+4Sd4w98Xj4A8MIYBwUtna5d/aAcxZXf21rWuGuEx2o2PdIBXV1fWpvqUPOJQpgt7WbbF8fmsbWD5o/JEC6ye7jf/KuZeS+DE5JdeHDSHJcTrsiQKwQmcYMoQIHjiXQGP0T0SOfhNeXc7RVTdc4YgYB7T0SLmGmdnfrMzUK22j7E7Ja8txYhVgaE8qcymjRJ7xOG96647Aohz6HVNkK3vxqhqPIXIWaBYG7ZmmT2zIxyT4tNX2WbvDKqE29l2LNtZVtoyZSPZGJg9j7w/Hal2nFw3UwkwFhaDI8nDs29TBSQXbqrGBW7xw9MXHaNslp50M4YGA71yUQ==; 20:fUS+8QmpBZcvIUV3qB/zwarTMjmSqzwqYJ090g4UHqTeqNhQJsq9qvT3jwZPre5kh3KRFJKDMahXICSvRhUVpSsEhkSb3NwsGSbipEd2vry8l3A83H1ftrChbDazSpfnTGwlOpCLNG9ol9g8RYGGXg1gNenM3vT/qVykSC/9v274RVEfovsHxM+XRUDz056DgwIQQaRDA1f2nzsTuCLxhDVbn7f6ZL91CaJuT70PRN2s1feU6Gx174A7dDuYnGq0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 23:56:23.0819 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1247 Subject: [PATCH 8/8] OvmfPkg: Modify QemuFwCfgLib to use new IoLib class library X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2017 23:56:25 -0000 Content-Type: text/plain The Fifo routines from the QuemuFwCfgLib library have been ported in the new BaseIoLibIntrinsic (IoLib class) library. Cc: Jordan Justen Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brijesh Singh Signed-off-by: Leo Duran --- OvmfPkg/Library/QemuFwCfgLib/Ia32/IoLibExAsm.nasm | 55 ----------------------- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c | 54 +--------------------- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf | 7 +-- OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf | 7 +-- OvmfPkg/Library/QemuFwCfgLib/X64/IoLibExAsm.nasm | 52 --------------------- 5 files changed, 3 insertions(+), 172 deletions(-) delete mode 100644 OvmfPkg/Library/QemuFwCfgLib/Ia32/IoLibExAsm.nasm delete mode 100644 OvmfPkg/Library/QemuFwCfgLib/X64/IoLibExAsm.nasm diff --git a/OvmfPkg/Library/QemuFwCfgLib/Ia32/IoLibExAsm.nasm b/OvmfPkg/Library/QemuFwCfgLib/Ia32/IoLibExAsm.nasm deleted file mode 100644 index faa22e9..0000000 --- a/OvmfPkg/Library/QemuFwCfgLib/Ia32/IoLibExAsm.nasm +++ /dev/null @@ -1,55 +0,0 @@ -;------------------------------------------------------------------------------ -; -; Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
-; This program and the accompanying materials -; are licensed and made available under the terms and conditions of the BSD License -; which accompanies this distribution. The full text of the license may be found at -; http://opensource.org/licenses/bsd-license.php. -; -; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -; -;------------------------------------------------------------------------------ - - SECTION .text - -;------------------------------------------------------------------------------ -; VOID -; EFIAPI -; IoReadFifo8 ( -; IN UINTN Port, -; IN UINTN Size, -; IN VOID *Buffer -; ); -;------------------------------------------------------------------------------ -global ASM_PFX(IoReadFifo8) -ASM_PFX(IoReadFifo8): - - mov dx, [esp + 4] - mov ecx, [esp + 8] - push edi - mov edi, [esp + 16] -rep insb - pop edi - ret - -;------------------------------------------------------------------------------ -; VOID -; EFIAPI -; IoWriteFifo8 ( -; IN UINTN Port, -; IN UINTN Size, -; IN VOID *Buffer -; ); -;------------------------------------------------------------------------------ -global ASM_PFX(IoWriteFifo8) -ASM_PFX(IoWriteFifo8): - - mov dx, [esp + 4] - mov ecx, [esp + 8] - push esi - mov esi, [esp + 16] -rep outsb - pop esi - ret - diff --git a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c index 0bbf121..a228c02 100644 --- a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c +++ b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c @@ -2,6 +2,7 @@ Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.
Copyright (C) 2013, Red Hat, Inc. + Copyright (c) 2017, AMD Incorporated. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -26,59 +27,6 @@ /** - Reads an 8-bit I/O port fifo into a block of memory. - - Reads the 8-bit I/O fifo port specified by Port. - - The port is read Count times, and the read data is - stored in the provided Buffer. - - This function must guarantee that all I/O read and write operations are - serialized. - - If 8-bit I/O port operations are not supported, then ASSERT(). - - @param Port The I/O port to read. - @param Count The number of times to read I/O port. - @param Buffer The buffer to store the read data into. - -**/ -VOID -EFIAPI -IoReadFifo8 ( - IN UINTN Port, - IN UINTN Count, - OUT VOID *Buffer - ); - -/** - Writes an 8-bit I/O port fifo from a block of memory. - - Writes the 8-bit I/O fifo port specified by Port. - - The port is written Count times, and the data are obtained - from the provided Buffer. - - This function must guarantee that all I/O read and write operations are - serialized. - - If 8-bit I/O port operations are not supported, then ASSERT(). - - @param Port The I/O port to read. - @param Count The number of times to read I/O port. - @param Buffer The buffer to store the read data into. - -**/ -VOID -EFIAPI -IoWriteFifo8 ( - IN UINTN Port, - IN UINTN Count, - OUT VOID *Buffer - ); - - -/** Selects a firmware configuration item for reading. Following this call, any data read from this item will start from diff --git a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf index 66ac778..6894760 100644 --- a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf +++ b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf @@ -4,6 +4,7 @@ # # Copyright (C) 2013, Red Hat, Inc. # Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Incorporated. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -36,12 +37,6 @@ [Sources] QemuFwCfgLib.c QemuFwCfgPeiDxe.c -[Sources.IA32] - Ia32/IoLibExAsm.nasm - -[Sources.X64] - X64/IoLibExAsm.nasm - [Packages] MdePkg/MdePkg.dec OvmfPkg/OvmfPkg.dec diff --git a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf index c1d6a54..7a96575 100644 --- a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf +++ b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf @@ -4,6 +4,7 @@ # # Copyright (C) 2013, Red Hat, Inc. # Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Incorporated. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -34,12 +35,6 @@ [Sources] QemuFwCfgLib.c QemuFwCfgSec.c -[Sources.IA32] - Ia32/IoLibExAsm.nasm - -[Sources.X64] - X64/IoLibExAsm.nasm - [Packages] MdePkg/MdePkg.dec OvmfPkg/OvmfPkg.dec diff --git a/OvmfPkg/Library/QemuFwCfgLib/X64/IoLibExAsm.nasm b/OvmfPkg/Library/QemuFwCfgLib/X64/IoLibExAsm.nasm deleted file mode 100644 index f1078f2..0000000 --- a/OvmfPkg/Library/QemuFwCfgLib/X64/IoLibExAsm.nasm +++ /dev/null @@ -1,52 +0,0 @@ -;------------------------------------------------------------------------------ -; -; Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
-; This program and the accompanying materials -; are licensed and made available under the terms and conditions of the BSD License -; which accompanies this distribution. The full text of the license may be found at -; http://opensource.org/licenses/bsd-license.php. -; -; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -; -;------------------------------------------------------------------------------ - - DEFAULT REL - SECTION .text - -;------------------------------------------------------------------------------ -; VOID -; EFIAPI -; IoReadFifo8 ( -; IN UINTN Port, // rcx -; IN UINTN Size, // rdx -; IN VOID *Buffer // r8 -; ); -;------------------------------------------------------------------------------ -global ASM_PFX(IoReadFifo8) -ASM_PFX(IoReadFifo8): - - xchg rcx, rdx - xchg rdi, r8 ; rdi: buffer address; r8: save rdi -rep insb - mov rdi, r8 ; restore rdi - ret - -;------------------------------------------------------------------------------ -; VOID -; EFIAPI -; IoWriteFifo8 ( -; IN UINTN Port, // rcx -; IN UINTN Size, // rdx -; IN VOID *Buffer // r8 -; ); -;------------------------------------------------------------------------------ -global ASM_PFX(IoWriteFifo8) -ASM_PFX(IoWriteFifo8): - - xchg rcx, rdx - xchg rsi, r8 ; rdi: buffer address; r8: save rdi -rep outsb - mov rsi, r8 ; restore rdi - ret - -- 1.9.1