]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Library/PlatformBdsLibNull/BdsPlatform.c
UEFI HII: Merge UEFI HII support changes from branch.
[mirror_edk2.git] / MdeModulePkg / Library / PlatformBdsLibNull / BdsPlatform.c
CommitLineData
93e3992d 1/*++\r
2\r
3Copyright (c) 2004 - 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 BdsPlatform.c\r
15\r
16Abstract:\r
17\r
18 This file include all platform action which can be customized\r
19 by IBV/OEM.\r
20\r
21--*/\r
22\r
23#include "BdsPlatform.h"\r
24\r
25//\r
26// BDS Platform Functions\r
27//\r
28VOID\r
29PlatformBdsInit (\r
30 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData\r
31 )\r
32/*++\r
33\r
34Routine Description:\r
35\r
36 Platform Bds init. Incude the platform firmware vendor, revision\r
37 and so crc check.\r
38\r
39Arguments:\r
40\r
41 PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance\r
42\r
43Returns:\r
44\r
45 None.\r
46\r
47--*/\r
48{\r
49 return;\r
50}\r
51\r
52EFI_STATUS\r
53PlatformBdsConnectConsole (\r
54 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r
55 )\r
56/*++\r
57\r
58Routine Description:\r
59\r
60 Connect the predefined platform default console device. Always try to find\r
61 and enable the vga device if have.\r
62\r
63Arguments:\r
64\r
65 PlatformConsole - Predfined platform default console device array.\r
66 \r
67Returns:\r
68\r
69 EFI_SUCCESS - Success connect at least one ConIn and ConOut \r
70 device, there must have one ConOut device is \r
71 active vga device.\r
72 \r
73 EFI_STATUS - Return the status of \r
74 BdsLibConnectAllDefaultConsoles ()\r
75\r
76--*/\r
77{\r
78 return EFI_SUCCESS;\r
79}\r
80\r
81VOID\r
82PlatformBdsConnectSequence (\r
83 VOID\r
84 )\r
85/*++\r
86\r
87Routine Description:\r
88\r
89 Connect with predeined platform connect sequence, \r
90 the OEM/IBV can customize with their own connect sequence.\r
91 \r
92Arguments:\r
93\r
94 None.\r
95 \r
96Returns:\r
97\r
98 None.\r
99 \r
100--*/\r
101{\r
102 return;\r
103}\r
104\r
105VOID\r
106PlatformBdsGetDriverOption (\r
107 IN OUT LIST_ENTRY *BdsDriverLists\r
108 )\r
109/*++\r
110\r
111Routine Description:\r
112\r
113 Load the predefined driver option, OEM/IBV can customize this\r
114 to load their own drivers\r
115 \r
116Arguments:\r
117\r
118 BdsDriverLists - The header of the driver option link list.\r
119 \r
120Returns:\r
121\r
122 None.\r
123 \r
124--*/\r
125{\r
126 return;\r
127}\r
128\r
129VOID\r
130PlatformBdsDiagnostics (\r
131 IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel,\r
132 IN BOOLEAN QuietBoot\r
133 )\r
134/*++\r
135\r
136Routine Description:\r
137\r
138 Perform the platform diagnostic, such like test memory. OEM/IBV also\r
139 can customize this fuction to support specific platform diagnostic.\r
140 \r
141Arguments:\r
142\r
143 MemoryTestLevel - The memory test intensive level\r
144 \r
145 QuietBoot - Indicate if need to enable the quiet boot\r
146 \r
147Returns:\r
148\r
149 None.\r
150 \r
151--*/\r
152{\r
153 return;\r
154}\r
155\r
156VOID\r
157PlatformBdsPolicyBehavior (\r
158 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,\r
159 IN OUT LIST_ENTRY *DriverOptionList,\r
160 IN OUT LIST_ENTRY *BootOptionList\r
161 )\r
162/*++\r
163\r
164Routine Description:\r
165\r
166 The function will excute with as the platform policy, current policy\r
167 is driven by boot mode. IBV/OEM can customize this code for their specific\r
168 policy action.\r
169 \r
170Arguments:\r
171\r
172 PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance\r
173 \r
174 DriverOptionList - The header of the driver option link list\r
175 \r
176 BootOptionList - The header of the boot option link list\r
177 \r
178Returns:\r
179\r
180 None.\r
181 \r
182--*/\r
183{\r
184 return ;\r
185}\r
186\r
187VOID\r
188PlatformBdsBootSuccess (\r
189 IN BDS_COMMON_OPTION *Option\r
190 )\r
191/*++\r
192\r
193Routine Description:\r
194 \r
195 Hook point after a boot attempt succeeds. We don't expect a boot option to\r
196 return, so the EFI 1.0 specification defines that you will default to an\r
197 interactive mode and stop processing the BootOrder list in this case. This\r
198 is alos a platform implementation and can be customized by IBV/OEM.\r
199\r
200Arguments:\r
201\r
202 Option - Pointer to Boot Option that succeeded to boot.\r
203\r
204Returns:\r
205 \r
206 None.\r
207\r
208--*/\r
209{\r
210 return;\r
211}\r
212\r
213VOID\r
214PlatformBdsBootFail (\r
215 IN BDS_COMMON_OPTION *Option,\r
216 IN EFI_STATUS Status,\r
217 IN CHAR16 *ExitData,\r
218 IN UINTN ExitDataSize\r
219 )\r
220/*++\r
221\r
222Routine Description:\r
223 \r
224 Hook point after a boot attempt fails.\r
225\r
226Arguments:\r
227 \r
228 Option - Pointer to Boot Option that failed to boot.\r
229\r
230 Status - Status returned from failed boot.\r
231\r
232 ExitData - Exit data returned from failed boot.\r
233\r
234 ExitDataSize - Exit data size returned from failed boot.\r
235\r
236Returns:\r
237 \r
238 None.\r
239\r
240--*/\r
241{\r
242 return;\r
243}\r
244\r
245EFI_STATUS\r
246PlatformBdsNoConsoleAction (\r
247 VOID\r
248 )\r
249/*++\r
250\r
251Routine Description:\r
252 \r
253 This function is remained for IBV/OEM to do some platform action,\r
254 if there no console device can be connected.\r
255\r
256Arguments:\r
257 \r
258 None.\r
259 \r
260Returns:\r
261 \r
262 EFI_SUCCESS - Direct return success now.\r
263\r
264--*/\r
265{\r
266 return EFI_SUCCESS;\r
267}\r
268\r
269EFI_STATUS\r
270EFIAPI\r
271PlatformBdsLockNonUpdatableFlash (\r
272 VOID\r
273 )\r
274{\r
275 return EFI_SUCCESS;\r
276}\r