2 This file include all platform action which can be customized by IBV/OEM.
4 Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "BdsPlatform.h"
12 // BDS Platform Functions
15 Platform Bds init. Include the platform firmware vendor, revision
28 Connect the predefined platform default console device. Always try to find
29 and enable the vga device if have.
31 @param PlatformConsole Predefined platform default console device array.
33 @retval EFI_SUCCESS Success connect at least one ConIn and ConOut
34 device, there must have one ConOut device is
36 @return Return the status of BdsLibConnectAllDefaultConsoles ()
40 PlatformBdsConnectConsole (
41 IN BDS_CONSOLE_CONNECT_ENTRY
*PlatformConsole
48 Connect with predefined platform connect sequence,
49 the OEM/IBV can customize with their own connect sequence.
52 PlatformBdsConnectSequence (
59 Load the predefined driver option, OEM/IBV can customize this
60 to load their own drivers
62 @param BdsDriverLists - The header of the driver option link list.
66 PlatformBdsGetDriverOption (
67 IN OUT LIST_ENTRY
*BdsDriverLists
73 Perform the platform diagnostic, such like test memory. OEM/IBV also
74 can customize this function to support specific platform diagnostic.
76 @param MemoryTestLevel The memory test intensive level
77 @param QuietBoot Indicate if need to enable the quiet boot
78 @param BaseMemoryTest A pointer to BdsMemoryTest()
82 PlatformBdsDiagnostics (
83 IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel
,
85 IN BASEM_MEMORY_TEST BaseMemoryTest
91 The function will execute with as the platform policy, current policy
92 is driven by boot mode. IBV/OEM can customize this code for their specific
95 @param DriverOptionList The header of the driver option link list
96 @param BootOptionList The header of the boot option link list
97 @param ProcessCapsules A pointer to ProcessCapsules()
98 @param BaseMemoryTest A pointer to BaseMemoryTest()
103 PlatformBdsPolicyBehavior (
104 IN LIST_ENTRY
*DriverOptionList
,
105 IN LIST_ENTRY
*BootOptionList
,
106 IN PROCESS_CAPSULES ProcessCapsules
,
107 IN BASEM_MEMORY_TEST BaseMemoryTest
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 locks platform flash that is not allowed to be updated during normal boot path.
151 The flash layout is platform specific.
155 PlatformBdsLockNonUpdatableFlash (
164 Lock the ConsoleIn device in system table. All key
165 presses will be ignored until the Password is typed in. The only way to
166 disable the password is to type it in to a ConIn device.
168 @param Password Password used to lock ConIn device.
170 @retval EFI_SUCCESS lock the Console In Spliter virtual handle successfully.
171 @retval EFI_UNSUPPORTED Password not found
180 return EFI_UNSUPPORTED
;