]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Universal/BdsDxe/Bds.h
1. PI SMBIOS Checkin. Major change include:
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / Bds.h
CommitLineData
5c08e117 1/** @file\r
2 Head file for BDS Architectural Protocol implementation\r
3\r
33bb6326 4Copyright (c) 2004 - 2009, Intel Corporation. <BR>\r
5c08e117 5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _BDS_MODULE_H_\r
16#define _BDS_MODULE_H_\r
17\r
79bc7a89 18#include <FrameworkDxe.h>\r
67d63227 19#include <IndustryStandard/PeImage.h>\r
a2ded1d6 20#include <Guid/MdeModuleHii.h>\r
5c08e117 21#include <Guid/FileSystemVolumeLabelInfo.h>\r
22#include <Protocol/DevicePath.h>\r
6cfbf7ad 23#include <IndustryStandard/SmBios.h>\r
5c08e117 24#include <Protocol/LoadFile.h>\r
25#include <Protocol/CpuIo.h>\r
26#include <Guid/FileInfo.h>\r
27#include <Protocol/HiiConfigRouting.h>\r
28#include <Protocol/Bds.h>\r
6cfbf7ad 29#include <Protocol/Smbios.h>\r
5c08e117 30#include <Protocol/UgaDraw.h>\r
31#include <Protocol/BlockIo.h>\r
32#include <Guid/GlobalVariable.h>\r
5c08e117 33#include <Guid/CapsuleVendor.h>\r
55e1864e 34#include <Guid/StatusCodeDataTypeId.h>\r
5c08e117 35#include <Protocol/GenericMemoryTest.h>\r
36#include <Protocol/FormBrowser2.h>\r
37#include <Protocol/HiiConfigAccess.h>\r
38#include <Protocol/GraphicsOutput.h>\r
39#include <Protocol/SimpleFileSystem.h>\r
40#include <Protocol/HiiDatabase.h>\r
41#include <Protocol/HiiString.h>\r
42#include <Protocol/SerialIo.h>\r
43#include <Protocol/LegacyBios.h>\r
44#include <Protocol/SimpleTextInEx.h>\r
5c08e117 45\r
46#include <Library/UefiDriverEntryPoint.h>\r
47#include <Library/PrintLib.h>\r
48#include <Library/DebugLib.h>\r
49#include <Library/BaseMemoryLib.h>\r
50#include <Library/UefiBootServicesTableLib.h>\r
51#include <Library/UefiLib.h>\r
52#include <Library/MemoryAllocationLib.h>\r
53#include <Library/PerformanceLib.h>\r
54#include <Library/ReportStatusCodeLib.h>\r
5c08e117 55#include <Library/UefiRuntimeServicesTableLib.h>\r
56#include <Library/HobLib.h>\r
57#include <Library/BaseLib.h>\r
58#include <Library/DevicePathLib.h>\r
59#include <Library/PcdLib.h>\r
60#include <Library/CapsuleLib.h>\r
61#include <Library/HiiLib.h>\r
f6f910dd 62#include <Library/DevicePathLib.h>\r
8c81cb83 63#include <Library/PcdLib.h>\r
33bb6326 64#include <Library/UefiHiiServicesLib.h>\r
5c08e117 65\r
66#include <Library/GenericBdsLib.h>\r
67#include <Library/PlatformBdsLib.h>\r
68\r
f6f910dd 69#pragma pack(1)\r
70\r
71///\r
72/// HII specific Vendor Device Path definition.\r
73///\r
74typedef struct {\r
75 VENDOR_DEVICE_PATH VendorDevicePath;\r
76 EFI_DEVICE_PATH_PROTOCOL End;\r
77} HII_VENDOR_DEVICE_PATH;\r
78\r
79#pragma pack()\r
80\r
5c08e117 81/**\r
82\r
83 Show progress bar with title above it. It only works in Graphics mode.\r
84\r
85 @param TitleForeground Foreground color for Title.\r
86 @param TitleBackground Background color for Title.\r
87 @param Title Title above progress bar.\r
88 @param ProgressColor Progress bar color.\r
89 @param Progress Progress (0-100)\r
90 @param PreviousValue The previous value of the progress.\r
91\r
92 @retval EFI_STATUS Success update the progress bar\r
93\r
94**/\r
95EFI_STATUS\r
96PlatformBdsShowProgress (\r
97 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,\r
98 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,\r
99 IN CHAR16 *Title,\r
100 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,\r
101 IN UINTN Progress,\r
102 IN UINTN PreviousValue\r
103 );\r
104\r
105//\r
106// Prototypes\r
107//\r
108\r
109/**\r
110\r
111 Install Boot Device Selection Protocol\r
112\r
113 @param ImageHandle The image handle.\r
114 @param SystemTable The system table.\r
115\r
116 @retval EFI_SUCEESS BDS has finished initializing.\r
117 Return the dispatcher and recall BDS.Entry\r
118 @retval Other Return status from AllocatePool() or gBS->InstallProtocolInterface\r
119\r
120**/\r
121EFI_STATUS\r
122EFIAPI\r
123BdsInitialize (\r
124 IN EFI_HANDLE ImageHandle,\r
125 IN EFI_SYSTEM_TABLE *SystemTable\r
126 );\r
127\r
128/**\r
129\r
130 Service routine for BdsInstance->Entry(). Devices are connected, the\r
131 consoles are initialized, and the boot options are tried.\r
132\r
133 @param This Protocol Instance structure.\r
134\r
135**/\r
136VOID\r
137EFIAPI\r
138BdsEntry (\r
139 IN EFI_BDS_ARCH_PROTOCOL *This\r
140 );\r
141\r
19bf20e1
LG
142\r
143/**\r
144 Perform the memory test base on the memory test intensive level,\r
145 and update the memory resource.\r
146\r
147 @param Level The memory test intensive level.\r
148\r
149 @retval EFI_STATUS Success test all the system memory and update\r
150 the memory resource\r
151\r
152**/\r
153EFI_STATUS\r
154BdsMemoryTest (\r
155 IN EXTENDMEM_COVERAGE_LEVEL Level\r
156 );\r
157\r
158/**\r
159\r
160 This routine is called to see if there are any capsules we need to process.\r
161 If the boot mode is not UPDATE, then we do nothing. Otherwise find the\r
162 capsule HOBS and produce firmware volumes for them via the DXE service.\r
163 Then call the dispatcher to dispatch drivers from them. Finally, check\r
164 the status of the updates.\r
165\r
166 This function should be called by BDS in case we need to do some\r
167 sort of processing even if there is no capsule to process. We\r
168 need to do this if an earlier update went away and we need to\r
169 clear the capsule variable so on the next reset PEI does not see it and\r
170 think there is a capsule available.\r
171\r
172 @param BootMode the current boot mode\r
173\r
174 @retval EFI_INVALID_PARAMETER boot mode is not correct for an update\r
175 @retval EFI_SUCCESS There is no error when processing capsule\r
176\r
177**/\r
178EFI_STATUS\r
179BdsProcessCapsules (\r
180 EFI_BOOT_MODE BootMode\r
181 );\r
182\r
5c08e117 183#endif\r