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