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/EhciPei/EhcPeim.c

    r48674 r58459  
    33which is used to enable recovery function from USB Drivers.
    44
    5 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
     5Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
    66 
    77This program and the accompanying materials
     
    402402
    403403/**
     404  Power On All EHCI Ports.
     405 
     406  @param  Ehc             The EHCI device.
     407
     408**/
     409VOID
     410EhcPowerOnAllPorts (
     411  IN PEI_USB2_HC_DEV          *Ehc
     412  )
     413{
     414  UINT8 PortNumber;
     415  UINT8 Index;
     416
     417  PortNumber = (UINT8)(Ehc->HcStructParams & HCSP_NPORTS);
     418  for (Index = 0; Index < PortNumber; Index++) {
     419    EhcSetOpRegBit (Ehc, EHC_PORT_STAT_OFFSET + 4 * Index, PORTSC_POWER);
     420  }
     421}
     422
     423/**
    404424  Initialize the HC hardware.
    405425  EHCI spec lists the five things to do to initialize the hardware.
     
    444464    return Status;
    445465  }
     466
     467  EhcPowerOnAllPorts (Ehc); 
     468  MicroSecondDelay (EHC_ROOT_PORT_RECOVERY_STALL);
    446469 
    447470  Status = EhcInitSched (Ehc);
     
    510533  @param  TimeOut               Indicates the maximum time, in millisecond, which the
    511534                                transfer is allowed to complete.
     535                                If Timeout is 0, then the caller must wait for the function
     536                                to be completed until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.
    512537  @param  Translator            A pointr to the transaction translator data.                               
    513538  @param  TransferResult        A pointer to the detailed result information of the
     
    973998  @param  DataLength             The size (in bytes) of the data buffer.
    974999  @param  TimeOut                Indicates the maximum timeout, in millisecond.
     1000                                 If Timeout is 0, then the caller must wait for the function
     1001                                 to be completed until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.
    9751002  @param  Translator             Transaction translator to be used by this device.
    9761003  @param  TransferResult         Return the result of this control transfer.
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