VirtualBox

Ignore:
Timestamp:
Aug 12, 2020 4:09:12 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139865
Message:

Devices/EFI: Merge edk-stable202005 and make it build, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
12 edited

Legend:

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

  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c

    r80721 r85718  
    16781678  Free existing HeaderFields.
    16791679
    1680   @param[in]  HeaderFields       Pointer to array of key/value header pairs waitting for free.
     1680  @param[in]  HeaderFields       Pointer to array of key/value header pairs waiting for free.
    16811681  @param[in]  FieldCount         The number of header pairs in HeaderFields.
    16821682
     
    17181718  @param[in]   Url                The URL of a remote host.
    17191719  @param[out]  RequestMsg         Pointer to the created HTTP request message.
    1720                                   NULL if any error occured.
     1720                                  NULL if any error occurred.
    17211721  @param[out]  RequestMsgSize     Size of the RequestMsg (in bytes).
    17221722
  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.inf

    r80721 r85718  
    3030[Packages]
    3131  MdePkg/MdePkg.dec
    32   MdeModulePkg/MdeModulePkg.dec
    3332  NetworkPkg/NetworkPkg.dec
    3433
  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.c

    r80721 r85718  
    124124  @retval       EFI_SUCCESS        The IP child is created and the IP protocol
    125125                                   interface is retrieved.
    126   @retval       EFI_UNSUPPORTED    Upsupported IpVersion.
     126  @retval       EFI_UNSUPPORTED    Unsupported IpVersion.
    127127  @retval       Others             The required operation failed.
    128128
     
    192192
    193193/**
    194   This function close the previously openned IP protocol and destroy the IP child.
     194  This function close the previously opened IP protocol and destroy the IP child.
    195195
    196196  @param[in]  ControllerHandle    The controller handle.
     
    202202  @retval     EFI_SUCCESS         The IP protocol is closed and the relevant IP child
    203203                                  is destroyed.
    204   @retval     EFI_UNSUPPORTED     Upsupported IpVersion.
     204  @retval     EFI_UNSUPPORTED     Unsupported IpVersion.
    205205  @retval     Others              The required operation failed.
    206206
     
    229229
    230230  //
    231   // Close the previously openned IP protocol.
     231  // Close the previously opened IP protocol.
    232232  //
    233233  Status = gBS->CloseProtocol (
     
    627627  @param[in]       NotifyData           Pointer to the notify data.
    628628  @param[in]       Dest                 Pointer to the destination IP address.
    629   @param[in]       Override             Pointer to the overriden IP_IO data.
     629  @param[in]       Override             Pointer to the overridden IP_IO data.
    630630
    631631  @return Pointer to the data structure created to wrap the packet. If any error occurs,
     
    14981498
    14991499  //
    1500   // Detroy the Ip List used by IpIo
     1500  // Destroy the Ip List used by IpIo
    15011501  //
    15021502
     
    15781578  This function is called after IpIoOpen(). The data to be sent is wrapped in
    15791579  Pkt. The IP instance wrapped in IpIo is used for sending by default but can be
    1580   overriden by Sender. Other sending configs, like source address and gateway
     1580  overridden by Sender. Other sending configs, like source address and gateway
    15811581  address etc., are specified in OverrideData.
    15821582
     
    19921992  This function pairs with IpIoAddIp(). The IpInfo is previously created by
    19931993  IpIoAddIp(). The IP_IO_IP_INFO::RefCnt is decremented and the IP instance
    1994   will be dstroyed if the RefCnt is zero.
     1994  will be destroyed if the RefCnt is zero.
    19951995
    19961996  @param[in]  IpIo                  Pointer to the IP_IO instance.
  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.inf

    r80721 r85718  
    2828[Packages]
    2929  MdePkg/MdePkg.dec
    30   MdeModulePkg/MdeModulePkg.dec
    3130  NetworkPkg/NetworkPkg.dec
    3231
  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeNetLib/DxeNetLib.c

    r80721 r85718  
    3737
    3838//
    39 // All the supported IP4 maskes in host byte order.
     39// All the supported IP4 masks in host byte order.
    4040//
    4141GLOBAL_REMOVE_IF_UNREFERENCED IP4_ADDR  gIp4AllMasks[IP4_MASK_NUM] = {
     
    131131  the SNP after use because the SNP is opened by HandleProtocol.
    132132
    133   @return The point to SNP if one is properly openned. Otherwise NULL
     133  @return The point to SNP if one is properly opened. Otherwise NULL
    134134
    135135**/
     
    305305  @param[in]  Line      The line of code in the File that contains the current log
    306306  @param[in]  Message   The log message
    307   @param[in]  BufLen    The lenght of the Buf
     307  @param[in]  BufLen    The length of the Buf
    308308  @param[out] Buf       The buffer to put the packet data
    309309
     
    481481
    482482  @param Level    The severity level of the message.
    483   @param Module   The Moudle that generates the log.
     483  @param Module   The Module that generates the log.
    484484  @param File     The file that contains the log.
    485485  @param Line     The exact line that contains the log.
     
    519519
    520520  //
    521   // Allocate a maxium of 1024 bytes, the caller should ensure
     521  // Allocate a maximum of 1024 bytes, the caller should ensure
    522522  // that the message plus the ethernet/ip/udp header is shorter
    523523  // than this
     
    11301130  If it hasn't been removed, then continue with the next node directly.
    11311131  This function will end the iterate and return the CallBack's last return value if error happens,
    1132   or retrun EFI_SUCCESS if 2 complete passes are made with no changes in the number of children in the list.
     1132  or return EFI_SUCCESS if 2 complete passes are made with no changes in the number of children in the list.
    11331133
    11341134  @param[in]    List             The head of the list.
     
    13541354
    13551355  If the Recycled doubly linked list of the netmap is empty, it will try to allocate
    1356   a batch of items if there are enough resources and add corresponding nodes to the begining
     1356  a batch of items if there are enough resources and add corresponding nodes to the beginning
    13571357  of the Recycled doubly linked list of the netmap. Otherwise, it will directly remove
    13581358  the fist node entry of the Recycled doubly linked list and return the corresponding item.
     
    21832183  EFI_MANAGED_NETWORK_PROTOCOL *Mnp;
    21842184  EFI_SERVICE_BINDING_PROTOCOL *MnpSb;
    2185   EFI_HANDLE                   *SnpHandle;
     2185  EFI_HANDLE                   SnpHandle;
    21862186  EFI_HANDLE                   MnpChildHandle;
    21872187
     
    29842984
    29852985  @retval EFI_SUCCESS            Convert to IPv4 address successfully.
    2986   @retval EFI_INVALID_PARAMETER  The string is mal-formated or Ip4Address is NULL.
     2986  @retval EFI_INVALID_PARAMETER  The string is malformatted or Ip4Address is NULL.
    29872987
    29882988**/
     
    30143014
    30153015  @retval EFI_SUCCESS            Convert to IPv6 address successfully.
    3016   @retval EFI_INVALID_PARAMETER  The string is mal-formated or Ip6Address is NULL.
     3016  @retval EFI_INVALID_PARAMETER  The string is malformatted or Ip6Address is NULL.
    30173017
    30183018**/
     
    30433043
    30443044  @retval EFI_SUCCESS            Convert to IPv4 address successfully.
    3045   @retval EFI_INVALID_PARAMETER  The string is mal-formated or Ip4Address is NULL.
     3045  @retval EFI_INVALID_PARAMETER  The string is malformatted or Ip4Address is NULL.
    30463046
    30473047**/
     
    30733073
    30743074  @retval EFI_SUCCESS            Convert to IPv6 address successfully.
    3075   @retval EFI_INVALID_PARAMETER  The string is mal-formated or Ip6Address is NULL.
     3075  @retval EFI_INVALID_PARAMETER  The string is malformatted or Ip6Address is NULL.
    30763076
    30773077**/
     
    31043104
    31053105  @retval EFI_SUCCESS            Convert to IPv6 address successfully.
    3106   @retval EFI_INVALID_PARAMETER  The string is mal-formated or Ip6Address is NULL.
     3106  @retval EFI_INVALID_PARAMETER  The string is malformatted or Ip6Address is NULL.
    31073107
    31083108**/
     
    33003300
    33013301    //
    3302     // Step 2: Skip over unformated string section.
     3302    // Step 2: Skip over unformatted string section.
    33033303    //
    33043304    do {
  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeNetLib/DxeNetLib.inf

    r80721 r85718  
    3131[Packages]
    3232  MdePkg/MdePkg.dec
    33   MdeModulePkg/MdeModulePkg.dec
    3433  NetworkPkg/NetworkPkg.dec
    3534
  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeNetLib/NetBuffer.c

    r80721 r85718  
    603603  if (HeadSpace != 0) {
    604604    //
    605     // Allocate an extra block to accomdate the head space.
     605    // Allocate an extra block to accommodate the head space.
    606606    //
    607607    BlockOpNum++;
     
    792792        if (Len == 0) {
    793793          //
    794           // Increament the index number to point to the next
     794          // Increment the index number to point to the next
    795795          // non-empty fragment.
    796796          //
     
    10641064      NetbufGetByte (Nbuf, 0, &Index);
    10651065
    1066       if ((NET_HEADSPACE(&(Nbuf->BlockOp[Index])) < Len) && (Index > 0)) {
     1066      if ((Index != 0) && (NET_HEADSPACE(&(Nbuf->BlockOp[Index])) < Len)) {
    10671067        Index--;
    10681068      }
  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c

    r80721 r85718  
    305305
    306306  //
    307   // Create events for variuos asynchronous operations.
     307  // Create events for various asynchronous operations.
    308308  //
    309309  Status = gBS->CreateEvent (
     
    746746  @param[in]   Packet          The packet to transmit.
    747747
    748   @retval EFI_SUCCESS            The packet is trasmitted.
     748  @retval EFI_SUCCESS            The packet is transmitted.
    749749  @retval EFI_INVALID_PARAMETER  One or more parameters are invalid.
    750750  @retval EFI_UNSUPPORTED        One or more of the control options are not
     
    808808
    809809  //
    810   // Trasnmit the packet.
     810  // Transmit the packet.
    811811  //
    812812  if (TcpIo->TcpVersion == TCP_VERSION_4) {
     
    863863  @param[in, out]  TcpIo       The TcpIo which wraps the socket to be destroyed.
    864864  @param[in]       Packet      The buffer to hold the data copy from the socket rx buffer.
    865   @param[in]       AsyncMode   Is this receive asyncronous or not.
     865  @param[in]       AsyncMode   Is this receive asynchronous or not.
    866866  @param[in]       Timeout     The time to wait for receiving the amount of data the Packet
    867867                               can hold. Set to NULL for infinite wait.
     
    870870  @retval EFI_INVALID_PARAMETER  One or more parameters are invalid.
    871871  @retval EFI_DEVICE_ERROR       An unexpected network or system error occurred.
    872   @retval EFI_OUT_OF_RESOURCES   Failed to allocate momery.
     872  @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory.
    873873  @retval EFI_TIMEOUT            Failed to receive the required amount of data in the
    874874                                 specified time period.
  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf

    r80721 r85718  
    2828[Packages]
    2929  MdePkg/MdePkg.dec
    30   MdeModulePkg/MdeModulePkg.dec
    3130  NetworkPkg/NetworkPkg.dec
    3231
  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeUdpIoLib/DxeUdpIoLib.c

    r80721 r85718  
    148148  The event handle for UDP receive request.
    149149
    150   It will build a NET_BUF from the recieved UDP data, then deliver it
     150  It will build a NET_BUF from the received UDP data, then deliver it
    151151  to the receiver.
    152152
     
    336336  @param[in]  CallBack              The function to call when receive finished.
    337337  @param[in]  Context               The opaque parameter to the CallBack.
    338   @param[in]  HeadLen               The head length to reserver for the packet.
     338  @param[in]  HeadLen               The head length to reserve for the packet.
    339339
    340340  @return The Wrapped request or NULL if failed to allocate resources or some errors happened.
     
    411411  @param[in]  Packet                The user's packet.
    412412  @param[in]  EndPoint              The local and remote access point.
    413   @param[in]  Gateway               The overrided next hop.
     413  @param[in]  Gateway               The overridden next hop.
    414414  @param[in]  CallBack              The function to call when transmission completed.
    415415  @param[in]  Context               The opaque parameter to the call back.
     
    591591  @param[in]  Configure             The function to configure the created UDP child.
    592592  @param[in]  UdpVersion            The UDP protocol version, UDP4 or UDP6.
    593   @param[in]  Context               The opaque parameter for the Configure funtion.
     593  @param[in]  Context               The opaque parameter for the Configure function.
    594594
    595595  @return Newly-created UDP_IO or NULL if failed.
     
    756756  @param[in]  UdpIo                 The UDP_IO to cancel packet.
    757757  @param[in]  IoStatus              The IoStatus to return to the packet owners.
    758   @param[in]  ToCancel              The select funtion to test whether to cancel this
     758  @param[in]  ToCancel              The select function to test whether to cancel this
    759759                                    packet or not.
    760760  @param[in]  Context               The opaque parameter to the ToCancel.
  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf

    r80721 r85718  
    2828[Packages]
    2929  MdePkg/MdePkg.dec
    30   MdeModulePkg/MdeModulePkg.dec
    3130  NetworkPkg/NetworkPkg.dec
    3231
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