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