]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/PlatformBootManagerLib.h
MdeModulePkg/PlatformBootManager: Add PlatformBootManagerUnableToBoot
[mirror_edk2.git] / MdeModulePkg / Include / Library / PlatformBootManagerLib.h
CommitLineData
f4cd24da 1/** @file\r
d1102dba 2 Platform Boot Manager library definition. A platform can implement\r
f4cd24da
RN
3 instances to support platform-specific behavior.\r
4\r
d1102dba 5Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
f4cd24da
RN
6This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16\r
17#ifndef __PLATFORM_BOOT_MANAGER_LIB_H_\r
18#define __PLATFORM_BOOT_MANAGER_LIB_H_\r
19#include <Library/UefiBootManagerLib.h>\r
20\r
21/**\r
22 Do the platform specific action before the console is connected.\r
23\r
24 Such as:\r
25 Update console variable;\r
26 Register new Driver#### or Boot####;\r
27 Signal ReadyToLock event.\r
28**/\r
29VOID\r
30EFIAPI\r
31PlatformBootManagerBeforeConsole (\r
32 VOID\r
33 );\r
34\r
35/**\r
36 Do the platform specific action after the console is connected.\r
37\r
38 Such as:\r
39 Dynamically switch output mode;\r
40 Signal console ready platform customized event;\r
41 Run diagnostics like memory testing;\r
42 Connect certain devices;\r
43 Dispatch aditional option roms.\r
44**/\r
45VOID\r
46EFIAPI\r
47PlatformBootManagerAfterConsole (\r
48 VOID\r
49 );\r
50\r
51/**\r
52 This function is called each second during the boot manager waits the timeout.\r
53\r
54 @param TimeoutRemain The remaining timeout.\r
55**/\r
56VOID\r
57EFIAPI\r
58PlatformBootManagerWaitCallback (\r
59 UINT16 TimeoutRemain\r
60 );\r
61\r
76f368c9
RN
62/**\r
63 The function is called when no boot option could be launched,\r
64 including platform recovery options and options pointing to applications\r
65 built into firmware volumes.\r
66\r
67 If this function returns, BDS attempts to enter an infinite loop.\r
68**/\r
69VOID\r
70EFIAPI\r
71PlatformBootManagerUnableToBoot (\r
72 VOID\r
73 );\r
74\r
f4cd24da 75#endif\r