]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/BdsDxe/Bds.h
Clean up BdsDxe for Doxygen comments requirement.
[mirror_edk2.git] / MdeModulePkg / 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 #undef EFI_SPECIFICATION_VERSION
19 #define EFI_SPECIFICATION_VERSION 0x0002000A
20 #include <PiDxe.h>
21 #include <MdeModuleHii.h>
22
23 #include <Guid/FileSystemVolumeLabelInfo.h>
24 #include <Protocol/DevicePath.h>
25 #include <Guid/BootState.h>
26 #include <Guid/DataHubRecords.h>
27 #include <Protocol/LoadFile.h>
28 #include <Protocol/CpuIo.h>
29 #include <Guid/HobList.h>
30 #include <Guid/FileInfo.h>
31 #include <Protocol/HiiConfigRouting.h>
32 #include <Protocol/Bds.h>
33 #include <Protocol/DataHub.h>
34 #include <Protocol/UgaDraw.h>
35 #include <Protocol/BlockIo.h>
36 #include <Guid/GlobalVariable.h>
37 #include <Guid/GenericPlatformVariable.h>
38 #include <Guid/CapsuleVendor.h>
39 #include <Protocol/ConsoleControl.h>
40 #include <Protocol/GenericMemoryTest.h>
41 #include <Protocol/FormBrowser2.h>
42 #include <Protocol/HiiConfigAccess.h>
43 #include <Protocol/GraphicsOutput.h>
44 #include <Protocol/SimpleFileSystem.h>
45 #include <Protocol/HiiDatabase.h>
46 #include <Protocol/HiiString.h>
47 #include <Protocol/SerialIo.h>
48 #include <Protocol/LegacyBios.h>
49 #include <Protocol/SimpleTextInEx.h>
50 #include <Protocol/Performance.h>
51
52 #include <Library/UefiDriverEntryPoint.h>
53 #include <Library/PrintLib.h>
54 #include <Library/DebugLib.h>
55 #include <Library/BaseMemoryLib.h>
56 #include <Library/UefiBootServicesTableLib.h>
57 #include <Library/UefiLib.h>
58 #include <Library/GraphicsLib.h>
59 #include <Library/MemoryAllocationLib.h>
60 #include <Library/DxeServicesTableLib.h>
61 #include <Library/PerformanceLib.h>
62 #include <Library/ReportStatusCodeLib.h>
63 #include <Library/IfrSupportLib.h>
64 #include <Library/ExtendedIfrSupportLib.h>
65 #include <Library/UefiRuntimeServicesTableLib.h>
66 #include <Library/HobLib.h>
67 #include <Library/BaseLib.h>
68 #include <Library/DevicePathLib.h>
69 #include <Library/PcdLib.h>
70 #include <Library/CapsuleLib.h>
71 #include <Library/HiiLib.h>
72 #include <Library/ExtendedHiiLib.h>
73
74
75 #include <Library/GenericBdsLib.h>
76 #include <Library/PlatformBdsLib.h>
77
78 #define EFI_BDS_ARCH_PROTOCOL_INSTANCE_FROM_THIS(_this) \
79 CR (_this, \
80 EFI_BDS_ARCH_PROTOCOL_INSTANCE, \
81 Bds, \
82 EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE \
83 )
84
85 /**
86
87 Show progress bar with title above it. It only works in Graphics mode.
88
89
90 @param TitleForeground Foreground color for Title.
91 @param TitleBackground Background color for Title.
92 @param Title Title above progress bar.
93 @param ProgressColor Progress bar color.
94 @param Progress Progress (0-100)
95 @param PreviousValue The previous value of the progress.
96
97 @retval EFI_STATUS Success update the progress bar
98
99 **/
100 EFI_STATUS
101 PlatformBdsShowProgress (
102 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,
103 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,
104 IN CHAR16 *Title,
105 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,
106 IN UINTN Progress,
107 IN UINTN PreviousValue
108 );
109
110 //
111 // Prototypes
112 //
113
114 /**
115
116 Install Boot Device Selection Protocol
117
118
119 @param ImageHandle The image handle.
120 @param SystemTable The system table.
121
122 @retval EFI_SUCEESS BDS has finished initializing.
123 Rerun the
124 dispatcher and recall BDS.Entry
125 @retval Other Return value from AllocatePool()
126 or gBS->InstallProtocolInterface
127
128 **/
129 EFI_STATUS
130 EFIAPI
131 BdsInitialize (
132 IN EFI_HANDLE ImageHandle,
133 IN EFI_SYSTEM_TABLE *SystemTable
134 );
135
136 /**
137
138 Service routine for BdsInstance->Entry(). Devices are connected, the
139 consoles are initialized, and the boot options are tried.
140
141
142 @param This - Protocol Instance structure.
143
144 @retval EFI_SUCEESS BDS->Entry has finished executing.
145
146 **/
147 VOID
148 EFIAPI
149 BdsEntry (
150 IN EFI_BDS_ARCH_PROTOCOL *This
151 );
152
153 #endif