]>
Commit | Line | Data |
---|---|---|
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 | 5 | Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r |
6 | All rights reserved. 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 | |
93e3992d | 15 | \r |
16 | #include "BdsPlatform.h"\r | |
17 | \r | |
18 | //\r | |
19 | // BDS Platform Functions\r | |
20 | //\r | |
21 | VOID\r | |
22 | PlatformBdsInit (\r | |
23 | IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData\r | |
24 | )\r | |
25 | /*++\r | |
26 | \r | |
27 | Routine Description:\r | |
28 | \r | |
29 | Platform Bds init. Incude the platform firmware vendor, revision\r | |
30 | and so crc check.\r | |
31 | \r | |
32 | Arguments:\r | |
33 | \r | |
34 | PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance\r | |
35 | \r | |
36 | Returns:\r | |
37 | \r | |
38 | None.\r | |
39 | \r | |
40 | --*/\r | |
41 | {\r | |
42 | return;\r | |
43 | }\r | |
44 | \r | |
45 | EFI_STATUS\r | |
46 | PlatformBdsConnectConsole (\r | |
47 | IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r | |
48 | )\r | |
49 | /*++\r | |
50 | \r | |
51 | Routine 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 | |
56 | Arguments:\r | |
57 | \r | |
58 | PlatformConsole - Predfined platform default console device array.\r | |
59 | \r | |
60 | Returns:\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 | |
74 | VOID\r | |
75 | PlatformBdsConnectSequence (\r | |
76 | VOID\r | |
77 | )\r | |
78 | /*++\r | |
79 | \r | |
80 | Routine 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 | |
85 | Arguments:\r | |
86 | \r | |
87 | None.\r | |
88 | \r | |
89 | Returns:\r | |
90 | \r | |
91 | None.\r | |
92 | \r | |
93 | --*/\r | |
94 | {\r | |
95 | return;\r | |
96 | }\r | |
97 | \r | |
98 | VOID\r | |
99 | PlatformBdsGetDriverOption (\r | |
100 | IN OUT LIST_ENTRY *BdsDriverLists\r | |
101 | )\r | |
102 | /*++\r | |
103 | \r | |
104 | Routine 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 | |
109 | Arguments:\r | |
110 | \r | |
111 | BdsDriverLists - The header of the driver option link list.\r | |
112 | \r | |
113 | Returns:\r | |
114 | \r | |
115 | None.\r | |
116 | \r | |
117 | --*/\r | |
118 | {\r | |
119 | return;\r | |
120 | }\r | |
121 | \r | |
122 | VOID\r | |
123 | PlatformBdsDiagnostics (\r | |
124 | IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel,\r | |
125 | IN BOOLEAN QuietBoot\r | |
126 | )\r | |
127 | /*++\r | |
128 | \r | |
129 | Routine 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 | |
134 | Arguments:\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 | |
140 | Returns:\r | |
141 | \r | |
142 | None.\r | |
143 | \r | |
144 | --*/\r | |
145 | {\r | |
146 | return;\r | |
147 | }\r | |
148 | \r | |
149 | VOID\r | |
150 | PlatformBdsPolicyBehavior (\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 | |
157 | Routine 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 | |
163 | Arguments:\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 | |
171 | Returns:\r | |
172 | \r | |
173 | None.\r | |
174 | \r | |
175 | --*/\r | |
176 | {\r | |
177 | return ;\r | |
178 | }\r | |
179 | \r | |
180 | VOID\r | |
181 | PlatformBdsBootSuccess (\r | |
182 | IN BDS_COMMON_OPTION *Option\r | |
183 | )\r | |
184 | /*++\r | |
185 | \r | |
186 | Routine 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 | |
193 | Arguments:\r | |
194 | \r | |
195 | Option - Pointer to Boot Option that succeeded to boot.\r | |
196 | \r | |
197 | Returns:\r | |
198 | \r | |
199 | None.\r | |
200 | \r | |
201 | --*/\r | |
202 | {\r | |
203 | return;\r | |
204 | }\r | |
205 | \r | |
206 | VOID\r | |
207 | PlatformBdsBootFail (\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 | |
215 | Routine Description:\r | |
216 | \r | |
217 | Hook point after a boot attempt fails.\r | |
218 | \r | |
219 | Arguments:\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 | |
229 | Returns:\r | |
230 | \r | |
231 | None.\r | |
232 | \r | |
233 | --*/\r | |
234 | {\r | |
235 | return;\r | |
236 | }\r | |
237 | \r | |
238 | EFI_STATUS\r | |
239 | PlatformBdsNoConsoleAction (\r | |
240 | VOID\r | |
241 | )\r | |
242 | /*++\r | |
243 | \r | |
244 | Routine 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 | |
249 | Arguments:\r | |
250 | \r | |
251 | None.\r | |
252 | \r | |
253 | Returns:\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 | |
262 | EFI_STATUS\r | |
263 | EFIAPI\r | |
264 | PlatformBdsLockNonUpdatableFlash (\r | |
265 | VOID\r | |
266 | )\r | |
267 | {\r | |
268 | return EFI_SUCCESS;\r | |
269 | }\r |