QuarkPlatformPkg/RecoveryOemHookLib: Remove RecoveryOemHookLib

Remove the RecoveryOemHookLib class and instance that is no
longer used by any modules.

Cc: Kelly Steele <kelly.steele@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Kelly Steele <kelly.steele@intel.com>
This commit is contained in:
Michael Kinney 2016-10-03 11:16:46 -07:00
parent 963236092b
commit f6c8e67db9
4 changed files with 0 additions and 185 deletions

View File

@ -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

View File

@ -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 <PiPei.h>
#include <Ppi/DeviceRecoveryModule.h>
#include <Library/RecoveryOemHookLib.h>
#include <Library/QNCAccessLib.h>
#include <Library/ResetSystemLib.h>
#endif

View File

@ -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;);
}

View File

@ -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