VirtualBox

Ignore:
Timestamp:
Aug 14, 2024 1:16:30 PM (6 months ago)
Author:
vboxsync
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643

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

Legend:

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

  • trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.h

    r99404 r105670  
    161161
    162162/**
    163   Append the appointed option to the buf, and move the buf to the end.
    164 
    165   @param[in, out] Buf           The pointer to buffer.
    166   @param[in]      OptType       The option type.
    167   @param[in]      OptLen        The length of option content.s
    168   @param[in]      Data          The pointer to the option content.
    169 
    170   @return         Buf           The position to append the next option.
    171 
    172 **/
    173 UINT8 *
     163  Append the option to Buf, update the length of packet, and move Buf to the end.
     164
     165  @param[in, out] Packet         A pointer to the packet, on success Packet->Length
     166                                 will be updated.
     167  @param[in, out] PacketCursor   The pointer in the packet, on success PacketCursor
     168                                 will be moved to the end of the option.
     169  @param[in]      OptType        The option type.
     170  @param[in]      OptLen         The length of option contents.
     171  @param[in]      Data           The pointer to the option content.
     172
     173  @retval   EFI_INVALID_PARAMETER An argument provided to the function was invalid
     174  @retval   EFI_BUFFER_TOO_SMALL  The buffer is too small to append the option.
     175  @retval   EFI_SUCCESS           The option is appended successfully.
     176**/
     177EFI_STATUS
    174178Dhcp6AppendOption (
    175   IN OUT UINT8   *Buf,
    176   IN     UINT16  OptType,
    177   IN     UINT16  OptLen,
    178   IN     UINT8   *Data
    179   );
    180 
    181 /**
    182   Append the Ia option to Buf, and move Buf to the end.
    183 
    184   @param[in, out] Buf           The pointer to the position to append.
     179  IN OUT EFI_DHCP6_PACKET  *Packet,
     180  IN OUT UINT8             **PacketCursor,
     181  IN     UINT16            OptType,
     182  IN     UINT16            OptLen,
     183  IN     UINT8             *Data
     184  );
     185
     186/**
     187  Append the appointed Ia option to Buf, update the Ia option length, and move Buf
     188  to the end of the option.
     189  @param[in, out] Packet        A pointer to the packet, on success Packet->Length
     190                                will be updated.
     191  @param[in, out] PacketCursor   The pointer in the packet, on success PacketCursor
     192                                 will be moved to the end of the option.
    185193  @param[in]      Ia            The pointer to the Ia.
    186194  @param[in]      T1            The time of T1.
     
    188196  @param[in]      MessageType   Message type of DHCP6 package.
    189197
    190   @return         Buf           The position to append the next Ia option.
    191 
    192 **/
    193 UINT8 *
     198  @retval   EFI_INVALID_PARAMETER An argument provided to the function was invalid
     199  @retval   EFI_BUFFER_TOO_SMALL  The buffer is too small to append the option.
     200  @retval   EFI_SUCCESS           The option is appended successfully.
     201**/
     202EFI_STATUS
    194203Dhcp6AppendIaOption (
    195   IN OUT UINT8         *Buf,
    196   IN     EFI_DHCP6_IA  *Ia,
    197   IN     UINT32        T1,
    198   IN     UINT32        T2,
    199   IN     UINT32        MessageType
     204  IN OUT EFI_DHCP6_PACKET  *Packet,
     205  IN OUT UINT8             **PacketCursor,
     206  IN     EFI_DHCP6_IA      *Ia,
     207  IN     UINT32            T1,
     208  IN     UINT32            T2,
     209  IN     UINT32            MessageType
    200210  );
    201211
     
    203213  Append the appointed Elapsed time option to Buf, and move Buf to the end.
    204214
    205   @param[in, out] Buf           The pointer to the position to append.
     215  @param[in, out] Packet        A pointer to the packet, on success Packet->Length
     216  @param[in, out] PacketCursor   The pointer in the packet, on success PacketCursor
     217                                 will be moved to the end of the option.
    206218  @param[in]      Instance      The pointer to the Dhcp6 instance.
    207219  @param[out]     Elapsed       The pointer to the elapsed time value in
    208220                                  the generated packet.
    209221
    210   @return         Buf           The position to append the next Ia option.
    211 
    212 **/
    213 UINT8 *
     222  @retval   EFI_INVALID_PARAMETER An argument provided to the function was invalid
     223  @retval   EFI_BUFFER_TOO_SMALL  The buffer is too small to append the option.
     224  @retval   EFI_SUCCESS           The option is appended successfully.
     225
     226**/
     227EFI_STATUS
    214228Dhcp6AppendETOption (
    215   IN OUT UINT8           *Buf,
    216   IN     DHCP6_INSTANCE  *Instance,
    217   OUT    UINT16          **Elapsed
     229  IN OUT EFI_DHCP6_PACKET  *Packet,
     230  IN OUT UINT8             **PacketCursor,
     231  IN     DHCP6_INSTANCE    *Instance,
     232  OUT    UINT16            **Elapsed
    218233  );
    219234
     
    222237  elapsed time option.
    223238
    224   @param[in]      Elapsed       The pointer to the position to append.
    225   @param[in]      Instance      The pointer to the Dhcp6 instance.
     239  @retval   EFI_INVALID_PARAMETER An argument provided to the function was invalid
     240  @retval   EFI_BUFFER_TOO_SMALL  The buffer is too small to append the option.
     241  @retval   EFI_SUCCESS           The option is appended successfully.
    226242**/
    227243VOID
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