]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Universal/BdsDxe/Bds.h
Retire Extended HII library class.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / Bds.h
1 /** @file
2 Head file for BDS Architectural Protocol implementation
3
4 Copyright (c) 2004 - 2008, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _BDS_MODULE_H_
16 #define _BDS_MODULE_H_
17
18 #include <PiDxe.h>
19
20 #include <Guid/MdeModuleHii.h>
21 #include <Guid/FileSystemVolumeLabelInfo.h>
22 #include <Protocol/DevicePath.h>
23 #include <Guid/DataHubRecords.h>
24 #include <Protocol/LoadFile.h>
25 #include <Protocol/CpuIo.h>
26 #include <Guid/FileInfo.h>
27 #include <Protocol/HiiConfigRouting.h>
28 #include <Protocol/Bds.h>
29 #include <Protocol/DataHub.h>
30 #include <Protocol/UgaDraw.h>
31 #include <Protocol/BlockIo.h>
32 #include <Guid/GlobalVariable.h>
33 #include <Guid/CapsuleVendor.h>
34 #include <Protocol/GenericMemoryTest.h>
35 #include <Protocol/FormBrowser2.h>
36 #include <Protocol/HiiConfigAccess.h>
37 #include <Protocol/GraphicsOutput.h>
38 #include <Protocol/SimpleFileSystem.h>
39 #include <Protocol/HiiDatabase.h>
40 #include <Protocol/HiiString.h>
41 #include <Protocol/SerialIo.h>
42 #include <Protocol/LegacyBios.h>
43 #include <Protocol/SimpleTextInEx.h>
44
45 #include <Library/UefiDriverEntryPoint.h>
46 #include <Library/PrintLib.h>
47 #include <Library/DebugLib.h>
48 #include <Library/BaseMemoryLib.h>
49 #include <Library/UefiBootServicesTableLib.h>
50 #include <Library/UefiLib.h>
51 #include <Library/MemoryAllocationLib.h>
52 #include <Library/PerformanceLib.h>
53 #include <Library/ReportStatusCodeLib.h>
54 #include <Library/IfrSupportLib.h>
55 #include <Library/ExtendedIfrSupportLib.h>
56 #include <Library/UefiRuntimeServicesTableLib.h>
57 #include <Library/HobLib.h>
58 #include <Library/BaseLib.h>
59 #include <Library/DevicePathLib.h>
60 #include <Library/PcdLib.h>
61 #include <Library/CapsuleLib.h>
62 #include <Library/HiiLib.h>
63 #include <Library/DevicePathLib.h>
64 #include <Library/PcdLib.h>
65
66 #include <Library/GenericBdsLib.h>
67 #include <Library/PlatformBdsLib.h>
68
69 #define EFI_BDS_ARCH_PROTOCOL_INSTANCE_FROM_THIS(_this) \
70 CR ((_this), \
71 EFI_BDS_ARCH_PROTOCOL_INSTANCE, \
72 Bds, \
73 EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE \
74 )
75
76 #pragma pack(1)
77
78 ///
79 /// HII specific Vendor Device Path definition.
80 ///
81 typedef struct {
82 VENDOR_DEVICE_PATH VendorDevicePath;
83 EFI_DEVICE_PATH_PROTOCOL End;
84 } HII_VENDOR_DEVICE_PATH;
85
86 #pragma pack()
87
88 /**
89
90 Show progress bar with title above it. It only works in Graphics mode.
91
92 @param TitleForeground Foreground color for Title.
93 @param TitleBackground Background color for Title.
94 @param Title Title above progress bar.
95 @param ProgressColor Progress bar color.
96 @param Progress Progress (0-100)
97 @param PreviousValue The previous value of the progress.
98
99 @retval EFI_STATUS Success update the progress bar
100
101 **/
102 EFI_STATUS
103 PlatformBdsShowProgress (
104 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,
105 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,
106 IN CHAR16 *Title,
107 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,
108 IN UINTN Progress,
109 IN UINTN PreviousValue
110 );
111
112 //
113 // Prototypes
114 //
115
116 /**
117
118 Install Boot Device Selection Protocol
119
120 @param ImageHandle The image handle.
121 @param SystemTable The system table.
122
123 @retval EFI_SUCEESS BDS has finished initializing.
124 Return the dispatcher and recall BDS.Entry
125 @retval Other Return status from AllocatePool() or gBS->InstallProtocolInterface
126
127 **/
128 EFI_STATUS
129 EFIAPI
130 BdsInitialize (
131 IN EFI_HANDLE ImageHandle,
132 IN EFI_SYSTEM_TABLE *SystemTable
133 );
134
135 /**
136
137 Service routine for BdsInstance->Entry(). Devices are connected, the
138 consoles are initialized, and the boot options are tried.
139
140 @param This Protocol Instance structure.
141
142 **/
143 VOID
144 EFIAPI
145 BdsEntry (
146 IN EFI_BDS_ARCH_PROTOCOL *This
147 );
148
149 #endif