From: Michael Kinney Date: Mon, 3 Oct 2016 18:16:46 +0000 (-0700) Subject: QuarkPlatformPkg/RecoveryOemHookLib: Remove RecoveryOemHookLib X-Git-Tag: edk2-stable201903~5672 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=f6c8e67db9233562fd3ddc6bf7d23f0bb5fb115b QuarkPlatformPkg/RecoveryOemHookLib: Remove RecoveryOemHookLib Remove the RecoveryOemHookLib class and instance that is no longer used by any modules. Cc: Kelly Steele Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Reviewed-by: Kelly Steele --- diff --git a/QuarkPlatformPkg/Include/Library/RecoveryOemHookLib.h b/QuarkPlatformPkg/Include/Library/RecoveryOemHookLib.h deleted file mode 100644 index ea265adc83..0000000000 --- a/QuarkPlatformPkg/Include/Library/RecoveryOemHookLib.h +++ /dev/null @@ -1,45 +0,0 @@ -/** @file -This library includes the recovery function that can be customized by OEM, -including how to select the recovery capsule if more than one capsule found, -and security check. - -Copyright (c) 2013-2015 Intel Corporation. - -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. - -**/ - -#ifndef __RECOVERY_OEM_HOOK_LIB_H__ -#define __RECOVERY_OEM_HOOK_LIB_H__ - -/** - This function allows the user to force a system recovery - -**/ -VOID -EFIAPI -OemInitiateRecovery ( - VOID - ); - -/** - This function allows the user to force a system recovery and deadloop. - - Deadloop required since system should not execute beyond this point. - Deadloop should never happen since OemInitiateRecovery () called within - this routine should never return since it executes a Warm Reset. - -**/ -VOID -EFIAPI -OemInitiateRecoveryAndWait ( - VOID - ); - -#endif diff --git a/QuarkPlatformPkg/Library/RecoveryOemHookLib/CommonHeader.h b/QuarkPlatformPkg/Library/RecoveryOemHookLib/CommonHeader.h deleted file mode 100644 index 79022549e5..0000000000 --- a/QuarkPlatformPkg/Library/RecoveryOemHookLib/CommonHeader.h +++ /dev/null @@ -1,30 +0,0 @@ -/** @file -Common header file shared by all source files. - -This file includes package header files, library classes and protocol, PPI & GUID definitions. - -Copyright (c) 2013-2015 Intel Corporation. - -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. -**/ - -#ifndef __COMMON_HEADER_H_ -#define __COMMON_HEADER_H_ - - - -#include - -#include - -#include -#include -#include - -#endif diff --git a/QuarkPlatformPkg/Library/RecoveryOemHookLib/RecoveryOemHookLib.c b/QuarkPlatformPkg/Library/RecoveryOemHookLib/RecoveryOemHookLib.c deleted file mode 100644 index 28e8b115de..0000000000 --- a/QuarkPlatformPkg/Library/RecoveryOemHookLib/RecoveryOemHookLib.c +++ /dev/null @@ -1,61 +0,0 @@ -/** @file -This file includes the function that can be customized by OEM. - -Copyright (c) 2013-2015 Intel Corporation. - -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. - -**/ - -#include "CommonHeader.h" - -/** - This function allows the user to force a system recovery - -**/ -VOID -EFIAPI -OemInitiateRecovery ( - VOID - ) -{ - UINT32 Data32; - - // - // Set 'B_CFG_STICKY_RW_FORCE_RECOVERY' sticky bit so we know we need to do a recovery following warm reset - // - Data32 = QNCAltPortRead (QUARK_SCSS_SOC_UNIT_SB_PORT_ID, QUARK_SCSS_SOC_UNIT_CFG_STICKY_RW); - Data32 |= B_CFG_STICKY_RW_FORCE_RECOVERY; - QNCAltPortWrite (QUARK_SCSS_SOC_UNIT_SB_PORT_ID, QUARK_SCSS_SOC_UNIT_CFG_STICKY_RW, Data32); - - // - // Initialte the warm reset - // - ResetWarm (); -} - -/** - This function allows the user to force a system recovery and deadloop. - - Deadloop required since system should not execute beyond this point. - Deadloop should never happen since OemInitiateRecovery () called within - this routine should never return since it executes a Warm Reset. - -**/ -VOID -EFIAPI -OemInitiateRecoveryAndWait ( - VOID - ) -{ - volatile UINTN Index; - - OemInitiateRecovery (); - for (Index = 0; Index == 0;); -} diff --git a/QuarkPlatformPkg/Library/RecoveryOemHookLib/RecoveryOemHookLib.inf b/QuarkPlatformPkg/Library/RecoveryOemHookLib/RecoveryOemHookLib.inf deleted file mode 100644 index b8ec7c3e11..0000000000 --- a/QuarkPlatformPkg/Library/RecoveryOemHookLib/RecoveryOemHookLib.inf +++ /dev/null @@ -1,49 +0,0 @@ -## @file -# Library Hook Point functions for Intel QNC. -# -# This library provides hook points for OEM w.r.t recovery -# -# Copyright (c) 2013-2015 Intel Corporation. -# -# 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. -# -## - -[Defines] - INF_VERSION = 0x00010005 - BASE_NAME = RecoveryOemHookLib - FILE_GUID = DE6D4FB9-12DB-4dbb-ACF1-92514388355F - MODULE_TYPE = BASE - VERSION_STRING = 1.0 - LIBRARY_CLASS = RecoveryOemHookLib - -# -# The following information is for reference only and not required by the build tools. -# -# VALID_ARCHITECTURES = IA32 -# - -[Sources] - RecoveryOemHookLib.c - CommonHeader.h - - -[Packages] - MdePkg/MdePkg.dec - MdeModulePkg/MdeModulePkg.dec - QuarkPlatformPkg/QuarkPlatformPkg.dec - QuarkSocPkg/QuarkSocPkg.dec - -[LibraryClasses] - QNCAccessLib - ResetSystemLib - -[Ppis] - gEfiPeiDeviceRecoveryModulePpiGuid # PPI SOMETIMES_CONSUMED -