VirtualBox

Ignore:
Timestamp:
Oct 29, 2015 4:30:44 AM (9 years ago)
Author:
vboxsync
Message:

EFI/Firmware: Merged in the svn:eol-style, svn:mime-type and trailing whitespace cleanup that was done after the initial UDK2014.SP1 import: svn merge /vendor/edk2/UDK2014.SP1 /vendor/edk2/current .

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

Legend:

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

  • trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/TimestampDxe/TimestampDxe.c

    r58464 r58466  
    11/** @file
    22  Implementation of Timestamp Protocol using UEFI APIs.
    3  
     3
    44Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
    55This program and the accompanying materials
     
    4646  The caller should be prepared for the function to return the same value twice across successive calls.
    4747  The counter value will not go backwards other than when wrapping, as defined by EndValue in GetProperties().
    48   The frequency of the returned timestamp counter value must remain constant. Power management operations that 
    49   affect clocking must not change the returned counter frequency. The quantization of counter value updates may 
    50   vary as long as the value reflecting time passed remains consistent.           
     48  The frequency of the returned timestamp counter value must remain constant. Power management operations that
     49  affect clocking must not change the returned counter frequency. The quantization of counter value updates may
     50  vary as long as the value reflecting time passed remains consistent.
    5151
    5252  @retval The current value of the free running timestamp counter.
     
    6464  UINT64  TimestampValue;
    6565  TimestampValue = 0;
    66  
     66
    6767  //
    6868  // Get the timestamp
     
    7373    TimestampValue = GetPerformanceCounter() - mTimerLibStartValue;
    7474  }
    75    
     75
    7676  return TimestampValue;
    7777}
     
    8282  @param[out]  Properties              The properties of the timestamp counter.
    8383
    84   @retval      EFI_SUCCESS             The properties were successfully retrieved. 
    85   @retval      EFI_DEVICE_ERROR        An error occurred trying to retrieve the properties of the timestamp 
    86                                        counter subsystem. Properties is not pedated.                               
     84  @retval      EFI_SUCCESS             The properties were successfully retrieved.
     85  @retval      EFI_DEVICE_ERROR        An error occurred trying to retrieve the properties of the timestamp
     86                                       counter subsystem. Properties is not pedated.
    8787  @retval      EFI_INVALID_PARAMETER   Properties is NULL.
    8888
     
    9797    return EFI_INVALID_PARAMETER;
    9898  }
    99  
     99
    100100  //
    101101  // Get timestamp properties
    102102  //
    103103  CopyMem((VOID *) Properties, (VOID *) &mTimestampProperties, sizeof (mTimestampProperties));
    104  
     104
    105105  return EFI_SUCCESS;
    106106}
     
    131131{
    132132  EFI_STATUS  Status;
    133  
     133
    134134  EFI_HANDLE  TimestampHandle;
    135135  TimestampHandle = NULL;
    136  
     136
    137137  //
    138138  // Get the start value, end value and frequency in Timerlib
    139139  //
    140140  mTimestampProperties.Frequency = GetPerformanceCounterProperties(&mTimerLibStartValue, &mTimerLibEndValue);
    141  
     141
    142142  //
    143   // Set the EndValue 
     143  // Set the EndValue
    144144  //
    145145  if (mTimerLibEndValue > mTimerLibStartValue) {
     
    148148    mTimestampProperties.EndValue = mTimerLibStartValue - mTimerLibEndValue;
    149149  }
    150  
     150
    151151  DEBUG ((EFI_D_INFO, "TimerFrequency:0x%lx, TimerLibStartTime:0x%lx, TimerLibEndtime:0x%lx\n", mTimestampProperties.Frequency, mTimerLibStartValue, mTimerLibEndValue));
    152  
     152
    153153  //
    154154  // Install the Timestamp Protocol onto a new handle
     
    160160                  NULL
    161161                  );
    162                  
     162
    163163  ASSERT_EFI_ERROR (Status);
    164164
  • trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/TimestampDxe/TimestampDxe.inf

    r58464 r58466  
    3333
    3434[Sources]
    35   TimestampDxe.c 
     35  TimestampDxe.c
    3636
    3737[LibraryClasses]
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