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:
7 edited

Legend:

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

  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Ppi/BlockIo.h

    r48674 r58459  
    1111  driver are the same, here we define a set of general PPIs for both drivers to use.
    1212 
    13 Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
     13Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
    1414This program and the accompanying materials are licensed and made available under
    1515the terms and conditions of the BSD License that accompanies this distribution. 
     
    5555  IdeLS120      = 2,   ///< The recovery device is an IDE LS-120
    5656  UsbMassStorage= 3,   ///< The recovery device is a USB Mass Storage device
     57  SD            = 4,   ///< The recovery device is a Secure Digital device
     58  EMMC          = 5,   ///< The recovery device is a eMMC device
     59  UfsDevice     = 6,   ///< The recovery device is a Universal Flash Storage device
    5760  MaxDeviceType
    5861} EFI_PEI_BLOCK_DEVICE_TYPE;
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Ppi/FirmwareVolume.h

    r48674 r58459  
    22  This file provides functions for accessing a memory-mapped firmware volume of a specific format.
    33
    4   Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
     4  Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
    55  This program and the accompanying materials                         
    66  are licensed and made available under the terms and conditions of the BSD License         
     
    155155
    156156/**
     157  Returns information about a specific file.
     158
     159  This function returns information about a specific
     160  file, including its file name, type, attributes, starting
     161  address, size and authentication status.
     162
     163  @param This                     Points to this instance of the
     164                                  EFI_PEI_FIRMWARE_VOLUME_PPI.
     165  @param FileHandle               Handle of the file.
     166  @param FileInfo                 Upon exit, points to the file's
     167                                  information.
     168
     169  @retval EFI_SUCCESS             File information returned.
     170  @retval EFI_INVALID_PARAMETER   If FileHandle does not
     171                                  represent a valid file.
     172  @retval EFI_INVALID_PARAMETER   If FileInfo is NULL.
     173
     174**/
     175typedef
     176EFI_STATUS
     177(EFIAPI *EFI_PEI_FV_GET_FILE_INFO2)(
     178  IN  CONST EFI_PEI_FIRMWARE_VOLUME_PPI   *This,
     179  IN  EFI_PEI_FILE_HANDLE                 FileHandle,
     180  OUT EFI_FV_FILE_INFO2                   *FileInfo
     181);
     182
     183/**
    157184  This function returns information about the firmware volume.
    158185 
     
    203230  OUT VOID                                 **SectionData
    204231);
     232
     233/**
     234  Find the next matching section in the firmware file.
     235
     236  This service enables PEI modules to discover sections
     237  of a given instance and type within a valid file.
     238
     239  @param This                   Points to this instance of the
     240                                EFI_PEI_FIRMWARE_VOLUME_PPI.
     241  @param SearchType             A filter to find only sections of this
     242                                type.
     243  @param SearchInstance         A filter to find the specific instance
     244                                of sections.
     245  @param FileHandle             Handle of firmware file in which to
     246                                search.
     247  @param SectionData            Updated upon return to point to the
     248                                section found.
     249  @param AuthenticationStatus   Updated upon return to point to the
     250                                authentication status for this section.
     251
     252  @retval EFI_SUCCESS     Section was found.
     253  @retval EFI_NOT_FOUND   Section of the specified type was not
     254                          found. SectionData contains NULL.
     255**/
     256typedef
     257EFI_STATUS
     258(EFIAPI *EFI_PEI_FV_FIND_SECTION2)(
     259  IN  CONST EFI_PEI_FIRMWARE_VOLUME_PPI    *This,
     260  IN  EFI_SECTION_TYPE                     SearchType,
     261  IN  UINTN                                SearchInstance,
     262  IN  EFI_PEI_FILE_HANDLE                  FileHandle,
     263  OUT VOID                                 **SectionData,
     264  OUT UINT32                               *AuthenticationStatus
     265);
     266
     267#define EFI_PEI_FIRMWARE_VOLUME_PPI_SIGNATURE SIGNATURE_32 ('P', 'F', 'V', 'P')
     268#define EFI_PEI_FIRMWARE_VOLUME_PPI_REVISION 0x00010030
    205269
    206270///
     
    214278  EFI_PEI_FV_GET_INFO         GetVolumeInfo;
    215279  EFI_PEI_FV_FIND_SECTION     FindSectionByType;
     280  EFI_PEI_FV_GET_FILE_INFO2   GetFileInfo2;
     281  EFI_PEI_FV_FIND_SECTION2    FindSectionByType2;
     282  ///
     283  /// Signature is used to keep backward-compatibility, set to {'P','F','V','P'}.
     284  ///
     285  UINT32                      Signature;
     286  ///
     287  /// Revision for further extension.
     288  ///
     289  UINT32                      Revision;
    216290};
    217291
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Ppi/LoadFile.h

    r48674 r58459  
    22  Load image file from fv to memory.
    33
    4   Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
     4  Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
    55  This program and the accompanying materials                         
    66  are licensed and made available under the terms and conditions of the BSD License         
     
    4848  @retval EFI_UNSUPPORTED       An image requires relocations or is not
    4949                                memory mapped.
    50    
     50  @retval EFI_WARN_BUFFER_TOO_SMALL
     51                                There is not enough heap to allocate the requested size.
     52                                This will not prevent the XIP image from being invoked.
     53
    5154**/
    5255typedef
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Ppi/Pcd.h

    r48674 r58459  
    77  but interfaces for dynamic-ex type PCD require token space guid as parameter.
    88
    9 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
     9Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
    1010This program and the accompanying materials are licensed and made available under
    1111the terms and conditions of the BSD License that accompanies this distribution. 
     
    776776  @param[in, out]  TokenNumber A pointer to the PCD token number to use to find the subsequent token number.
    777777                   
    778   @retval EFI_SUCCESS   The PCD service has retrieved the next valid token number.
    779                         Or the input token number is already the last valid token number in the PCD database.
    780                         In the later case, *TokenNumber is updated with the value of 0.
    781   @retval EFI_NOT_FOUND If this input token number and token namespace does not exist on the platform.
     778  @retval EFI_SUCCESS   The PCD service has retrieved the next valid token number.
     779  @retval EFI_NOT_FOUND The PCD service could not find data from the requested token number.
    782780
    783781**/
     
    794792  Retrieves the next valid PCD token namespace for a given namespace.
    795793
    796   If *Guid is NULL, then the GUID of the first token space of the
    797   current platform is assigned to *Guid the function return EFI_SUCCESS.
    798   If  *Guid is NULL  and there is no namespace exist in the platform other than the default
    799   (NULL) tokennamespace, *Guid is unchanged and the function return EFI_SUCCESS.
    800   If this input token namespace is the last namespace on the platform,
    801   *Guid will be assigned to NULL and the function return EFI_SUCCESS.
    802 
    803   @param[in, out]  Guid An indirect pointer to EFI_GUID.  On input it designates a known
    804                         token namespace from which the search will start. On output, it designates
    805                         the next valid token namespace on the platform. If the input token namespace
    806                         does not exist on the platform, an error is returned, and the value of *Guid is
    807                         undefined.
    808 
    809   @retval EFI_SUCCESS  The PCD service has retrieved the next valid token namespace.
    810                         Or the input token namespace is already the last valid token
    811                         number in the PCD database. In the later case, *Guid is updated
    812                         with the value of NULL. Or the input token name space is NULL and there
    813                         is no valid token namespace other than the default namespace (NULL).
    814   @retval EFI_NOT_FOUND If the input token namespace does not exist on the platform.
     794  Gets the next valid token namespace for a given namespace. This is useful to traverse the valid
     795  token namespaces on a platform.
     796
     797  @param[in, out]   Guid    An indirect pointer to EFI_GUID. On input it designates a known token
     798                            namespace from which the search will start. On output, it designates the next valid
     799                            token namespace on the platform. If *Guid is NULL, then the GUID of the first token
     800                            space of the current platform is returned. If the search cannot locate the next valid
     801                            token namespace, an error is returned and the value of *Guid is undefined.
     802 
     803  @retval  EFI_SUCCESS      The PCD service retrieved the value requested.
     804  @retval  EFI_NOT_FOUND    The PCD service could not find the next valid token namespace.
    815805
    816806**/
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Ppi/PiPcd.h

    r48674 r58459  
    11/** @file
    2   Platform Configuration Database (PCD) Protocol defined in PI 1.2 Vol3
     2  Platform Configuration Database (PCD) PPI defined in PI 1.2 Vol3
    33
    44  A platform database that contains a variety of current platform settings or
    55  directives that can be accessed by a driver or application.
    6   PI PCD protocol only provide the accessing interfaces for Dynamic-Ex type PCD.
    7 
    8   Callers to this protocol must be at a TPL_APPLICATION task priority level.
     6  PI PCD ppi only provide the accessing interfaces for Dynamic-Ex type PCD.
     7
    98  This is the base PCD service API that provides an abstraction for accessing configuration content in
    109  the platform. It a seamless mechanism for extracting information regardless of where the
     
    1312  firmware component to monitor specific settings and be alerted when a setting is changed.
    1413
    15   Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
     14  Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
    1615  This program and the accompanying materials
    1716  are licensed and made available under the terms and conditions of the BSD License
     
    7473
    7574/**
    76   Retrieves the current byte-sized value for a PCD token number. If the TokenNumber is invalid,
     75  Retrieves the current word-sized value for a PCD token number. If the TokenNumber is invalid,
    7776  the results are unpredictable.
    7877
     
    376375
    377376  @param[in]    Guid          The 128-bit unique value that designates which namespace to extract the value from.
    378   @param[in]    TokenNumber   The PCD token number.
     377  @param[in]    TokenNumber   A pointer to the PCD token number to use to find the subsequent token number. To
     378                              retrieve the "first" token, have the pointer reference a TokenNumber value of 0.
    379379
    380380  @retval   EFI_SUCCESS       The PCD service has retrieved the value requested.
  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Ppi/Security2.h

    r48674 r58459  
    66  state being returned during the PEI section extraction process.
    77
    8   Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
     8  Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
    99  This program and the accompanying materials                         
    1010  are licensed and made available under the terms and conditions of the BSD License         
     
    7676  IN UINT32                       AuthenticationStatus,
    7777  IN EFI_PEI_FV_HANDLE            FvHandle,
    78   IN EFI_PEI_FV_HANDLE            FileHandle,
     78  IN EFI_PEI_FILE_HANDLE          FileHandle,
    7979  IN OUT    BOOLEAN               *DeferExecution
    8080);
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