From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0627.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe42::627]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0557A81C78 for ; Fri, 13 Jan 2017 12:10:52 -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=tJI0xwUHvf5r2Kp7IJ3oRJV+ZzpAvwdN2RzeWjS0sjc=; b=dW/PQ/ZDvoTi5J4hP0bov16thdviGsCrrboC+4MRVyYJL+xjXIgVuIl+dSPj1UhWmiLNdX6mscgH+nTl1qS0JtaNLCedfd0sM4E0eDVLkv3qA1KN/YUyOd1jiWg2K28hGrQomGVxYta+T4FMvyE6UedMke2S1efBBund5bb2EY0= 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 CY4PR12MB1238.namprd12.prod.outlook.com (10.168.167.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Fri, 13 Jan 2017 20:10:49 +0000 From: Leo Duran To: CC: , , , , , , Leo Duran Date: Fri, 13 Jan 2017 14:10:00 -0600 Message-ID: <1484338200-31337-11-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484338200-31337-1-git-send-email-leo.duran@amd.com> References: <1484338200-31337-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BLUPR16CA0013.namprd16.prod.outlook.com (10.164.14.23) To CY4PR12MB1238.namprd12.prod.outlook.com (10.168.167.13) X-MS-Office365-Filtering-Correlation-Id: 8c619e9a-d216-418a-ee89-08d43bf04519 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY4PR12MB1238; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1238; 3:UdPaKT6PFjxAnrozHSGd7fR5z/j7XOh9xLsOFt8XvVqUUTBoqowQ6UVT9W0j1mr8+mCekVCgfqDNrX8BFFfGKqJBQ8SNr4BzdTzpIypVmUYh2DTg5LJicLi15wvpDmAfe5tmwhdnFT2cN2VaR2nfvqJVpe+PaqEaGxiYhGsFXRYVhrjybg/T1NPLmGTFtBBZoFiMSRTIFI3/ZQsg3lSiB7uYbHFip7xhs6pCFhG8Jb0NINw4JMPuykRmwjVlWSWlwKQgerVnU7z4GeIfih9rbQ==; 25:rW31P5fYzJVaRnbLEUFcZk42tJhiXzT/xqJDi6mQQ8I0jkMPJsNZxZKA9v941g8ce+2dkz5ga6dbjdE9Y0CzXzF7ynCG4irxJR4axeXHCwn/2bZEJXglm3ouqcnuBHrcD+siXKeE3XRimA/RlE3AMuV3mit2nKt7TfC0hemcnSlgnsOilWh1cuTmC9/Ha/mYw6VBqxTe51x3pk3VV8EdJAib0lpGoG1etbMDDPod0D6RYddhYSBzLXiWiqvhd9CGcwKlrCk9GZ14xLQcJZI/MHMP5UcBr7ZjFbzfUMNwJy6H1VbZRbAJYcwXuebkMOmbs3BIgG6NX7j0C+QrGHCAki3MeymCkFACoNmONNeKhYCcOLk5rEvFZWUpLG/2+Bx/SH6MQ9aBxTWizEZs2LxJck9wJ+jN+Ktn6hqJlO9cIpDlzH3f7wsEuOsyQgS0gt00yYJTOUDTDuc87uhpP19jHg== X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1238; 31:nOR5fOj11fB5PTpEN9gaHtQ4u3hvbQbmN7Os7NuJMOApQph033OglMa6f/OfAjK1f+Yem/di0C4+4Axsq2rUbjo+aiJUbuQaRrToXMSPa26cYIPhmlw7AYJ9OLgQlaSNyM1h+B5y4lVgPIKMy2bSzhf+9XBDjxSSqixcojPx47JJB1+EX4DwvIba2BJTb03u1KNwy8+saFh+GpfB1JSN1rvtCBR3MXzSbIgiLxh3BXjFOCiot/g6fI6XMBs8JIooHpFwgIEj0iZd9j+FOqI9OI/a68+Nc3gqvtiPIrpdQE0=; 20:LqLBSXkvtGEoSiQfgJCAkmaSqyF7OyxNQnnuajYsiRkZmeVDkaOyzZ7AWe4IZaVud/oB0a5olf544n+bPkvYHiwc0lDyx9UMveSHC9gSXYwwmokDQLFIy1lLIzB+cZFjzT0MzxX67/0Q7JTRzJW964Av2dSr54hfJ47bR/Do7g6KfTirWpc2Nv3oNkVGnLNMceq432OqmUeByzuy985w/KQhr/2BsPkltHYLYHt2RY+CJB8ib43sAcoDd/us5+CDVCR+cCNFt8dshdKPuwO+nTUmn7VYzXKFRfvBgtQh5d9kaEc62j/2F/atOOOBzJ/6mlkrrFdf4uYDvxsDByteEz+RQeJNacl+WOOpKMd4ny/7GH+dDa/5tj9XFts1Rkd14dY7hgF3Bt1p5gx/Wz97GuwhZZuIHOZseojBbl/QrwYett1nDfxpinO1ByZlrHuXfZNSkwy89WCboxPLCndaN6BTMvggqWeSRte9T7MhHovRMy8No7RE/IRELV2LuWoG 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:CY4PR12MB1238; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1238; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1238; 4:3Jn19pjeD2ysMeycbHGentZyZJ86tUfOG8jOTozLVb7/tJVDqjzV0rUwYsn2PZcRWrn8IWYCjJ0JKGxcy6riqv6dSG43K1uJtTMIepJXDiMWdYDSeiDi0LflBOftC/DunTj78bFhoYSDzmvY4RmdDd6F+Sn6S/blUtfx/gWvuzLChaD6ia6rXEDvwKlmb6ZTRNIjCE4WAURN0tpg7f/zCOh6SiIfUabgX+U7bLHqvjnpoV+tmxMcGfsJqlZS7oBbdyw8Jy0ry6aS6XihyZZ/i+bPLJgbDWPIRZQvEc0cSdeHpayWsXi4DayfSHBrrMcfkpcFw2kCT5+AnrHiBmeYkugexCNw4AMBiHZRzItOcEoigKj3yfyE3lVQv2K9VBKceJ4pgYCqbqHXxg8tQ/imgCy53qUr9xJJ6Am/6rK5vExr97PVLz8eDexgWaDt3hE2NAMTagLTvWK06ymJEev/D38pA3caI094ROpVyTHjpCAT4ESZoWKQV9DGYYuYWgswKarzvEcONDr1RXeLOla9AHoN9LDN6SIbm0hqH1m6T4JsE7WiZbzoy6QxYxxNnXyQF8CZgx8nwL3qYmPR0w6yPdI62bVl5fzKJ9wEF1Vk9QOUcvMxb65r8y0CjTAV7IkqWU6qg94qveW1D2LULapSTLtVz25XMECtODa/MginP9Q= X-Forefront-PRVS: 018632C080 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6029001)(6009001)(7916002)(39840400002)(39860400002)(39410400002)(39850400002)(39450400003)(189002)(199003)(6486002)(106356001)(101416001)(105586002)(2351001)(38730400001)(6916009)(6666003)(48376002)(54906002)(2950100002)(47776003)(7736002)(305945005)(110136003)(5660300001)(25786008)(50466002)(6306002)(66066001)(86362001)(33646002)(4326007)(5003940100001)(42186005)(53416004)(97736004)(2906002)(6116002)(92566002)(3846002)(15395725005)(36756003)(68736007)(8676002)(50226002)(189998001)(81166006)(50986999)(76176999)(81156014)(27001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1238; 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; CY4PR12MB1238;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Gng019FDiNA==; 5:utkjxW+z3Km2kqMmXNWJ2bRppsm89cADt3Z+RkeXGsi5ynu22T2PRGvvdlL7TZSKmnoc72xi7YPRGteJoAAAggYKhj8cnW5hkAM2qfZzwGVioqGrHrCc9FCk99oCzFNMhhstFSm9k52YGMovfQTfWA==; 24:/e26N8YdmWVRQnkI5GfGKsMC+0zIFCK5l6beT9oX69eCSgapwyqB9+8BXx9zVWGxY7Os2LzEYhT0s2EI7ghA1//Wqk1hA9dodUksBMgu738= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1238; 7:hFdg+TlNVyCOOHuAACZutwfoXGGQxwv4hThibgbEbQjLztqeRsHGRSLSXVeGHuA0KmGs8G8UfIcOTkSGpgVDg6LqjiHNDbsFjeh/VlOO5PsC0/PKYOc7S3nxmI/Hu/tGz6Uxeqcs+PRjc+usV1RHqctowiELDhCz4sy+JEbKwszHaJhKNsxwcaTCZABzCutnxkegiFnL31lORdJQmSNchL613bXcTdDYd/03bZLuE76bSY1ZoJn1/S8Wmq733l98gny0NP4jALrne5qAt22/EI+0c18+NgDJDfJHFA2eT1QJpaWkXBWZ3EAPHD/db87WWvDTSig8rHgTVHPi3lNHAXZjWTBBZbIK6qL0zJyYqYa5HTvucyHUEZjX9rBZoQLA6CEktAx0iGwJvQTgOGMQYst6gDJ/zBFO+PQLqM9KPBY+fCNnopg18xGQ6/ngDdMI0wlufhvkYFVD3v6JUdXayw==; 20:GhqMrd9D9s20VspnCj3QYBHaIccVq6X9o4ufM4yMOMe9qdEWR9tVQDN5KqhPBcohu4irfqsG6H7fI59G3HsteirrPdlna5vBAlLvz7+Mc6rp0durA0ONZHX/Q76zVkRVEQefLOrecvJFxbHOFjrKgfcDytQ7h8iK3gp44cA1LURdjZqv+EHVYHZoE4Y8WDdLakzq1YUGLxLGO1nPAtBWw+/wtbBQKVp90hpUsF9frFKuhARH91ilrxuBaU6GFOyx X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2017 20:10:49.4902 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1238 Subject: [PATCH v3 10/10] 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: Fri, 13 Jan 2017 20:10:52 -0000 Content-Type: text/plain The Fifo routines from the QuemuFwCfgLib library have been ported to 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