3 Copyright (c) 2004 - 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 This file include all platform action which can be customized
23 #include "BdsPlatform.h"
26 // BDS Platform Functions
30 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
36 Platform Bds init. Incude the platform firmware vendor, revision
41 PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance
53 PlatformBdsConnectConsole (
54 IN BDS_CONSOLE_CONNECT_ENTRY
*PlatformConsole
60 Connect the predefined platform default console device. Always try to find
61 and enable the vga device if have.
65 PlatformConsole - Predfined platform default console device array.
69 EFI_SUCCESS - Success connect at least one ConIn and ConOut
70 device, there must have one ConOut device is
73 EFI_STATUS - Return the status of
74 BdsLibConnectAllDefaultConsoles ()
82 PlatformBdsConnectSequence (
89 Connect with predeined platform connect sequence,
90 the OEM/IBV can customize with their own connect sequence.
106 PlatformBdsGetDriverOption (
107 IN OUT LIST_ENTRY
*BdsDriverLists
113 Load the predefined driver option, OEM/IBV can customize this
114 to load their own drivers
118 BdsDriverLists - The header of the driver option link list.
130 PlatformBdsDiagnostics (
131 IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel
,
138 Perform the platform diagnostic, such like test memory. OEM/IBV also
139 can customize this fuction to support specific platform diagnostic.
143 MemoryTestLevel - The memory test intensive level
145 QuietBoot - Indicate if need to enable the quiet boot
157 PlatformBdsPolicyBehavior (
158 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
,
159 IN OUT LIST_ENTRY
*DriverOptionList
,
160 IN OUT LIST_ENTRY
*BootOptionList
166 The function will excute with as the platform policy, current policy
167 is driven by boot mode. IBV/OEM can customize this code for their specific
172 PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance
174 DriverOptionList - The header of the driver option link list
176 BootOptionList - The header of the boot option link list
188 PlatformBdsBootSuccess (
189 IN BDS_COMMON_OPTION
*Option
195 Hook point after a boot attempt succeeds. We don't expect a boot option to
196 return, so the EFI 1.0 specification defines that you will default to an
197 interactive mode and stop processing the BootOrder list in this case. This
198 is alos a platform implementation and can be customized by IBV/OEM.
202 Option - Pointer to Boot Option that succeeded to boot.
214 PlatformBdsBootFail (
215 IN BDS_COMMON_OPTION
*Option
,
216 IN EFI_STATUS Status
,
218 IN UINTN ExitDataSize
224 Hook point after a boot attempt fails.
228 Option - Pointer to Boot Option that failed to boot.
230 Status - Status returned from failed boot.
232 ExitData - Exit data returned from failed boot.
234 ExitDataSize - Exit data size returned from failed boot.
246 PlatformBdsNoConsoleAction (
253 This function is remained for IBV/OEM to do some platform action,
254 if there no console device can be connected.
262 EFI_SUCCESS - Direct return success now.
271 PlatformBdsLockNonUpdatableFlash (