]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Universal/BdsDxe/Bds.h
Clean up the private GUID definition in module Level.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / Bds.h
CommitLineData
5c08e117 1/** @file\r
2 Head file for BDS Architectural Protocol implementation\r
3\r
e24fc103 4Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
180a5a35 5This program and the accompanying materials\r
5c08e117 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
ab4da126 22#include <Guid/HiiPlatformSetupFormset.h>\r
5c08e117 23#include <Protocol/DevicePath.h>\r
6cfbf7ad 24#include <IndustryStandard/SmBios.h>\r
5c08e117 25#include <Protocol/LoadFile.h>\r
5c08e117 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
e24fc103
LG
35#include <Guid/LegacyDevOrder.h>\r
36#include <Guid/BdsHii.h>\r
5c08e117 37#include <Protocol/GenericMemoryTest.h>\r
38#include <Protocol/FormBrowser2.h>\r
39#include <Protocol/HiiConfigAccess.h>\r
40#include <Protocol/GraphicsOutput.h>\r
41#include <Protocol/SimpleFileSystem.h>\r
42#include <Protocol/HiiDatabase.h>\r
43#include <Protocol/HiiString.h>\r
44#include <Protocol/SerialIo.h>\r
45#include <Protocol/LegacyBios.h>\r
46#include <Protocol/SimpleTextInEx.h>\r
ab4da126 47#include <Protocol/DriverHealth.h>\r
5c08e117 48\r
49#include <Library/UefiDriverEntryPoint.h>\r
50#include <Library/PrintLib.h>\r
51#include <Library/DebugLib.h>\r
52#include <Library/BaseMemoryLib.h>\r
53#include <Library/UefiBootServicesTableLib.h>\r
54#include <Library/UefiLib.h>\r
55#include <Library/MemoryAllocationLib.h>\r
56#include <Library/PerformanceLib.h>\r
57#include <Library/ReportStatusCodeLib.h>\r
5c08e117 58#include <Library/UefiRuntimeServicesTableLib.h>\r
59#include <Library/HobLib.h>\r
60#include <Library/BaseLib.h>\r
61#include <Library/DevicePathLib.h>\r
62#include <Library/PcdLib.h>\r
63#include <Library/CapsuleLib.h>\r
64#include <Library/HiiLib.h>\r
f6f910dd 65#include <Library/DevicePathLib.h>\r
8c81cb83 66#include <Library/PcdLib.h>\r
33bb6326 67#include <Library/UefiHiiServicesLib.h>\r
5c08e117 68\r
69#include <Library/GenericBdsLib.h>\r
70#include <Library/PlatformBdsLib.h>\r
71\r
f6f910dd 72#pragma pack(1)\r
73\r
74///\r
75/// HII specific Vendor Device Path definition.\r
76///\r
77typedef struct {\r
78 VENDOR_DEVICE_PATH VendorDevicePath;\r
79 EFI_DEVICE_PATH_PROTOCOL End;\r
80} HII_VENDOR_DEVICE_PATH;\r
81\r
82#pragma pack()\r
83\r
5c08e117 84/**\r
85\r
86 Show progress bar with title above it. It only works in Graphics mode.\r
87\r
88 @param TitleForeground Foreground color for Title.\r
89 @param TitleBackground Background color for Title.\r
90 @param Title Title above progress bar.\r
91 @param ProgressColor Progress bar color.\r
92 @param Progress Progress (0-100)\r
93 @param PreviousValue The previous value of the progress.\r
94\r
95 @retval EFI_STATUS Success update the progress bar\r
96\r
97**/\r
98EFI_STATUS\r
99PlatformBdsShowProgress (\r
100 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,\r
101 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,\r
102 IN CHAR16 *Title,\r
103 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,\r
104 IN UINTN Progress,\r
105 IN UINTN PreviousValue\r
106 );\r
107\r
108//\r
109// Prototypes\r
110//\r
111\r
112/**\r
113\r
114 Install Boot Device Selection Protocol\r
115\r
116 @param ImageHandle The image handle.\r
117 @param SystemTable The system table.\r
118\r
119 @retval EFI_SUCEESS BDS has finished initializing.\r
120 Return the dispatcher and recall BDS.Entry\r
121 @retval Other Return status from AllocatePool() or gBS->InstallProtocolInterface\r
122\r
123**/\r
124EFI_STATUS\r
125EFIAPI\r
126BdsInitialize (\r
127 IN EFI_HANDLE ImageHandle,\r
128 IN EFI_SYSTEM_TABLE *SystemTable\r
129 );\r
130\r
131/**\r
132\r
133 Service routine for BdsInstance->Entry(). Devices are connected, the\r
134 consoles are initialized, and the boot options are tried.\r
135\r
136 @param This Protocol Instance structure.\r
137\r
138**/\r
139VOID\r
140EFIAPI\r
141BdsEntry (\r
142 IN EFI_BDS_ARCH_PROTOCOL *This\r
143 );\r
144\r
19bf20e1
LG
145\r
146/**\r
147 Perform the memory test base on the memory test intensive level,\r
148 and update the memory resource.\r
149\r
150 @param Level The memory test intensive level.\r
151\r
152 @retval EFI_STATUS Success test all the system memory and update\r
153 the memory resource\r
154\r
155**/\r
156EFI_STATUS\r
8861fc79 157EFIAPI\r
19bf20e1
LG
158BdsMemoryTest (\r
159 IN EXTENDMEM_COVERAGE_LEVEL Level\r
160 );\r
161\r
162/**\r
163\r
164 This routine is called to see if there are any capsules we need to process.\r
165 If the boot mode is not UPDATE, then we do nothing. Otherwise find the\r
166 capsule HOBS and produce firmware volumes for them via the DXE service.\r
167 Then call the dispatcher to dispatch drivers from them. Finally, check\r
168 the status of the updates.\r
169\r
170 This function should be called by BDS in case we need to do some\r
171 sort of processing even if there is no capsule to process. We\r
172 need to do this if an earlier update went away and we need to\r
173 clear the capsule variable so on the next reset PEI does not see it and\r
174 think there is a capsule available.\r
175\r
176 @param BootMode the current boot mode\r
177\r
178 @retval EFI_INVALID_PARAMETER boot mode is not correct for an update\r
179 @retval EFI_SUCCESS There is no error when processing capsule\r
180\r
181**/\r
182EFI_STATUS\r
8861fc79 183EFIAPI\r
19bf20e1
LG
184BdsProcessCapsules (\r
185 EFI_BOOT_MODE BootMode\r
186 );\r
187\r
5c08e117 188#endif\r