]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkPlatformPkg/Include/Library/RecoveryOemHookLib.h
QuarkPlatformPkg: Add new package for Galileo boards
[mirror_edk2.git] / QuarkPlatformPkg / Include / Library / RecoveryOemHookLib.h
diff --git a/QuarkPlatformPkg/Include/Library/RecoveryOemHookLib.h b/QuarkPlatformPkg/Include/Library/RecoveryOemHookLib.h
new file mode 100644 (file)
index 0000000..ea265ad
--- /dev/null
@@ -0,0 +1,45 @@
+/** @file\r
+This library includes the recovery function that can be customized by OEM,\r
+including how to select the recovery capsule if more than one capsule found,\r
+and security check.\r
+\r
+Copyright (c) 2013-2015 Intel Corporation.\r
+\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef __RECOVERY_OEM_HOOK_LIB_H__\r
+#define __RECOVERY_OEM_HOOK_LIB_H__\r
+\r
+/**\r
+  This function allows the user to force a system recovery\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+OemInitiateRecovery (\r
+  VOID\r
+  );\r
+\r
+/**\r
+  This function allows the user to force a system recovery and deadloop.\r
+\r
+  Deadloop required since system should not execute beyond this point.\r
+  Deadloop should never happen since OemInitiateRecovery () called within\r
+  this routine should never return since it executes a Warm Reset.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+OemInitiateRecoveryAndWait (\r
+  VOID\r
+  );\r
+\r
+#endif\r