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/UhciDxe/Uhci.c

    r48674 r58459  
    33  The UHCI driver model and HC protocol routines.
    44
    5 Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
     5Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
    66This program and the accompanying materials
    77are licensed and made available under the terms and conditions of the BSD License
     
    5454  }
    5555
    56   Uhc     = UHC_FROM_USB2_HC_PROTO (This);
     56  Uhc = UHC_FROM_USB2_HC_PROTO (This);
     57
     58  if (Uhc->DevicePath != NULL) {
     59    //
     60    // Report Status Code to indicate reset happens
     61    //
     62    REPORT_STATUS_CODE_WITH_DEVICE_PATH (
     63      EFI_PROGRESS_CODE,
     64      (EFI_IO_BUS_USB | EFI_IOB_PC_RESET),
     65      Uhc->DevicePath
     66      );
     67  }
    5768
    5869  OldTpl  = gBS->RaiseTPL (UHCI_TPL);
     
    14191430
    14201431  @param  PciIo                  The PCIIO to use.
     1432  @param  DevicePath             The device path of host controller.
    14211433  @param  OriginalPciAttributes  The original PCI attributes.
    14221434
     
    14261438USB_HC_DEV *
    14271439UhciAllocateDev (
    1428   IN EFI_PCI_IO_PROTOCOL    *PciIo,
    1429   IN UINT64                 OriginalPciAttributes
     1440  IN EFI_PCI_IO_PROTOCOL       *PciIo,
     1441  IN EFI_DEVICE_PATH_PROTOCOL  *DevicePath,
     1442  IN UINT64                    OriginalPciAttributes
    14301443  )
    14311444{
     
    14611474
    14621475  Uhc->PciIo                 = PciIo;
     1476  Uhc->DevicePath            = DevicePath;
    14631477  Uhc->OriginalPciAttributes = OriginalPciAttributes;
    14641478  Uhc->MemPool               = UsbHcInitMemPool (PciIo, TRUE, 0);
     
    15371551{
    15381552  USB_HC_DEV          *Uhc;
     1553  EFI_STATUS          Status;
    15391554
    15401555  //
     
    15421557  //
    15431558  Uhc = UHC_FROM_USB2_HC_PROTO (This);
     1559
     1560
     1561  Status = gBS->UninstallProtocolInterface (
     1562                  Controller,
     1563                  &gEfiUsb2HcProtocolGuid,
     1564                  &Uhc->Usb2Hc
     1565                  );
     1566  if (EFI_ERROR (Status)) {
     1567    return ;
     1568  }
     1569
    15441570  UhciStopHc (Uhc, UHC_GENERIC_TIMEOUT);
    1545 
    1546   gBS->UninstallProtocolInterface (
    1547         Controller,
    1548         &gEfiUsb2HcProtocolGuid,
    1549         &Uhc->Usb2Hc
    1550         );
    1551 
    15521571  UhciFreeAllAsyncReq (Uhc);
    15531572  UhciDestoryFrameList (Uhc);
     
    15701589
    15711590  @param  Event                   Pointer to this event
    1572   @param  Context                 Event hanlder private data
     1591  @param  Context                 Event handler private data
    15731592
    15741593**/
     
    16231642  UINT64              OriginalPciAttributes;
    16241643  BOOLEAN             PciAttributesSaved;
     1644  EFI_DEVICE_PATH_PROTOCOL  *HcDevicePath;
    16251645
    16261646  //
     
    16411661  }
    16421662
     1663  //
     1664  // Open Device Path Protocol for on USB host controller
     1665  //
     1666  HcDevicePath = NULL;
     1667  Status = gBS->OpenProtocol (
     1668                  Controller,
     1669                  &gEfiDevicePathProtocolGuid,
     1670                  (VOID **) &HcDevicePath,
     1671                  This->DriverBindingHandle,
     1672                  Controller,
     1673                  EFI_OPEN_PROTOCOL_GET_PROTOCOL
     1674                  );
     1675
    16431676  PciAttributesSaved = FALSE;
    16441677  //
     
    16721705                    );
    16731706  if (!EFI_ERROR (Status)) {
    1674     Supports &= EFI_PCI_DEVICE_ENABLE;
     1707    Supports &= (UINT64)EFI_PCI_DEVICE_ENABLE;
    16751708    Status = PciIo->Attributes (
    16761709                      PciIo,
     
    16851718  }
    16861719
    1687   Uhc = UhciAllocateDev (PciIo, OriginalPciAttributes);
     1720  Uhc = UhciAllocateDev (PciIo, HcDevicePath, OriginalPciAttributes);
    16881721
    16891722  if (Uhc == 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