Changeset 58459 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Pci/EhciPei/EhcPeim.c
- Timestamp:
- Oct 28, 2015 8:17:18 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
-
Property svn:mergeinfo
set to (toggle deleted branches)
/vendor/edk2/current 103735-103757
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Pci/EhciPei/EhcPeim.c
r48674 r58459 3 3 which is used to enable recovery function from USB Drivers. 4 4 5 Copyright (c) 2010 , Intel Corporation. All rights reserved.<BR>5 Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR> 6 6 7 7 This program and the accompanying materials … … 402 402 403 403 /** 404 Power On All EHCI Ports. 405 406 @param Ehc The EHCI device. 407 408 **/ 409 VOID 410 EhcPowerOnAllPorts ( 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 /** 404 424 Initialize the HC hardware. 405 425 EHCI spec lists the five things to do to initialize the hardware. … … 444 464 return Status; 445 465 } 466 467 EhcPowerOnAllPorts (Ehc); 468 MicroSecondDelay (EHC_ROOT_PORT_RECOVERY_STALL); 446 469 447 470 Status = EhcInitSched (Ehc); … … 510 533 @param TimeOut Indicates the maximum time, in millisecond, which the 511 534 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. 512 537 @param Translator A pointr to the transaction translator data. 513 538 @param TransferResult A pointer to the detailed result information of the … … 973 998 @param DataLength The size (in bytes) of the data buffer. 974 999 @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. 975 1002 @param Translator Transaction translator to be used by this device. 976 1003 @param TransferResult Return the result of this control transfer.
Note:
See TracChangeset
for help on using the changeset viewer.