]>
Commit | Line | Data |
---|---|---|
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 | 5 | Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r |
9d510e61 | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
f4cd24da RN |
7 | \r |
8 | **/\r | |
9 | \r | |
10 | \r | |
11 | #ifndef __PLATFORM_BOOT_MANAGER_LIB_H_\r | |
12 | #define __PLATFORM_BOOT_MANAGER_LIB_H_\r | |
13 | #include <Library/UefiBootManagerLib.h>\r | |
14 | \r | |
15 | /**\r | |
16 | Do the platform specific action before the console is connected.\r | |
17 | \r | |
18 | Such as:\r | |
19 | Update console variable;\r | |
20 | Register new Driver#### or Boot####;\r | |
21 | Signal ReadyToLock event.\r | |
22 | **/\r | |
23 | VOID\r | |
24 | EFIAPI\r | |
25 | PlatformBootManagerBeforeConsole (\r | |
26 | VOID\r | |
27 | );\r | |
28 | \r | |
29 | /**\r | |
30 | Do the platform specific action after the console is connected.\r | |
31 | \r | |
32 | Such as:\r | |
33 | Dynamically switch output mode;\r | |
34 | Signal console ready platform customized event;\r | |
35 | Run diagnostics like memory testing;\r | |
36 | Connect certain devices;\r | |
37 | Dispatch aditional option roms.\r | |
38 | **/\r | |
39 | VOID\r | |
40 | EFIAPI\r | |
41 | PlatformBootManagerAfterConsole (\r | |
42 | VOID\r | |
43 | );\r | |
44 | \r | |
45 | /**\r | |
46 | This function is called each second during the boot manager waits the timeout.\r | |
47 | \r | |
48 | @param TimeoutRemain The remaining timeout.\r | |
49 | **/\r | |
50 | VOID\r | |
51 | EFIAPI\r | |
52 | PlatformBootManagerWaitCallback (\r | |
53 | UINT16 TimeoutRemain\r | |
54 | );\r | |
55 | \r | |
76f368c9 RN |
56 | /**\r |
57 | The function is called when no boot option could be launched,\r | |
58 | including platform recovery options and options pointing to applications\r | |
59 | built into firmware volumes.\r | |
60 | \r | |
61 | If this function returns, BDS attempts to enter an infinite loop.\r | |
62 | **/\r | |
63 | VOID\r | |
64 | EFIAPI\r | |
65 | PlatformBootManagerUnableToBoot (\r | |
66 | VOID\r | |
67 | );\r | |
68 | \r | |
f4cd24da | 69 | #endif\r |