]>
Commit | Line | Data |
---|---|---|
8dbae30d | 1 | /** @file\r |
e6b7d45e | 2 | This file include all platform action which can be customized by IBV/OEM.\r |
93e3992d | 3 | \r |
8dbae30d | 4 | Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r |
5 | All rights reserved. This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
93e3992d | 14 | \r |
15 | #include "BdsPlatform.h"\r | |
16 | \r | |
17 | //\r | |
18 | // BDS Platform Functions\r | |
19 | //\r | |
e6b7d45e | 20 | /**\r |
21 | Platform Bds init. Include the platform firmware vendor, revision\r | |
22 | and so crc check.\r | |
23 | \r | |
24 | @param PrivateData The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance\r | |
25 | \r | |
26 | **/\r | |
93e3992d | 27 | VOID\r |
28 | PlatformBdsInit (\r | |
29 | IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData\r | |
30 | )\r | |
93e3992d | 31 | {\r |
32 | return;\r | |
33 | }\r | |
34 | \r | |
e6b7d45e | 35 | /**\r |
93e3992d | 36 | Connect the predefined platform default console device. Always try to find\r |
37 | and enable the vga device if have.\r | |
38 | \r | |
e6b7d45e | 39 | @param PlatformConsole Predfined platform default console device array.\r |
93e3992d | 40 | \r |
e6b7d45e | 41 | @retval EFI_SUCCESS Success connect at least one ConIn and ConOut\r |
42 | device, there must have one ConOut device is\r | |
43 | active vga device.\r | |
44 | @return Return the status of BdsLibConnectAllDefaultConsoles ()\r | |
93e3992d | 45 | \r |
e6b7d45e | 46 | **/\r |
47 | EFI_STATUS\r | |
48 | PlatformBdsConnectConsole (\r | |
49 | IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r | |
50 | )\r | |
93e3992d | 51 | {\r |
52 | return EFI_SUCCESS;\r | |
53 | }\r | |
54 | \r | |
e6b7d45e | 55 | /**\r |
56 | Connect with predeined platform connect sequence,\r | |
57 | the OEM/IBV can customize with their own connect sequence.\r | |
58 | **/\r | |
93e3992d | 59 | VOID\r |
60 | PlatformBdsConnectSequence (\r | |
61 | VOID\r | |
62 | )\r | |
93e3992d | 63 | {\r |
64 | return;\r | |
65 | }\r | |
66 | \r | |
e6b7d45e | 67 | /**\r |
93e3992d | 68 | Load the predefined driver option, OEM/IBV can customize this\r |
69 | to load their own drivers\r | |
93e3992d | 70 | \r |
e6b7d45e | 71 | @param BdsDriverLists - The header of the driver option link list.\r |
93e3992d | 72 | \r |
e6b7d45e | 73 | **/\r |
74 | VOID\r | |
75 | PlatformBdsGetDriverOption (\r | |
76 | IN OUT LIST_ENTRY *BdsDriverLists\r | |
77 | )\r | |
93e3992d | 78 | {\r |
79 | return;\r | |
80 | }\r | |
81 | \r | |
e6b7d45e | 82 | /**\r |
83 | Perform the platform diagnostic, such like test memory. OEM/IBV also\r | |
84 | can customize this fuction to support specific platform diagnostic.\r | |
85 | \r | |
86 | @param MemoryTestLevel The memory test intensive level\r | |
87 | @param QuietBoot Indicate if need to enable the quiet boot\r | |
88 | \r | |
89 | **/\r | |
93e3992d | 90 | VOID\r |
91 | PlatformBdsDiagnostics (\r | |
92 | IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel,\r | |
93 | IN BOOLEAN QuietBoot\r | |
94 | )\r | |
93e3992d | 95 | {\r |
96 | return;\r | |
97 | }\r | |
98 | \r | |
e6b7d45e | 99 | /**\r |
100 | The function will excute with as the platform policy, current policy\r | |
101 | is driven by boot mode. IBV/OEM can customize this code for their specific\r | |
102 | policy action.\r | |
103 | \r | |
104 | \r | |
105 | @param PrivateData The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance\r | |
106 | @param DriverOptionList The header of the driver option link list\r | |
107 | @param BootOptionList The header of the boot option link list\r | |
108 | \r | |
109 | **/\r | |
93e3992d | 110 | VOID\r |
111 | PlatformBdsPolicyBehavior (\r | |
112 | IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,\r | |
113 | IN OUT LIST_ENTRY *DriverOptionList,\r | |
114 | IN OUT LIST_ENTRY *BootOptionList\r | |
115 | )\r | |
93e3992d | 116 | {\r |
117 | return ;\r | |
118 | }\r | |
119 | \r | |
e6b7d45e | 120 | /**\r |
93e3992d | 121 | Hook point after a boot attempt succeeds. We don't expect a boot option to\r |
122 | return, so the EFI 1.0 specification defines that you will default to an\r | |
123 | interactive mode and stop processing the BootOrder list in this case. This\r | |
124 | is alos a platform implementation and can be customized by IBV/OEM.\r | |
125 | \r | |
e6b7d45e | 126 | @param Option Pointer to Boot Option that succeeded to boot.\r |
93e3992d | 127 | \r |
e6b7d45e | 128 | **/\r |
129 | VOID\r | |
130 | PlatformBdsBootSuccess (\r | |
131 | IN BDS_COMMON_OPTION *Option\r | |
132 | )\r | |
93e3992d | 133 | {\r |
134 | return;\r | |
135 | }\r | |
136 | \r | |
e6b7d45e | 137 | /**\r |
138 | Hook point after a boot attempt fails.\r | |
139 | \r | |
140 | @param Option Pointer to Boot Option that failed to boot.\r | |
141 | @param Status Status returned from failed boot.\r | |
142 | @param ExitData Exit data returned from failed boot.\r | |
143 | @param ExitDataSize Exit data size returned from failed boot.\r | |
144 | \r | |
145 | **/\r | |
93e3992d | 146 | VOID\r |
147 | PlatformBdsBootFail (\r | |
148 | IN BDS_COMMON_OPTION *Option,\r | |
149 | IN EFI_STATUS Status,\r | |
150 | IN CHAR16 *ExitData,\r | |
151 | IN UINTN ExitDataSize\r | |
152 | )\r | |
93e3992d | 153 | {\r |
154 | return;\r | |
155 | }\r | |
156 | \r | |
e6b7d45e | 157 | /**\r |
93e3992d | 158 | This function is remained for IBV/OEM to do some platform action,\r |
159 | if there no console device can be connected.\r | |
160 | \r | |
e6b7d45e | 161 | @return EFI_SUCCESS Direct return success now.\r |
93e3992d | 162 | \r |
e6b7d45e | 163 | **/\r |
164 | EFI_STATUS\r | |
165 | PlatformBdsNoConsoleAction (\r | |
166 | VOID\r | |
167 | )\r | |
93e3992d | 168 | {\r |
169 | return EFI_SUCCESS;\r | |
170 | }\r | |
171 | \r | |
e6b7d45e | 172 | /**\r |
173 | This function locks platform flash that is not allowed to be updated during normal boot path.\r | |
174 | The flash layout is platform specific.\r | |
175 | \r | |
176 | @retval EFI_SUCCESS The non-updatable flash areas.\r | |
177 | **/\r | |
93e3992d | 178 | EFI_STATUS\r |
179 | EFIAPI\r | |
180 | PlatformBdsLockNonUpdatableFlash (\r | |
181 | VOID\r | |
182 | )\r | |
183 | {\r | |
184 | return EFI_SUCCESS;\r | |
185 | }\r |