]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/BdsDxe/Bds.h
Fix issue from code scrub.
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / Bds.h
index d5a25d507e3a0603735d6815404a9e41a2d1ef05..56b709ecca94a10ec77fa1e7a40e08ffe0b5f258 100644 (file)
@@ -15,8 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef _BDS_MODULE_H_\r
 #define _BDS_MODULE_H_\r
 \r
-#undef EFI_SPECIFICATION_VERSION\r
-#define EFI_SPECIFICATION_VERSION 0x0002000A\r
 #include <PiDxe.h>\r
 #include <MdeModuleHii.h>\r
 \r
@@ -26,7 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Guid/DataHubRecords.h>\r
 #include <Protocol/LoadFile.h>\r
 #include <Protocol/CpuIo.h>\r
-#include <Guid/HobList.h>\r
 #include <Guid/FileInfo.h>\r
 #include <Protocol/HiiConfigRouting.h>\r
 #include <Protocol/Bds.h>\r
@@ -55,9 +52,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/UefiLib.h>\r
-#include <Library/GraphicsLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
-#include <Library/DxeServicesTableLib.h>\r
 #include <Library/PerformanceLib.h>\r
 #include <Library/ReportStatusCodeLib.h>\r
 #include <Library/IfrSupportLib.h>\r
@@ -76,12 +71,26 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/PlatformBdsLib.h>\r
 \r
 #define EFI_BDS_ARCH_PROTOCOL_INSTANCE_FROM_THIS(_this) \\r
-  CR (_this, \\r
-      EFI_BDS_ARCH_PROTOCOL_INSTANCE, \\r
-      Bds, \\r
-      EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE \\r
+  CR ((_this),                                          \\r
+      EFI_BDS_ARCH_PROTOCOL_INSTANCE,                   \\r
+      Bds,                                              \\r
+      EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE          \\r
       )\r
 \r
+/**\r
+\r
+  Show progress bar with title above it. It only works in Graphics mode.\r
+\r
+  @param TitleForeground Foreground color for Title.\r
+  @param TitleBackground Background color for Title.\r
+  @param Title           Title above progress bar.\r
+  @param ProgressColor   Progress bar color.\r
+  @param Progress        Progress (0-100)\r
+  @param PreviousValue   The previous value of the progress.\r
+\r
+  @retval  EFI_STATUS       Success update the progress bar\r
+\r
+**/\r
 EFI_STATUS\r
 PlatformBdsShowProgress (\r
   IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,\r
@@ -100,15 +109,12 @@ PlatformBdsShowProgress (
 \r
   Install Boot Device Selection Protocol\r
 \r
-\r
   @param ImageHandle     The image handle.\r
   @param SystemTable     The system table.\r
 \r
   @retval  EFI_SUCEESS  BDS has finished initializing.\r
-                        Rerun the\r
-                        dispatcher and recall BDS.Entry\r
-  @retval  Other        Return value from AllocatePool()\r
-                        or gBS->InstallProtocolInterface\r
+                        Return the dispatcher and recall BDS.Entry\r
+  @retval  Other        Return status from AllocatePool() or gBS->InstallProtocolInterface\r
 \r
 **/\r
 EFI_STATUS\r
@@ -123,10 +129,7 @@ BdsInitialize (
   Service routine for BdsInstance->Entry(). Devices are connected, the\r
   consoles are initialized, and the boot options are tried.\r
 \r
-\r
-  @param This            - Protocol Instance structure.\r
-\r
-  @retval  EFI_SUCEESS  BDS->Entry has finished executing.\r
+  @param This            Protocol Instance structure.\r
 \r
 **/\r
 VOID\r