2 This file include all platform action which can be customized by IBV/OEM.
4 Copyright (c) 2004 - 2008, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #include "BdsPlatform.h"
18 // BDS Platform Functions
21 Platform Bds init. Include the platform firmware vendor, revision
34 Connect the predefined platform default console device. Always try to find
35 and enable the vga device if have.
37 @param PlatformConsole Predefined platform default console device array.
39 @retval EFI_SUCCESS Success connect at least one ConIn and ConOut
40 device, there must have one ConOut device is
42 @return Return the status of BdsLibConnectAllDefaultConsoles ()
46 PlatformBdsConnectConsole (
47 IN BDS_CONSOLE_CONNECT_ENTRY
*PlatformConsole
54 Connect with predefined platform connect sequence,
55 the OEM/IBV can customize with their own connect sequence.
58 PlatformBdsConnectSequence (
65 Load the predefined driver option, OEM/IBV can customize this
66 to load their own drivers
68 @param BdsDriverLists - The header of the driver option link list.
72 PlatformBdsGetDriverOption (
73 IN OUT LIST_ENTRY
*BdsDriverLists
79 Perform the platform diagnostic, such like test memory. OEM/IBV also
80 can customize this function to support specific platform diagnostic.
82 @param MemoryTestLevel The memory test intensive level
83 @param QuietBoot Indicate if need to enable the quiet boot
87 PlatformBdsDiagnostics (
88 IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel
,
95 The function will execute with as the platform policy, current policy
96 is driven by boot mode. IBV/OEM can customize this code for their specific
99 @param DriverOptionList The header of the driver option link list
100 @param BootOptionList The header of the boot option link list
105 PlatformBdsPolicyBehavior (
106 IN LIST_ENTRY
*DriverOptionList
,
107 IN LIST_ENTRY
*BootOptionList
113 Hook point after a boot attempt succeeds. We don't expect a boot option to
114 return, so the UEFI 2.0 specification defines that you will default to an
115 interactive mode and stop processing the BootOrder list in this case. This
116 is also a platform implementation and can be customized by IBV/OEM.
118 @param Option Pointer to Boot Option that succeeded to boot.
123 PlatformBdsBootSuccess (
124 IN BDS_COMMON_OPTION
*Option
130 Hook point after a boot attempt fails.
132 @param Option Pointer to Boot Option that failed to boot.
133 @param Status Status returned from failed boot.
134 @param ExitData Exit data returned from failed boot.
135 @param ExitDataSize Exit data size returned from failed boot.
140 PlatformBdsBootFail (
141 IN BDS_COMMON_OPTION
*Option
,
142 IN EFI_STATUS Status
,
144 IN UINTN ExitDataSize
150 This function is remained for IBV/OEM to do some platform action,
151 if there no console device can be connected.
153 @return EFI_SUCCESS Direct return success now.
157 PlatformBdsNoConsoleAction (
165 This function locks platform flash that is not allowed to be updated during normal boot path.
166 The flash layout is platform specific.
170 PlatformBdsLockNonUpdatableFlash (
179 Lock the ConsoleIn device in system table. All key
180 presses will be ignored until the Password is typed in. The only way to
181 disable the password is to type it in to a ConIn device.
183 @param Password Password used to lock ConIn device.
185 @retval EFI_SUCCESS lock the Console In Spliter virtual handle successfully.
186 @retval EFI_UNSUPPORTED Password not found
195 return EFI_UNSUPPORTED
;