diff options
Diffstat (limited to 'QuarkPlatformPkg')
4 files changed, 0 insertions, 185 deletions
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 <PiPei.h>
-
-#include <Ppi/DeviceRecoveryModule.h>
-
-#include <Library/RecoveryOemHookLib.h>
-#include <Library/QNCAccessLib.h>
-#include <Library/ResetSystemLib.h>
-
-#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
-
|