]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkUnixPkg/Dxe/PlatformBds/BdsPlatform.c
Remove some unnecessary #if/#ifdef from some header files.
[mirror_edk2.git] / EdkUnixPkg / Dxe / PlatformBds / BdsPlatform.c
index d1edef3d7ed9cadfda0d91af70c12977e071c099..39a24d28814013aef63831af1c256f00966ad940 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
+Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -20,11 +20,7 @@ Abstract:
 \r
 --*/\r
 \r
-#include "Generic/Bds.h"\r
 #include "BdsPlatform.h"\r
-#include "Generic/String.h"\r
-#include "Generic/Language.h"\r
-#include "Generic/FrontPage.h"\r
 \r
 CHAR16  mFirmwareVendor[] = L"TianoCore.org";\r
 \r
@@ -68,13 +64,6 @@ Returns:
   //\r
   gBS->CalculateCrc32 ((VOID *) gST, sizeof (EFI_SYSTEM_TABLE), &gST->Hdr.CRC32);\r
 \r
-  //\r
-  // Initialize the platform specific string and language\r
-  //\r
-  InitializeStringSupport ();\r
-  InitializeLanguage (TRUE);\r
-  InitializeFrontPage (FALSE);\r
-\r
 }\r
 \r
 EFI_STATUS\r
@@ -254,7 +243,7 @@ Returns:
   // from the graphic lib\r
   //\r
   if (QuietBoot) {\r
-    EnableQuietBoot (&gEfiUgaSplashProtocolGuid);\r
+    EnableQuietBoot (&gEfiDefaultBmpLogoGuid);\r
     //\r
     // Perform system diagnostic\r
     //\r
@@ -315,7 +304,7 @@ Returns:
   //\r
   // Get current Boot Mode\r
   //\r
-  Status = BdsLibGetBootMode (&PrivateData->BootMode);\r
+  PrivateData->BootMode = GetBootModeHob();\r
 \r
   //\r
   // Go the different platform policy with different boot mode\r
@@ -413,85 +402,6 @@ Returns:
 \r
 }\r
 \r
-VOID\r
-PlatformBdsBootSuccess (\r
-  IN  BDS_COMMON_OPTION *Option\r
-  )\r
-/*++\r
-\r
-Routine Description:\r
-  \r
-  Hook point after a boot attempt succeeds. We don't expect a boot option to\r
-  return, so the EFI 1.0 specification defines that you will default to an\r
-  interactive mode and stop processing the BootOrder list in this case. This\r
-  is alos a platform implementation and can be customized by IBV/OEM.\r
-\r
-Arguments:\r
-\r
-  Option - Pointer to Boot Option that succeeded to boot.\r
-\r
-Returns:\r
-  \r
-  None.\r
-\r
---*/\r
-{\r
-  CHAR16  *TmpStr;\r
-\r
-  //\r
-  // If Boot returned with EFI_SUCCESS and there is not in the boot device\r
-  // select loop then we need to pop up a UI and wait for user input.\r
-  //\r
-  TmpStr = GetStringById (STRING_TOKEN (STR_BOOT_SUCCEEDED));\r
-  if (TmpStr != NULL) {\r
-    BdsLibOutputStrings (gST->ConOut, TmpStr, Option->Description, L"\n\r", NULL);\r
-    gBS->FreePool (TmpStr);\r
-  }\r
-}\r
-\r
-VOID\r
-PlatformBdsBootFail (\r
-  IN  BDS_COMMON_OPTION  *Option,\r
-  IN  EFI_STATUS         Status,\r
-  IN  CHAR16             *ExitData,\r
-  IN  UINTN              ExitDataSize\r
-  )\r
-/*++\r
-\r
-Routine Description:\r
-  \r
-  Hook point after a boot attempt fails.\r
-\r
-Arguments:\r
-  \r
-  Option - Pointer to Boot Option that failed to boot.\r
-\r
-  Status - Status returned from failed boot.\r
-\r
-  ExitData - Exit data returned from failed boot.\r
-\r
-  ExitDataSize - Exit data size returned from failed boot.\r
-\r
-Returns:\r
-  \r
-  None.\r
-\r
---*/\r
-{\r
-  CHAR16  *TmpStr;\r
-\r
-  //\r
-  // If Boot returned with failed status then we need to pop up a UI and wait\r
-  // for user input.\r
-  //\r
-  TmpStr = GetStringById (STRING_TOKEN (STR_BOOT_FAILED));\r
-  if (TmpStr != NULL) {\r
-    BdsLibOutputStrings (gST->ConOut, TmpStr, Option->Description, L"\n\r", NULL);\r
-    gBS->FreePool (TmpStr);\r
-  }\r
-\r
-}\r
-\r
 EFI_STATUS\r
 PlatformBdsNoConsoleAction (\r
   VOID\r