]>
Commit | Line | Data |
---|---|---|
ddac74d1 | 1 | /** @file\r |
2 | This file include all platform action which can be customized by IBV/OEM.\r | |
3 | \r | |
180a5a35 | 4 | Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r |
c0a00b14 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
ddac74d1 | 6 | \r |
7 | **/\r | |
8 | \r | |
9 | #include "BdsPlatform.h"\r | |
10 | \r | |
11 | //\r | |
12 | // BDS Platform Functions\r | |
13 | //\r | |
14 | /**\r | |
15 | Platform Bds init. Include the platform firmware vendor, revision\r | |
16 | and so crc check.\r | |
17 | \r | |
ddac74d1 | 18 | **/\r |
19 | VOID\r | |
20 | EFIAPI\r | |
21 | PlatformBdsInit (\r | |
f7cdf5cd | 22 | VOID\r |
ddac74d1 | 23 | )\r |
24 | {\r | |
ddac74d1 | 25 | }\r |
26 | \r | |
27 | /**\r | |
28 | Connect the predefined platform default console device. Always try to find\r | |
29 | and enable the vga device if have.\r | |
30 | \r | |
31 | @param PlatformConsole Predefined platform default console device array.\r | |
32 | \r | |
33 | @retval EFI_SUCCESS Success connect at least one ConIn and ConOut\r | |
34 | device, there must have one ConOut device is\r | |
35 | active vga device.\r | |
36 | @return Return the status of BdsLibConnectAllDefaultConsoles ()\r | |
37 | \r | |
38 | **/\r | |
39 | EFI_STATUS\r | |
40 | PlatformBdsConnectConsole (\r | |
41 | IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r | |
42 | )\r | |
43 | {\r | |
44 | return EFI_SUCCESS;\r | |
45 | }\r | |
46 | \r | |
47 | /**\r | |
48 | Connect with predefined platform connect sequence,\r | |
49 | the OEM/IBV can customize with their own connect sequence.\r | |
50 | **/\r | |
51 | VOID\r | |
52 | PlatformBdsConnectSequence (\r | |
53 | VOID\r | |
54 | )\r | |
55 | {\r | |
ddac74d1 | 56 | }\r |
57 | \r | |
58 | /**\r | |
59 | Load the predefined driver option, OEM/IBV can customize this\r | |
60 | to load their own drivers\r | |
61 | \r | |
62 | @param BdsDriverLists - The header of the driver option link list.\r | |
63 | \r | |
64 | **/\r | |
65 | VOID\r | |
66 | PlatformBdsGetDriverOption (\r | |
67 | IN OUT LIST_ENTRY *BdsDriverLists\r | |
68 | )\r | |
69 | {\r | |
ddac74d1 | 70 | }\r |
71 | \r | |
72 | /**\r | |
73 | Perform the platform diagnostic, such like test memory. OEM/IBV also\r | |
74 | can customize this function to support specific platform diagnostic.\r | |
75 | \r | |
76 | @param MemoryTestLevel The memory test intensive level\r | |
77 | @param QuietBoot Indicate if need to enable the quiet boot\r | |
a798a789 | 78 | @param BaseMemoryTest A pointer to BdsMemoryTest()\r |
ddac74d1 | 79 | \r |
80 | **/\r | |
81 | VOID\r | |
82 | PlatformBdsDiagnostics (\r | |
83 | IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel,\r | |
a798a789 | 84 | IN BOOLEAN QuietBoot,\r |
85 | IN BASEM_MEMORY_TEST BaseMemoryTest\r | |
ddac74d1 | 86 | )\r |
87 | {\r | |
ddac74d1 | 88 | }\r |
89 | \r | |
90 | /**\r | |
91 | The function will execute with as the platform policy, current policy\r | |
92 | is driven by boot mode. IBV/OEM can customize this code for their specific\r | |
93 | policy action.\r | |
94 | \r | |
ddac74d1 | 95 | @param DriverOptionList The header of the driver option link list\r |
96 | @param BootOptionList The header of the boot option link list\r | |
a798a789 | 97 | @param ProcessCapsules A pointer to ProcessCapsules()\r |
98 | @param BaseMemoryTest A pointer to BaseMemoryTest()\r | |
ddac74d1 | 99 | \r |
100 | **/\r | |
101 | VOID\r | |
102 | EFIAPI\r | |
103 | PlatformBdsPolicyBehavior (\r | |
ddac74d1 | 104 | IN LIST_ENTRY *DriverOptionList,\r |
a798a789 | 105 | IN LIST_ENTRY *BootOptionList,\r |
106 | IN PROCESS_CAPSULES ProcessCapsules,\r | |
107 | IN BASEM_MEMORY_TEST BaseMemoryTest\r | |
ddac74d1 | 108 | )\r |
109 | {\r | |
ddac74d1 | 110 | }\r |
111 | \r | |
112 | /**\r | |
113 | Hook point after a boot attempt succeeds. We don't expect a boot option to\r | |
114 | return, so the UEFI 2.0 specification defines that you will default to an\r | |
115 | interactive mode and stop processing the BootOrder list in this case. This\r | |
116 | is also a platform implementation and can be customized by IBV/OEM.\r | |
117 | \r | |
118 | @param Option Pointer to Boot Option that succeeded to boot.\r | |
119 | \r | |
120 | **/\r | |
121 | VOID\r | |
122 | EFIAPI\r | |
123 | PlatformBdsBootSuccess (\r | |
124 | IN BDS_COMMON_OPTION *Option\r | |
125 | )\r | |
126 | {\r | |
ddac74d1 | 127 | }\r |
128 | \r | |
129 | /**\r | |
130 | Hook point after a boot attempt fails.\r | |
131 | \r | |
132 | @param Option Pointer to Boot Option that failed to boot.\r | |
133 | @param Status Status returned from failed boot.\r | |
134 | @param ExitData Exit data returned from failed boot.\r | |
135 | @param ExitDataSize Exit data size returned from failed boot.\r | |
136 | \r | |
137 | **/\r | |
138 | VOID\r | |
139 | EFIAPI\r | |
140 | PlatformBdsBootFail (\r | |
141 | IN BDS_COMMON_OPTION *Option,\r | |
142 | IN EFI_STATUS Status,\r | |
143 | IN CHAR16 *ExitData,\r | |
144 | IN UINTN ExitDataSize\r | |
145 | )\r | |
146 | {\r | |
ddac74d1 | 147 | }\r |
148 | \r | |
ddac74d1 | 149 | /**\r |
150 | This function locks platform flash that is not allowed to be updated during normal boot path.\r | |
151 | The flash layout is platform specific.\r | |
ddac74d1 | 152 | **/\r |
63b67687 | 153 | VOID\r |
ddac74d1 | 154 | EFIAPI\r |
155 | PlatformBdsLockNonUpdatableFlash (\r | |
156 | VOID\r | |
157 | )\r | |
158 | {\r | |
63b67687 LG |
159 | return ;\r |
160 | }\r | |
161 | \r | |
162 | \r | |
163 | /**\r | |
164 | Lock the ConsoleIn device in system table. All key\r | |
165 | presses will be ignored until the Password is typed in. The only way to\r | |
166 | disable the password is to type it in to a ConIn device.\r | |
167 | \r | |
168 | @param Password Password used to lock ConIn device.\r | |
169 | \r | |
170 | @retval EFI_SUCCESS lock the Console In Spliter virtual handle successfully.\r | |
171 | @retval EFI_UNSUPPORTED Password not found\r | |
172 | \r | |
173 | **/\r | |
174 | EFI_STATUS\r | |
175 | EFIAPI\r | |
176 | LockKeyboards (\r | |
177 | IN CHAR16 *Password\r | |
178 | )\r | |
179 | {\r | |
180 | return EFI_UNSUPPORTED;\r | |
ddac74d1 | 181 | }\r |