]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/BdsDxe/Bds.h
Add debug prompt for showing progress bar.
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / Bds.h
1 /*++
2
3 Copyright (c) 2004 - 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 Bds.h
15
16 Abstract:
17
18 Head file for BDS Architectural Protocol implementation
19
20 Revision History
21
22 --*/
23
24 #ifndef _BDS_MODULE_H_
25 #define _BDS_MODULE_H_
26
27 #undef EFI_SPECIFICATION_VERSION
28 #define EFI_SPECIFICATION_VERSION 0x0002000A
29 #include <PiDxe.h>
30 #include <MdeModuleHii.h>
31
32 #include <Guid/FileSystemVolumeLabelInfo.h>
33 #include <Protocol/DevicePath.h>
34 #include <Guid/BootState.h>
35 #include <Guid/DataHubRecords.h>
36 #include <Protocol/LoadFile.h>
37 #include <Protocol/CpuIo.h>
38 #include <Guid/HobList.h>
39 #include <Guid/FileInfo.h>
40 #include <Protocol/HiiConfigRouting.h>
41 #include <Protocol/Bds.h>
42 #include <Protocol/DataHub.h>
43 #include <Protocol/UgaDraw.h>
44 #include <Protocol/BlockIo.h>
45 #include <Guid/GlobalVariable.h>
46 #include <Guid/GenericPlatformVariable.h>
47 #include <Guid/CapsuleVendor.h>
48 #include <Protocol/ConsoleControl.h>
49 #include <Protocol/GenericMemoryTest.h>
50 #include <Protocol/FormBrowser2.h>
51 #include <Protocol/HiiConfigAccess.h>
52 #include <Protocol/GraphicsOutput.h>
53 #include <Protocol/SimpleFileSystem.h>
54 #include <Protocol/HiiDatabase.h>
55 #include <Protocol/HiiString.h>
56 #include <Protocol/SerialIo.h>
57 #include <Protocol/LegacyBios.h>
58 #include <Protocol/SimpleTextInEx.h>
59 #include <Protocol/Performance.h>
60
61 #include <Library/UefiDriverEntryPoint.h>
62 #include <Library/PrintLib.h>
63 #include <Library/DebugLib.h>
64 #include <Library/BaseMemoryLib.h>
65 #include <Library/UefiBootServicesTableLib.h>
66 #include <Library/UefiLib.h>
67 #include <Library/GraphicsLib.h>
68 #include <Library/MemoryAllocationLib.h>
69 #include <Library/DxeServicesTableLib.h>
70 #include <Library/PerformanceLib.h>
71 #include <Library/ReportStatusCodeLib.h>
72 #include <Library/IfrSupportLib.h>
73 #include <Library/ExtendedIfrSupportLib.h>
74 #include <Library/UefiRuntimeServicesTableLib.h>
75 #include <Library/HobLib.h>
76 #include <Library/BaseLib.h>
77 #include <Library/DevicePathLib.h>
78 #include <Library/PcdLib.h>
79 #include <Library/CapsuleLib.h>
80 #include <Library/HiiLib.h>
81 #include <Library/ExtendedHiiLib.h>
82
83
84 #include <Library/GenericBdsLib.h>
85 #include <Library/PlatformBdsLib.h>
86
87 #define EFI_BDS_ARCH_PROTOCOL_INSTANCE_FROM_THIS(_this) \
88 CR (_this, \
89 EFI_BDS_ARCH_PROTOCOL_INSTANCE, \
90 Bds, \
91 EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE \
92 )
93
94 EFI_STATUS
95 PlatformBdsShowProgress (
96 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,
97 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,
98 IN CHAR16 *Title,
99 IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,
100 IN UINTN Progress,
101 IN UINTN PreviousValue
102 );
103
104 //
105 // Prototypes
106 //
107 EFI_STATUS
108 EFIAPI
109 BdsInitialize (
110 IN EFI_HANDLE ImageHandle,
111 IN EFI_SYSTEM_TABLE *SystemTable
112 );
113
114 VOID
115 EFIAPI
116 BdsEntry (
117 IN EFI_BDS_ARCH_PROTOCOL *This
118 );
119
120 #endif