]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/Library/DuetBdsLib/BdsPlatform.c
Update the copyright notice format
[mirror_edk2.git] / DuetPkg / Library / DuetBdsLib / BdsPlatform.c
index e9a8be3bd7658402b1ddf1a90b938daefc99abe5..a478efd1cf042f9d0f8015a80db7847465f5ac55 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+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
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -153,12 +153,8 @@ UpdateMemoryMap (
   UINTN                           Index;\r
   EFI_PHYSICAL_ADDRESS            Memory;\r
   EFI_GCD_MEMORY_SPACE_DESCRIPTOR Descriptor;\r
-  //\r
-  // Get Hob List\r
-  //\r
-  GuidHob.Raw = GetHobList();\r
   \r
-  GuidHob.Raw = GetNextGuidHob (&gEfiLdrMemoryDescriptorGuid, GuidHob.Raw);\r
+  GuidHob.Raw = GetFirstGuidHob (&gEfiLdrMemoryDescriptorGuid);\r
   if (GuidHob.Raw == NULL) {\r
     DEBUG ((EFI_D_ERROR, "Fail to get gEfiLdrMemoryDescriptorGuid from GUID HOB LIST!\n"));\r
     return;\r
@@ -336,13 +332,13 @@ Returns:
         if (!EFI_ERROR (Status)) {\r
           if ((PCI_CLASS_SERIAL == Class[2]) &&\r
               (PCI_CLASS_SERIAL_USB == Class[1])) {\r
-            if (PCI_CLASSC_PI_UHCI == Class[0]) {\r
+            if (PCI_IF_UHCI == Class[0]) {\r
               //\r
               // Found the UHCI, then disable the legacy support\r
               //\r
               Command = 0;\r
               Status = PciIo->Pci.Write (PciIo, EfiPciIoWidthUint16, 0xC0, 1, &Command);\r
-            } else if (PCI_CLASSC_PI_EHCI == Class[0]) {\r
+            } else if (PCI_IF_EHCI == Class[0]) {\r
               //\r
               // Found the EHCI, then disable the legacy support\r
               //\r
@@ -1178,11 +1174,8 @@ Returns:
   EFI_STATUS                         Status;\r
   UINT16                             Timeout;\r
   EFI_EVENT                          UserInputDurationTime;\r
-  LIST_ENTRY                         *Link;\r
-  BDS_COMMON_OPTION                  *BootOption;\r
   UINTN                              Index;\r
   EFI_INPUT_KEY                      Key;\r
-  EFI_TPL                            OldTpl;\r
   EFI_BOOT_MODE                      BootMode;\r
 \r
   //\r
@@ -1275,36 +1268,11 @@ Returns:
   //\r
   // To give the User a chance to enter Setup here, if user set TimeOut is 0.\r
   // BDS should still give user a chance to enter Setup\r
-  //\r
-  // Connect first boot option, and then check user input before exit \r
-  //\r
-  for (Link = BootOptionList->ForwardLink; Link != BootOptionList;Link = Link->ForwardLink) {\r
-    BootOption = CR (Link, BDS_COMMON_OPTION, Link, BDS_LOAD_OPTION_SIGNATURE);\r
-    if (!IS_LOAD_OPTION_TYPE (BootOption->Attribute, LOAD_OPTION_ACTIVE)) {\r
-      //\r
-      // skip the header of the link list, becuase it has no boot option\r
-      //\r
-      continue;\r
-    } else {\r
-      //\r
-      // Make sure the boot option device path connected, but ignore the BBS device path\r
-      //\r
-      if (DevicePathType (BootOption->DevicePath) != BBS_DEVICE_PATH) {\r
-        BdsLibConnectDevicePath (BootOption->DevicePath);\r
-      }     \r
-      break;           \r
-    }\r
-  }       \r
-\r
-  //\r
   // Check whether the user input after the duration time has expired \r
   //\r
-  OldTpl = EfiGetCurrentTpl();\r
-  gBS->RestoreTPL (TPL_APPLICATION); \r
   gBS->WaitForEvent (1, &UserInputDurationTime, &Index);\r
   gBS->CloseEvent (UserInputDurationTime);\r
   Status = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);\r
-  gBS->RaiseTPL (OldTpl);  \r
   \r
   if (!EFI_ERROR (Status)) {\r
     //\r