X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=NetworkPkg%2FIScsiDxe%2FIScsiMisc.h;h=28cf408cd5c58b00bc1d1bcc09c0637d2ac41f7a;hb=dc469f137110fe79704b8b92c552972c739bb915;hp=92f42e140ace0e4f449fa19f8c7d11d612ae7a52;hpb=ecf98fbcf858b9cb09ff0ac1c2a09c0111b4026b;p=mirror_edk2.git diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.h b/NetworkPkg/IScsiDxe/IScsiMisc.h index 92f42e140a..28cf408cd5 100644 --- a/NetworkPkg/IScsiDxe/IScsiMisc.h +++ b/NetworkPkg/IScsiDxe/IScsiMisc.h @@ -46,7 +46,7 @@ typedef struct _ISCSI_SESSION_CONFIG_NVDATA { UINT8 PrefixLength; UINT8 BootLun[8]; - UINT16 ConnectTimeout; ///< timout value in milliseconds. + UINT16 ConnectTimeout; ///< timeout value in milliseconds. UINT8 ConnectRetryCount; UINT8 IsId[6]; @@ -104,7 +104,7 @@ IScsiLunToUnicodeStr ( ); /** - Convert the mac address into a hexadecimal encoded "-" seperated string. + Convert the mac address into a hexadecimal encoded "-" separated string. @param[in] Mac The mac address. @param[in] Len Length in bytes of the mac address. @@ -150,6 +150,7 @@ IScsiAsciiStrToIp ( @retval EFI_SUCCESS The binary data is converted to the hexadecimal string and the length of the string is updated. @retval EFI_BUFFER_TOO_SMALL The string is too small. + @retval EFI_BAD_BUFFER_SIZE BinLength is too large for hex encoding. @retval EFI_INVALID_PARAMETER The IP string is malformatted. **/ @@ -164,14 +165,14 @@ IScsiBinToHex ( /** Convert the hexadecimal string into a binary encoded buffer. - @param[in, out] BinBuffer The binary buffer. - @param[in, out] BinLength Length of the binary buffer. - @param[in] HexStr The hexadecimal string. - - @retval EFI_SUCCESS The hexadecimal string is converted into a binary - encoded buffer. - @retval EFI_BUFFER_TOO_SMALL The binary buffer is too small to hold the converted data. + @param[in, out] BinBuffer The binary buffer. + @param[in, out] BinLength Length of the binary buffer. + @param[in] HexStr The hexadecimal string. + @retval EFI_SUCCESS The hexadecimal string is converted into a + binary encoded buffer. + @retval EFI_BUFFER_TOO_SMALL The binary buffer is too small to hold the + converted data. **/ EFI_STATUS IScsiHexToBin ( @@ -352,7 +353,7 @@ IScsiCreateDriverData ( @param[in] Private The iSCSI driver data. - @retval EFI_SUCCES The clean operation is successful. + @retval EFI_SUCCESS The clean operation is successful. @retval Others Other errors as indicated. **/ @@ -439,7 +440,7 @@ IScsiOnExitBootService ( This function tests whether the driver specified by DriverBindingHandle is currently managing the controller specified by ControllerHandle. This test - is performed by evaluating if the the protocol specified by ProtocolGuid is + is performed by evaluating if the protocol specified by ProtocolGuid is present on ControllerHandle and is was opened by DriverBindingHandle and Nic Device handle with an attribute of EFI_OPEN_PROTOCOL_BY_DRIVER. If ProtocolGuid is NULL, then ASSERT().