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

Legend:

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

  • trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Library/HobLib.h

    r58459 r58466  
    44
    55  The HOB Library supports the efficient creation and searching of HOBs
    6   defined in the PI Specification. 
    7   A HOB is a Hand-Off Block, defined in the Framework architecture, that 
    8   allows the PEI phase to pass information to the DXE phase. HOBs are position 
     6  defined in the PI Specification.
     7  A HOB is a Hand-Off Block, defined in the Framework architecture, that
     8  allows the PEI phase to pass information to the DXE phase. HOBs are position
    99  independent and can be relocated easily to different memory memory locations.
    1010
     
    2727
    2828  This function returns the pointer to first HOB in the list.
    29   For PEI phase, the PEI service GetHobList() can be used to retrieve the pointer 
     29  For PEI phase, the PEI service GetHobList() can be used to retrieve the pointer
    3030  to the HOB list.  For the DXE phase, the HOB list pointer can be retrieved through
    3131  the EFI System Table by looking up theHOB list GUID in the System Configuration Table.
    32   Since the System Configuration Table does not exist that the time the DXE Core is 
    33   launched, the DXE Core uses a global variable from the DXE Core Entry Point Library 
     32  Since the System Configuration Table does not exist that the time the DXE Core is
     33  launched, the DXE Core uses a global variable from the DXE Core Entry Point Library
    3434  to manage the pointer to the HOB list.
    35  
     35
    3636  If the pointer to the HOB list is NULL, then ASSERT().
    37  
     37
    3838  @return The pointer to the HOB list.
    3939
     
    4848  Returns the next instance of a HOB type from the starting HOB.
    4949
    50   This function searches the first instance of a HOB type from the starting HOB pointer. 
     50  This function searches the first instance of a HOB type from the starting HOB pointer.
    5151  If there does not exist such HOB type from the starting HOB pointer, it will return NULL.
    5252  In contrast with macro GET_NEXT_HOB(), this function does not skip the starting HOB pointer
    5353  unconditionally: it returns HobStart back if HobStart itself meets the requirement;
    5454  caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.
    55  
     55
    5656  If HobStart is NULL, then ASSERT().
    5757
     
    7272  Returns the first instance of a HOB type among the whole HOB list.
    7373
    74   This function searches the first instance of a HOB type among the whole HOB list. 
    75   If there does not exist such HOB type in the HOB list, it will return NULL. 
    76  
     74  This function searches the first instance of a HOB type among the whole HOB list.
     75  If there does not exist such HOB type in the HOB list, it will return NULL.
     76
    7777  If the pointer to the HOB list is NULL, then ASSERT().
    7878
     
    9090/**
    9191  Returns the next instance of the matched GUID HOB from the starting HOB.
    92  
    93   This function searches the first instance of a HOB from the starting HOB pointer. 
    94   Such HOB should satisfy two conditions: 
    95   its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid. 
    96   If there does not exist such HOB from the starting HOB pointer, it will return NULL. 
     92
     93  This function searches the first instance of a HOB from the starting HOB pointer.
     94  Such HOB should satisfy two conditions:
     95  its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.
     96  If there does not exist such HOB from the starting HOB pointer, it will return NULL.
    9797  Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()
    9898  to extract the data section and its size info respectively.
     
    100100  unconditionally: it returns HobStart back if HobStart itself meets the requirement;
    101101  caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.
    102  
     102
    103103  If Guid is NULL, then ASSERT().
    104104  If HobStart is NULL, then ASSERT().
     
    119119/**
    120120  Returns the first instance of the matched GUID HOB among the whole HOB list.
    121  
    122   This function searches the first instance of a HOB among the whole HOB list. 
     121
     122  This function searches the first instance of a HOB among the whole HOB list.
    123123  Such HOB should satisfy two conditions:
    124124  its HOB type is EFI_HOB_TYPE_GUID_EXTENSION and its GUID Name equals to the input Guid.
     
    126126  Caller is required to apply GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE ()
    127127  to extract the data section and its size info respectively.
    128  
     128
    129129  If the pointer to the HOB list is NULL, then ASSERT().
    130130  If Guid is NULL, then ASSERT().
     
    144144  Get the system boot mode from the HOB list.
    145145
    146   This function returns the system boot mode information from the 
     146  This function returns the system boot mode information from the
    147147  PHIT HOB in HOB list.
    148148
    149149  If the pointer to the HOB list is NULL, then ASSERT().
    150  
     150
    151151  @param  VOID
    152152
     
    166166  It can only be invoked during PEI phase;
    167167  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    168  
     168
    169169  If ModuleName is NULL, then ASSERT().
    170170  If there is no additional space for HOB creation, then ASSERT().
     
    191191  It can only be invoked during PEI phase;
    192192  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    193  
     193
    194194  If there is no additional space for HOB creation, then ASSERT().
    195195
     
    217217  It can only be invoked during PEI phase;
    218218  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    219  
     219
    220220  If there is no additional space for HOB creation, then ASSERT().
    221221
     
    236236
    237237/**
    238   Builds a customized HOB tagged with a GUID for identification and returns 
     238  Builds a customized HOB tagged with a GUID for identification and returns
    239239  the start address of GUID HOB data.
    240240
    241   This function builds a customized HOB tagged with a GUID for identification 
    242   and returns the start address of GUID HOB data so that caller can fill the customized data. 
     241  This function builds a customized HOB tagged with a GUID for identification
     242  and returns the start address of GUID HOB data so that caller can fill the customized data.
    243243  The HOB Header and Name field is already stripped.
    244244  It can only be invoked during PEI phase;
    245245  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    246  
     246
    247247  If Guid is NULL, then ASSERT().
    248248  If there is no additional space for HOB creation, then ASSERT().
     
    265265
    266266/**
    267   Builds a customized HOB tagged with a GUID for identification, copies the input data to the HOB 
     267  Builds a customized HOB tagged with a GUID for identification, copies the input data to the HOB
    268268  data field, and returns the start address of the GUID HOB data.
    269269
    270270  This function builds a customized HOB tagged with a GUID for identification and copies the input
    271   data to the HOB data field and returns the start address of the GUID HOB data.  It can only be 
    272   invoked during PEI phase; for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase. 
     271  data to the HOB data field and returns the start address of the GUID HOB data.  It can only be
     272  invoked during PEI phase; for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    273273  The HOB Header and Name field is already stripped.
    274274  It can only be invoked during PEI phase;
    275275  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    276  
     276
    277277  If Guid is NULL, then ASSERT().
    278278  If Data is NULL and DataLength > 0, then ASSERT().
     
    303303  It can only be invoked during PEI phase;
    304304  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    305  
     305
    306306  If there is no additional space for HOB creation, then ASSERT().
    307307
     
    323323  It can only be invoked during PEI phase;
    324324  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    325  
     325
    326326  If there is no additional space for HOB creation, then ASSERT().
    327327
     
    330330  @param  FvName        The name of the Firmware Volume.
    331331  @param  FileName      The name of the file.
    332  
     332
    333333**/
    334334VOID
     
    347347  It can only be invoked during PEI phase;
    348348  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    349  
     349
    350350  If the platform does not support Capsule Volume HOBs, then ASSERT().
    351351  If there is no additional space for HOB creation, then ASSERT().
     
    368368  It can only be invoked during PEI phase;
    369369  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    370  
     370
    371371  If there is no additional space for HOB creation, then ASSERT().
    372372
     
    388388  It can only be invoked during PEI phase;
    389389  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    390  
     390
    391391  If there is no additional space for HOB creation, then ASSERT().
    392392
     
    408408  It can only be invoked during PEI phase;
    409409  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    410  
     410
    411411  If there is no additional space for HOB creation, then ASSERT().
    412412
     
    430430  It can only be invoked during PEI phase;
    431431  for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
    432  
     432
    433433  If there is no additional space for HOB creation, then ASSERT().
    434434
     
    449449  Returns the type of a HOB.
    450450
    451   This macro returns the HobType field from the HOB header for the 
     451  This macro returns the HobType field from the HOB header for the
    452452  HOB specified by HobStart.
    453453
    454454  @param  HobStart   A pointer to a HOB.
    455  
     455
    456456  @return HobType.
    457  
     457
    458458**/
    459459#define GET_HOB_TYPE(HobStart) \
     
    463463  Returns the length, in bytes, of a HOB.
    464464
    465   This macro returns the HobLength field from the HOB header for the 
     465  This macro returns the HobLength field from the HOB header for the
    466466  HOB specified by HobStart.
    467467
     
    477477  Returns a pointer to the next HOB in the HOB list.
    478478
    479   This macro returns a pointer to HOB that follows the 
     479  This macro returns a pointer to HOB that follows the
    480480  HOB specified by HobStart in the HOB List.
    481481
     
    490490/**
    491491  Determines if a HOB is the last HOB in the HOB list.
    492  
    493   This macro determine if the HOB specified by HobStart is the 
    494   last HOB in the HOB list.  If HobStart is last HOB in the HOB list, 
     492
     493  This macro determine if the HOB specified by HobStart is the
     494  last HOB in the HOB list.  If HobStart is last HOB in the HOB list,
    495495  then TRUE is returned.  Otherwise, FALSE is returned.
    496496
     
    507507
    508508  This macro returns a pointer to the data buffer in a HOB specified by HobStart.
    509   HobStart is assumed to be a HOB of type EFI_HOB_TYPE_GUID_EXTENSION.   
     509  HobStart is assumed to be a HOB of type EFI_HOB_TYPE_GUID_EXTENSION.
    510510
    511511  @param   GuidHob   A pointer to a HOB.
    512512
    513513  @return  A pointer to the data buffer in a HOB.
    514  
     514
    515515**/
    516516#define GET_GUID_HOB_DATA(HobStart) \
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