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