VirtualBox

Ignore:
Timestamp:
Oct 29, 2015 4:30:44 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103777
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/Variable/Pei/Variable.c

    r58459 r58466  
    3535/**
    3636  Provide the functionality of the variable services.
    37  
    38   @param  FileHandle   Handle of the file being invoked. 
     37
     38  @param  FileHandle   Handle of the file being invoked.
    3939                       Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().
    4040  @param  PeiServices  General purpose services available to every PEIM.
     
    194194{
    195195  UINTN Value;
    196  
     196
    197197  //
    198198  // Be careful about pad size for alignment
     
    452452
    453453        NvStorageSize = PcdGet32 (PcdFlashNvStorageVariableSize);
    454         NvStorageBase = (EFI_PHYSICAL_ADDRESS) (PcdGet64 (PcdFlashNvStorageVariableBase64) != 0 ? 
    455                                                 PcdGet64 (PcdFlashNvStorageVariableBase64) : 
     454        NvStorageBase = (EFI_PHYSICAL_ADDRESS) (PcdGet64 (PcdFlashNvStorageVariableBase64) != 0 ?
     455                                                PcdGet64 (PcdFlashNvStorageVariableBase64) :
    456456                                                PcdGet32 (PcdFlashNvStorageVariableBase)
    457457                                               );
     
    504504          // If it's the first time to access variable region in flash, create a guid hob to record
    505505          // VAR_ADDED type variable info.
    506           // Note that as the resource of PEI phase is limited, only store the limited number of 
     506          // Note that as the resource of PEI phase is limited, only store the limited number of
    507507          // VAR_ADDED type variables to reduce access time.
    508508          //
     
    620620  EFI_PHYSICAL_ADDRESS  SpareAddress;
    621621  UINTN                 PartialSize;
    622  
     622
    623623  if (StoreInfo->FtwLastWriteData != NULL) {
    624624    TargetAddress = StoreInfo->FtwLastWriteData->TargetAddress;
     
    827827               StoreInfo,
    828828               VariableName,
    829                VendorGuid, 
     829               VendorGuid,
    830830               PtrTrack
    831831               );
     
    841841  This service retrieves a variable's value using its name and GUID.
    842842
    843   Read the specified variable from the UEFI variable store. If the Data 
     843  Read the specified variable from the UEFI variable store. If the Data
    844844  buffer is too small to hold the contents of the variable, the error
    845845  EFI_BUFFER_TOO_SMALL is returned and DataSize is set to the required buffer
     
    857857  @retval EFI_SUCCESS           The variable was read successfully.
    858858  @retval EFI_NOT_FOUND         The variable could not be found.
    859   @retval EFI_BUFFER_TOO_SMALL  The DataSize is too small for the resulting data. 
    860                                 DataSize is updated with the size required for 
     859  @retval EFI_BUFFER_TOO_SMALL  The DataSize is too small for the resulting data.
     860                                DataSize is updated with the size required for
    861861                                the specified variable.
    862862  @retval EFI_INVALID_PARAMETER VariableName, VariableGuid, DataSize or Data is NULL.
     
    922922  Return the next variable name and GUID.
    923923
    924   This function is called multiple times to retrieve the VariableName 
    925   and VariableGuid of all variables currently available in the system. 
    926   On each call, the previous results are passed into the interface, 
    927   and, on return, the interface returns the data for the next 
    928   interface. When the entire variable list has been returned, 
     924  This function is called multiple times to retrieve the VariableName
     925  and VariableGuid of all variables currently available in the system.
     926  On each call, the previous results are passed into the interface,
     927  and, on return, the interface returns the data for the next
     928  interface. When the entire variable list has been returned,
    929929  EFI_NOT_FOUND is returned.
    930930
     
    935935  @param  VariableName      On entry, a pointer to a null-terminated string that is the variable's name.
    936936                            On return, points to the next variable's null-terminated name string.
    937   @param  VariableGuid      On entry, a pointer to an EFI_GUID that is the variable's GUID. 
     937  @param  VariableGuid      On entry, a pointer to an EFI_GUID that is the variable's GUID.
    938938                            On return, a pointer to the next variable's GUID.
    939939
     
    10141014      }
    10151015      //
    1016       // Capture the case that 
     1016      // Capture the case that
    10171017      // 1. current storage is the last one, or
    10181018      // 2. no further storage
     
    10551055                   &StoreInfoForHob,
    10561056                   GetVariableNamePtr (Variable.CurrPtr),
    1057                    &VariableHeader->VendorGuid, 
     1057                   &VariableHeader->VendorGuid,
    10581058                   &VariableInHob
    10591059                   );
  • trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Variable/Pei/Variable.h

    r58459 r58466  
    5656/**
    5757  Provide the functionality of the variable services.
    58  
    59   @param  FileHandle  Handle of the file being invoked. 
     58
     59  @param  FileHandle  Handle of the file being invoked.
    6060                      Type EFI_PEI_FILE_HANDLE is defined in FfsFindNextFile().
    6161  @param  PeiServices  General purpose services available to every PEIM.
     
    7575  This service retrieves a variable's value using its name and GUID.
    7676
    77   Read the specified variable from the UEFI variable store. If the Data 
     77  Read the specified variable from the UEFI variable store. If the Data
    7878  buffer is too small to hold the contents of the variable, the error
    7979  EFI_BUFFER_TOO_SMALL is returned and DataSize is set to the required buffer
     
    9191  @retval EFI_SUCCESS           The variable was read successfully.
    9292  @retval EFI_NOT_FOUND         The variable could not be found.
    93   @retval EFI_BUFFER_TOO_SMALL  The DataSize is too small for the resulting data. 
    94                                 DataSize is updated with the size required for 
     93  @retval EFI_BUFFER_TOO_SMALL  The DataSize is too small for the resulting data.
     94                                DataSize is updated with the size required for
    9595                                the specified variable.
    9696  @retval EFI_INVALID_PARAMETER VariableName, VariableGuid, DataSize or Data is NULL.
     
    112112  Return the next variable name and GUID.
    113113
    114   This function is called multiple times to retrieve the VariableName 
    115   and VariableGuid of all variables currently available in the system. 
    116   On each call, the previous results are passed into the interface, 
    117   and, on return, the interface returns the data for the next 
    118   interface. When the entire variable list has been returned, 
     114  This function is called multiple times to retrieve the VariableName
     115  and VariableGuid of all variables currently available in the system.
     116  On each call, the previous results are passed into the interface,
     117  and, on return, the interface returns the data for the next
     118  interface. When the entire variable list has been returned,
    119119  EFI_NOT_FOUND is returned.
    120120
     
    125125                            On return, points to the next variable's null-terminated name string.
    126126
    127   @param  VariableGuid      On entry, a pointer to an UEFI _GUID that is the variable's GUID. 
     127  @param  VariableGuid      On entry, a pointer to an UEFI _GUID that is the variable's GUID.
    128128                            On return, a pointer to the next variable's GUID.
    129129
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette