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/UhciPei/UhcPeim.c

    r48674 r58459  
    33which is used to enable recovery function from USB Drivers.
    44
    5 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved. <BR>
     5Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved. <BR>
    66 
    77This program and the accompanying materials
     
    154154  @param  DataLength             The size (in bytes) of the data buffer.
    155155  @param  TimeOut                Indicates the maximum timeout, in millisecond.
     156                                 If Timeout is 0, then the caller must wait for the function
     157                                 to be completed until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.
    156158  @param  TransferResult         Return the result of this control transfer.
    157159
     
    392394  @param  TimeOut               Indicates the maximum time, in millisecond, which the
    393395                                transfer is allowed to complete.
     396                                If Timeout is 0, then the caller must wait for the function
     397                                to be completed until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.
    394398  @param  TransferResult        A pointer to the detailed result information of the
    395399                                bulk transfer.
     
    10441048    return EFI_OUT_OF_RESOURCES;
    10451049  }
    1046  
     1050  ASSERT (UhcDev->ConfigQH != NULL);
     1051
    10471052  Status = CreateQH(UhcDev, &UhcDev->BulkQH);
    10481053  if (Status != EFI_SUCCESS) {
    10491054    return EFI_OUT_OF_RESOURCES;
    10501055  }
     1056  ASSERT (UhcDev->BulkQH != NULL);
    10511057
    10521058  //
     
    25092515  UINTN   ErrTDPos;
    25102516  UINTN   Delay;
     2517  BOOLEAN InfiniteLoop;
    25112518
    25122519  ErrTDPos          = 0;
    25132520  *TransferResult   = EFI_USB_NOERROR;
    25142521  *ActualLen        = 0;
    2515 
    2516   Delay = (TimeOut * STALL_1_MILLI_SECOND / 200) + 1;
     2522  InfiniteLoop      = FALSE;
     2523
     2524  Delay = TimeOut * STALL_1_MILLI_SECOND;
     2525  //
     2526  // If Timeout is 0, then the caller must wait for the function to be completed
     2527  // until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.
     2528  //
     2529  if (TimeOut == 0) {
     2530    InfiniteLoop = TRUE;
     2531  }
    25172532
    25182533  do {
     
    25262541      break;
    25272542    }
    2528     MicroSecondDelay (200);
     2543    MicroSecondDelay (STALL_1_MICRO_SECOND);
    25292544    Delay--;
    25302545
    2531   } while (Delay != 0);
    2532 
     2546  } while (InfiniteLoop || (Delay != 0));
    25332547
    25342548  if (*TransferResult != EFI_USB_NOERROR) {
     
    25672581  UINTN   ScrollNum;
    25682582  UINTN   Delay;
     2583  BOOLEAN InfiniteLoop;
    25692584
    25702585  ErrTDPos          = 0;
    25712586  *TransferResult   = EFI_USB_NOERROR;
    25722587  *ActualLen        = 0;
    2573 
    2574   Delay = (TimeOut * STALL_1_MILLI_SECOND / 200) + 1;
     2588  InfiniteLoop      = FALSE;
     2589
     2590  Delay = TimeOut * STALL_1_MILLI_SECOND;
     2591  //
     2592  // If Timeout is 0, then the caller must wait for the function to be completed
     2593  // until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.
     2594  //
     2595  if (TimeOut == 0) {
     2596    InfiniteLoop = TRUE;
     2597  }
    25752598
    25762599  do {
     
    25832606      break;
    25842607    }
    2585     MicroSecondDelay (200);
     2608    MicroSecondDelay (STALL_1_MICRO_SECOND);
    25862609    Delay--;
    25872610
    2588   } while (Delay != 0);
     2611  } while (InfiniteLoop || (Delay != 0));
    25892612
    25902613  //
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