VirtualBox

Ignore:
Timestamp:
Oct 28, 2015 8:17:18 PM (9 years ago)
Author:
vboxsync
Message:

EFI/Firmware: 'svn merge /vendor/edk2/UDK2010.SR1 /vendor/edk2/current .', reverting and removing files+dirs listed in ReadMe.vbox, resolving conflicts with help from ../UDK2014.SP1/. This is a raw untested merge.

Location:
trunk/src/VBox/Devices/EFI/Firmware
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware

  • trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c

    r48674 r58459  
    22  Internal library implementation for PCI Bus module.
    33
    4 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
     4Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
    55This program and the accompanying materials
    66are licensed and made available under the terms and conditions of the BSD License
     
    183183  if ((BridgeResource != NULL) && (BridgeResource->Length != 0)) {
    184184    DEBUG ((
    185       EFI_D_INFO, "Type = %s; Base = 0x%x;\tLength = 0x%x;\tAlignment = 0x%x\n",
     185      EFI_D_INFO, "Type = %s; Base = 0x%lx;\tLength = 0x%lx;\tAlignment = 0x%lx\n",
    186186      mBarTypeStr[MIN (BridgeResource->ResType, PciBarTypeMaxType)],
    187187      BridgeResource->PciDev->PciBar[BridgeResource->Bar].BaseAddress,
     
    196196        Bar = Resource->Virtual ? Resource->PciDev->VfPciBar : Resource->PciDev->PciBar;
    197197        DEBUG ((
    198           EFI_D_INFO, " Base = 0x%x;\tLength = 0x%x;\tAlignment = 0x%x;\tOwner = %s ",
     198          EFI_D_INFO, " Base = 0x%lx;\tLength = 0x%lx;\tAlignment = 0x%lx;\tOwner = %s ",
    199199          Bar[Resource->Bar].BaseAddress, Resource->Length, Resource->Alignment,
    200200          IS_PCI_BRIDGE (&Resource->PciDev->Pci)     ? L"PPB" :
     
    226226        }
    227227      } else {
    228         DEBUG ((EFI_D_INFO, " Padding:Length = 0x%x;\tAlignment = 0x%x\n", Resource->Length, Resource->Alignment));
     228        DEBUG ((EFI_D_INFO, " Padding:Length = 0x%lx;\tAlignment = 0x%lx\n", Resource->Length, Resource->Alignment));
    229229      }
    230230    }
     
    291291  PCI_RESOURCE_NODE                *ChildMem64Node;
    292292  PCI_RESOURCE_NODE                *ChildPMem64Node;
    293   EFI_DEVICE_PATH_TO_TEXT_PROTOCOL *ToText;
    294293  CHAR16                           *Str;
    295294
     
    310309      ));
    311310  } else {
    312     Status = gBS->LocateProtocol (
    313                     &gEfiDevicePathToTextProtocolGuid,
    314                     NULL,
    315                     (VOID **) &ToText
    316                     );
    317     Str = NULL;
    318     if (!EFI_ERROR (Status)) {
    319       Str = ToText->ConvertDevicePathToText (
    320                       DevicePathFromHandle (Bridge->Handle),
    321                       FALSE,
    322                       FALSE
    323                       );
    324     }
     311    Str = ConvertDevicePathToText (
     312            DevicePathFromHandle (Bridge->Handle),
     313            FALSE,
     314            FALSE
     315            );
    325316    DEBUG ((EFI_D_INFO, "Root Bridge %s\n", Str != NULL ? Str : L""));
    326317    if (Str != NULL) {
     
    569560                                AcpiConfig
    570561                                );
     562        //
     563        // If SubmitResources returns error, PciBus isn't able to start.
     564        // It's a fatal error so assertion is added.
     565        //
     566        DEBUG ((EFI_D_INFO, "PciBus: HostBridge->SubmitResources() - %r\n", Status));
     567        ASSERT_EFI_ERROR (Status);
    571568      }
    572569
     
    599596    //
    600597    Status = NotifyPhase (PciResAlloc, EfiPciHostBridgeAllocateResources);
     598    DEBUG ((EFI_D_INFO, "PciBus: HostBridge->NotifyPhase(AllocateResources) - %r\n", Status));
    601599    if (!FeaturePcdGet (PcdPciBusHotplugDeviceSupport)) {
    602600      //
     
    753751  // Notify pci bus driver starts to program the resource
    754752  //
    755   NotifyPhase (PciResAlloc, EfiPciHostBridgeSetResources);
     753  Status = NotifyPhase (PciResAlloc, EfiPciHostBridgeSetResources);
     754
     755  if (EFI_ERROR (Status)) {
     756    return Status;
     757  }
    756758
    757759  RootBridgeDev     = NULL;
     
    892894  // Notify the resource allocation phase is to end
    893895  //
    894   NotifyPhase (PciResAlloc, EfiPciHostBridgeEndResourceAllocation);
    895 
    896   return EFI_SUCCESS;
     896  Status = NotifyPhase (PciResAlloc, EfiPciHostBridgeEndResourceAllocation);
     897
     898  return Status;
    897899}
    898900
     
    14371439  // Notify the bus allocation phase is about to start
    14381440  //
    1439   NotifyPhase (PciResAlloc, EfiPciHostBridgeBeginBusAllocation);
     1441  Status = NotifyPhase (PciResAlloc, EfiPciHostBridgeBeginBusAllocation);
     1442
     1443  if (EFI_ERROR (Status)) {
     1444    return Status;
     1445  }
    14401446
    14411447  DEBUG((EFI_D_INFO, "PCI Bus First Scanning\n"));
     
    15251531    // Notify the bus allocation phase is about to start for the 2nd time
    15261532    //
    1527     NotifyPhase (PciResAlloc, EfiPciHostBridgeBeginBusAllocation);
     1533    Status = NotifyPhase (PciResAlloc, EfiPciHostBridgeBeginBusAllocation);
     1534
     1535    if (EFI_ERROR (Status)) {
     1536      return Status;
     1537    }
    15281538
    15291539    DEBUG((EFI_D_INFO, "PCI Bus Second Scanning\n"));
     
    15631573  // Notify the resource allocation phase is to start
    15641574  //
    1565   NotifyPhase (PciResAlloc, EfiPciHostBridgeBeginResourceAllocation);
     1575  Status = NotifyPhase (PciResAlloc, EfiPciHostBridgeBeginResourceAllocation);
     1576
     1577  if (EFI_ERROR (Status)) {
     1578    return Status;
     1579  }
    15661580
    15671581  RootBridgeHandle = NULL;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette