]>
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 |
f4cd24da RN |
6 | This program and the accompanying materials\r |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT 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 | |
29 | VOID\r | |
30 | EFIAPI\r | |
31 | PlatformBootManagerBeforeConsole (\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 | |
45 | VOID\r | |
46 | EFIAPI\r | |
47 | PlatformBootManagerAfterConsole (\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 | |
56 | VOID\r | |
57 | EFIAPI\r | |
58 | PlatformBootManagerWaitCallback (\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 | |
69 | VOID\r | |
70 | EFIAPI\r | |
71 | PlatformBootManagerUnableToBoot (\r | |
72 | VOID\r | |
73 | );\r | |
74 | \r | |
f4cd24da | 75 | #endif\r |