2 This file include all platform action which can be customized
5 Copyright (c) 2004 - 2008, Intel Corporation. <BR>
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include "BdsPlatform.h"
19 // BDS Platform Functions
23 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
29 Platform Bds init. Incude the platform firmware vendor, revision
34 PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance
46 PlatformBdsConnectConsole (
47 IN BDS_CONSOLE_CONNECT_ENTRY
*PlatformConsole
53 Connect the predefined platform default console device. Always try to find
54 and enable the vga device if have.
58 PlatformConsole - Predfined platform default console device array.
62 EFI_SUCCESS - Success connect at least one ConIn and ConOut
63 device, there must have one ConOut device is
66 EFI_STATUS - Return the status of
67 BdsLibConnectAllDefaultConsoles ()
75 PlatformBdsConnectSequence (
82 Connect with predeined platform connect sequence,
83 the OEM/IBV can customize with their own connect sequence.
99 PlatformBdsGetDriverOption (
100 IN OUT LIST_ENTRY
*BdsDriverLists
106 Load the predefined driver option, OEM/IBV can customize this
107 to load their own drivers
111 BdsDriverLists - The header of the driver option link list.
123 PlatformBdsDiagnostics (
124 IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel
,
131 Perform the platform diagnostic, such like test memory. OEM/IBV also
132 can customize this fuction to support specific platform diagnostic.
136 MemoryTestLevel - The memory test intensive level
138 QuietBoot - Indicate if need to enable the quiet boot
150 PlatformBdsPolicyBehavior (
151 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
,
152 IN OUT LIST_ENTRY
*DriverOptionList
,
153 IN OUT LIST_ENTRY
*BootOptionList
159 The function will excute with as the platform policy, current policy
160 is driven by boot mode. IBV/OEM can customize this code for their specific
165 PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance
167 DriverOptionList - The header of the driver option link list
169 BootOptionList - The header of the boot option link list
181 PlatformBdsBootSuccess (
182 IN BDS_COMMON_OPTION
*Option
188 Hook point after a boot attempt succeeds. We don't expect a boot option to
189 return, so the EFI 1.0 specification defines that you will default to an
190 interactive mode and stop processing the BootOrder list in this case. This
191 is alos a platform implementation and can be customized by IBV/OEM.
195 Option - Pointer to Boot Option that succeeded to boot.
207 PlatformBdsBootFail (
208 IN BDS_COMMON_OPTION
*Option
,
209 IN EFI_STATUS Status
,
211 IN UINTN ExitDataSize
217 Hook point after a boot attempt fails.
221 Option - Pointer to Boot Option that failed to boot.
223 Status - Status returned from failed boot.
225 ExitData - Exit data returned from failed boot.
227 ExitDataSize - Exit data size returned from failed boot.
239 PlatformBdsNoConsoleAction (
246 This function is remained for IBV/OEM to do some platform action,
247 if there no console device can be connected.
255 EFI_SUCCESS - Direct return success now.
264 PlatformBdsLockNonUpdatableFlash (