]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Library/PlatformBdsLibNull/BdsPlatform.c
9173004af4d62f4798caa04bcf004849a824acbd
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / PlatformBdsLibNull / BdsPlatform.c
1 /** @file
2 This file include all platform action which can be customized by IBV/OEM.
3
4 Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include "BdsPlatform.h"
10
11 //
12 // BDS Platform Functions
13 //
14 /**
15 Platform Bds init. Include the platform firmware vendor, revision
16 and so crc check.
17
18 **/
19 VOID
20 EFIAPI
21 PlatformBdsInit (
22 VOID
23 )
24 {
25 }
26
27 /**
28 Connect the predefined platform default console device. Always try to find
29 and enable the vga device if have.
30
31 @param PlatformConsole Predefined platform default console device array.
32
33 @retval EFI_SUCCESS Success connect at least one ConIn and ConOut
34 device, there must have one ConOut device is
35 active vga device.
36 @return Return the status of BdsLibConnectAllDefaultConsoles ()
37
38 **/
39 EFI_STATUS
40 PlatformBdsConnectConsole (
41 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
42 )
43 {
44 return EFI_SUCCESS;
45 }
46
47 /**
48 Connect with predefined platform connect sequence,
49 the OEM/IBV can customize with their own connect sequence.
50 **/
51 VOID
52 PlatformBdsConnectSequence (
53 VOID
54 )
55 {
56 }
57
58 /**
59 Load the predefined driver option, OEM/IBV can customize this
60 to load their own drivers
61
62 @param BdsDriverLists - The header of the driver option link list.
63
64 **/
65 VOID
66 PlatformBdsGetDriverOption (
67 IN OUT LIST_ENTRY *BdsDriverLists
68 )
69 {
70 }
71
72 /**
73 Perform the platform diagnostic, such like test memory. OEM/IBV also
74 can customize this function to support specific platform diagnostic.
75
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()
79
80 **/
81 VOID
82 PlatformBdsDiagnostics (
83 IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel,
84 IN BOOLEAN QuietBoot,
85 IN BASEM_MEMORY_TEST BaseMemoryTest
86 )
87 {
88 }
89
90 /**
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
93 policy action.
94
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()
99
100 **/
101 VOID
102 EFIAPI
103 PlatformBdsPolicyBehavior (
104 IN LIST_ENTRY *DriverOptionList,
105 IN LIST_ENTRY *BootOptionList,
106 IN PROCESS_CAPSULES ProcessCapsules,
107 IN BASEM_MEMORY_TEST BaseMemoryTest
108 )
109 {
110 }
111
112 /**
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.
117
118 @param Option Pointer to Boot Option that succeeded to boot.
119
120 **/
121 VOID
122 EFIAPI
123 PlatformBdsBootSuccess (
124 IN BDS_COMMON_OPTION *Option
125 )
126 {
127 }
128
129 /**
130 Hook point after a boot attempt fails.
131
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.
136
137 **/
138 VOID
139 EFIAPI
140 PlatformBdsBootFail (
141 IN BDS_COMMON_OPTION *Option,
142 IN EFI_STATUS Status,
143 IN CHAR16 *ExitData,
144 IN UINTN ExitDataSize
145 )
146 {
147 }
148
149 /**
150 This function locks platform flash that is not allowed to be updated during normal boot path.
151 The flash layout is platform specific.
152 **/
153 VOID
154 EFIAPI
155 PlatformBdsLockNonUpdatableFlash (
156 VOID
157 )
158 {
159 return ;
160 }
161
162
163 /**
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.
167
168 @param Password Password used to lock ConIn device.
169
170 @retval EFI_SUCCESS lock the Console In Spliter virtual handle successfully.
171 @retval EFI_UNSUPPORTED Password not found
172
173 **/
174 EFI_STATUS
175 EFIAPI
176 LockKeyboards (
177 IN CHAR16 *Password
178 )
179 {
180 return EFI_UNSUPPORTED;
181 }