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