From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7D02B1A1E0F for ; Thu, 6 Oct 2016 12:12:08 -0700 (PDT) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP; 06 Oct 2016 12:12:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,454,1473145200"; d="scan'208";a="16958346" Received: from asagi-mobl1.amr.corp.intel.com (HELO mdkinney-MOBL.amr.corp.intel.com) ([10.254.78.24]) by fmsmga006.fm.intel.com with ESMTP; 06 Oct 2016 12:12:08 -0700 From: Michael Kinney To: edk2-devel@lists.01.org Date: Thu, 6 Oct 2016 12:12:03 -0700 Message-Id: <1475781125-1472-4-git-send-email-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.6.3.windows.1 In-Reply-To: <1475781125-1472-1-git-send-email-michael.d.kinney@intel.com> References: <1475781125-1472-1-git-send-email-michael.d.kinney@intel.com> Subject: [Patch 3/5] QuarkPlatformPkg/PlatformHelperLib: Remove PlatformDebugPortGetChar8() 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: Thu, 06 Oct 2016 19:12:08 -0000 Remove the library function PlatformDebugPortGetChar8() from the PlatformHelperLib that is no longer used by any modules. Cc: Kelly Steele Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney --- .../Include/Library/PlatformHelperLib.h | 16 +------------ .../Library/PlatformHelperLib/PlatformHelperLib.c | 27 ---------------------- 2 files changed, 1 insertion(+), 42 deletions(-) diff --git a/QuarkPlatformPkg/Include/Library/PlatformHelperLib.h b/QuarkPlatformPkg/Include/Library/PlatformHelperLib.h index 7b4119d..cf884e1 100644 --- a/QuarkPlatformPkg/Include/Library/PlatformHelperLib.h +++ b/QuarkPlatformPkg/Include/Library/PlatformHelperLib.h @@ -1,7 +1,7 @@ /** @file PlatformHelperLib function prototype definitions. -Copyright (c) 2013 - 2016 Intel Corporation. +Copyright (c) 2013 - 2016 Intel Corporation. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -46,20 +46,6 @@ PlatformFindFvFileRawDataSection ( ); /** - Read 8bit character from debug stream. - - Block until character is read. - - @return 8bit character read from debug stream. - -**/ -CHAR8 -EFIAPI -PlatformDebugPortGetChar8 ( - VOID - ); - -/** Find free spi protect register and write to it to protect a flash region. @param DirectValue Value to directly write to register. diff --git a/QuarkPlatformPkg/Library/PlatformHelperLib/PlatformHelperLib.c b/QuarkPlatformPkg/Library/PlatformHelperLib/PlatformHelperLib.c index f9ceda4..768ea14 100644 --- a/QuarkPlatformPkg/Library/PlatformHelperLib/PlatformHelperLib.c +++ b/QuarkPlatformPkg/Library/PlatformHelperLib/PlatformHelperLib.c @@ -91,33 +91,6 @@ WriteFirstFreeSpiProtect ( // /** - Read 8bit character from debug stream. - - Block until character is read. - - @return 8bit character read from debug stream. - -**/ -CHAR8 -EFIAPI -PlatformDebugPortGetChar8 ( - VOID - ) -{ - CHAR8 Got; - - do { - if (SerialPortPoll ()) { - if (SerialPortRead ((UINT8 *) &Got, 1) == 1) { - break; - } - } - } while (TRUE); - - return Got; -} - -/** Clear SPI Protect registers. @retval EFI_SUCCESS SPI protect registers cleared. -- 2.6.3.windows.1