]>
Commit | Line | Data |
---|---|---|
1 | /*++\r | |
2 | \r | |
3 | Copyright (c) 2004 - 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | BdsPlatform.c\r | |
15 | \r | |
16 | Abstract:\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 | |
28 | VOID\r | |
29 | PlatformBdsInit (\r | |
30 | IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData\r | |
31 | )\r | |
32 | /*++\r | |
33 | \r | |
34 | Routine Description:\r | |
35 | \r | |
36 | Platform Bds init. Incude the platform firmware vendor, revision\r | |
37 | and so crc check.\r | |
38 | \r | |
39 | Arguments:\r | |
40 | \r | |
41 | PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance\r | |
42 | \r | |
43 | Returns:\r | |
44 | \r | |
45 | None.\r | |
46 | \r | |
47 | --*/\r | |
48 | {\r | |
49 | return;\r | |
50 | }\r | |
51 | \r | |
52 | EFI_STATUS\r | |
53 | PlatformBdsConnectConsole (\r | |
54 | IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r | |
55 | )\r | |
56 | /*++\r | |
57 | \r | |
58 | Routine 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 | |
63 | Arguments:\r | |
64 | \r | |
65 | PlatformConsole - Predfined platform default console device array.\r | |
66 | \r | |
67 | Returns:\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 | |
81 | VOID\r | |
82 | PlatformBdsConnectSequence (\r | |
83 | VOID\r | |
84 | )\r | |
85 | /*++\r | |
86 | \r | |
87 | Routine 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 | |
92 | Arguments:\r | |
93 | \r | |
94 | None.\r | |
95 | \r | |
96 | Returns:\r | |
97 | \r | |
98 | None.\r | |
99 | \r | |
100 | --*/\r | |
101 | {\r | |
102 | return;\r | |
103 | }\r | |
104 | \r | |
105 | VOID\r | |
106 | PlatformBdsGetDriverOption (\r | |
107 | IN OUT LIST_ENTRY *BdsDriverLists\r | |
108 | )\r | |
109 | /*++\r | |
110 | \r | |
111 | Routine 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 | |
116 | Arguments:\r | |
117 | \r | |
118 | BdsDriverLists - The header of the driver option link list.\r | |
119 | \r | |
120 | Returns:\r | |
121 | \r | |
122 | None.\r | |
123 | \r | |
124 | --*/\r | |
125 | {\r | |
126 | return;\r | |
127 | }\r | |
128 | \r | |
129 | VOID\r | |
130 | PlatformBdsDiagnostics (\r | |
131 | IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel,\r | |
132 | IN BOOLEAN QuietBoot\r | |
133 | )\r | |
134 | /*++\r | |
135 | \r | |
136 | Routine 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 | |
141 | Arguments:\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 | |
147 | Returns:\r | |
148 | \r | |
149 | None.\r | |
150 | \r | |
151 | --*/\r | |
152 | {\r | |
153 | return;\r | |
154 | }\r | |
155 | \r | |
156 | VOID\r | |
157 | PlatformBdsPolicyBehavior (\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 | |
164 | Routine 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 | |
170 | Arguments:\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 | |
178 | Returns:\r | |
179 | \r | |
180 | None.\r | |
181 | \r | |
182 | --*/\r | |
183 | {\r | |
184 | return ;\r | |
185 | }\r | |
186 | \r | |
187 | VOID\r | |
188 | PlatformBdsBootSuccess (\r | |
189 | IN BDS_COMMON_OPTION *Option\r | |
190 | )\r | |
191 | /*++\r | |
192 | \r | |
193 | Routine 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 | |
200 | Arguments:\r | |
201 | \r | |
202 | Option - Pointer to Boot Option that succeeded to boot.\r | |
203 | \r | |
204 | Returns:\r | |
205 | \r | |
206 | None.\r | |
207 | \r | |
208 | --*/\r | |
209 | {\r | |
210 | return;\r | |
211 | }\r | |
212 | \r | |
213 | VOID\r | |
214 | PlatformBdsBootFail (\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 | |
222 | Routine Description:\r | |
223 | \r | |
224 | Hook point after a boot attempt fails.\r | |
225 | \r | |
226 | Arguments:\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 | |
236 | Returns:\r | |
237 | \r | |
238 | None.\r | |
239 | \r | |
240 | --*/\r | |
241 | {\r | |
242 | return;\r | |
243 | }\r | |
244 | \r | |
245 | EFI_STATUS\r | |
246 | PlatformBdsNoConsoleAction (\r | |
247 | VOID\r | |
248 | )\r | |
249 | /*++\r | |
250 | \r | |
251 | Routine 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 | |
256 | Arguments:\r | |
257 | \r | |
258 | None.\r | |
259 | \r | |
260 | Returns:\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 | |
269 | EFI_STATUS\r | |
270 | EFIAPI\r | |
271 | PlatformBdsLockNonUpdatableFlash (\r | |
272 | VOID\r | |
273 | )\r | |
274 | {\r | |
275 | return EFI_SUCCESS;\r | |
276 | }\r |