]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Universal/BdsDxe/Bds.h
Retire Extended HII library class.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / Bds.h
CommitLineData
5c08e117 1/** @file\r
2 Head file for BDS Architectural Protocol implementation\r
3\r
4Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
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
18#include <PiDxe.h>\r
5c08e117 19\r
a2ded1d6 20#include <Guid/MdeModuleHii.h>\r
5c08e117 21#include <Guid/FileSystemVolumeLabelInfo.h>\r
22#include <Protocol/DevicePath.h>\r
5c08e117 23#include <Guid/DataHubRecords.h>\r
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
29#include <Protocol/DataHub.h>\r
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
5c08e117 34#include <Protocol/GenericMemoryTest.h>\r
35#include <Protocol/FormBrowser2.h>\r
36#include <Protocol/HiiConfigAccess.h>\r
37#include <Protocol/GraphicsOutput.h>\r
38#include <Protocol/SimpleFileSystem.h>\r
39#include <Protocol/HiiDatabase.h>\r
40#include <Protocol/HiiString.h>\r
41#include <Protocol/SerialIo.h>\r
42#include <Protocol/LegacyBios.h>\r
43#include <Protocol/SimpleTextInEx.h>\r
5c08e117 44\r
45#include <Library/UefiDriverEntryPoint.h>\r
46#include <Library/PrintLib.h>\r
47#include <Library/DebugLib.h>\r
48#include <Library/BaseMemoryLib.h>\r
49#include <Library/UefiBootServicesTableLib.h>\r
50#include <Library/UefiLib.h>\r
51#include <Library/MemoryAllocationLib.h>\r
52#include <Library/PerformanceLib.h>\r
53#include <Library/ReportStatusCodeLib.h>\r
54#include <Library/IfrSupportLib.h>\r
55#include <Library/ExtendedIfrSupportLib.h>\r
56#include <Library/UefiRuntimeServicesTableLib.h>\r
57#include <Library/HobLib.h>\r
58#include <Library/BaseLib.h>\r
59#include <Library/DevicePathLib.h>\r
60#include <Library/PcdLib.h>\r
61#include <Library/CapsuleLib.h>\r
62#include <Library/HiiLib.h>\r
f6f910dd 63#include <Library/DevicePathLib.h>\r
8c81cb83 64#include <Library/PcdLib.h>\r
5c08e117 65\r
66#include <Library/GenericBdsLib.h>\r
67#include <Library/PlatformBdsLib.h>\r
68\r
69#define EFI_BDS_ARCH_PROTOCOL_INSTANCE_FROM_THIS(_this) \\r
70 CR ((_this), \\r
71 EFI_BDS_ARCH_PROTOCOL_INSTANCE, \\r
72 Bds, \\r
73 EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE \\r
74 )\r
75\r
f6f910dd 76#pragma pack(1)\r
77\r
78///\r
79/// HII specific Vendor Device Path definition.\r
80///\r
81typedef struct {\r
82 VENDOR_DEVICE_PATH VendorDevicePath;\r
83 EFI_DEVICE_PATH_PROTOCOL End;\r
84} HII_VENDOR_DEVICE_PATH;\r
85\r
86#pragma pack()\r
87\r
5c08e117 88/**\r
89\r
90 Show progress bar with title above it. It only works in Graphics mode.\r
91\r
92 @param TitleForeground Foreground color for Title.\r
93 @param TitleBackground Background color for Title.\r
94 @param Title Title above progress bar.\r
95 @param ProgressColor Progress bar color.\r
96 @param Progress Progress (0-100)\r
97 @param PreviousValue The previous value of the progress.\r
98\r
99 @retval EFI_STATUS Success update the progress bar\r
100\r
101**/\r
102EFI_STATUS\r
103PlatformBdsShowProgress (\r
104 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,\r
105 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,\r
106 IN CHAR16 *Title,\r
107 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,\r
108 IN UINTN Progress,\r
109 IN UINTN PreviousValue\r
110 );\r
111\r
112//\r
113// Prototypes\r
114//\r
115\r
116/**\r
117\r
118 Install Boot Device Selection Protocol\r
119\r
120 @param ImageHandle The image handle.\r
121 @param SystemTable The system table.\r
122\r
123 @retval EFI_SUCEESS BDS has finished initializing.\r
124 Return the dispatcher and recall BDS.Entry\r
125 @retval Other Return status from AllocatePool() or gBS->InstallProtocolInterface\r
126\r
127**/\r
128EFI_STATUS\r
129EFIAPI\r
130BdsInitialize (\r
131 IN EFI_HANDLE ImageHandle,\r
132 IN EFI_SYSTEM_TABLE *SystemTable\r
133 );\r
134\r
135/**\r
136\r
137 Service routine for BdsInstance->Entry(). Devices are connected, the\r
138 consoles are initialized, and the boot options are tried.\r
139\r
140 @param This Protocol Instance structure.\r
141\r
142**/\r
143VOID\r
144EFIAPI\r
145BdsEntry (\r
146 IN EFI_BDS_ARCH_PROTOCOL *This\r
147 );\r
148\r
149#endif\r