@retval EFI_SUCCESS The expected hash value was caculatedly successfully.\r
@retval EFI_PROTOCOL_ERROR The length of the secret should be at least the \r
length of the hash value for the hashing algorithm chosen.\r
- @retval Others Some unexpected error happened. \r
+ @retval Others Other errors as indicated. \r
**/\r
EFI_STATUS\r
IScsiCHAPCalculateResponse (\r
\r
@retval EFI_SUCCESS The response from target passed authentication.\r
@retval EFI_SECURITY_VIOLATION The response from target was not expected value.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiCHAPAuthTarget (\r
@retval EFI_SUCCESS The Login Response passed the CHAP validation.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
@retval EFI_PROTOCOL_ERROR Some kind of protocol error happend.\r
- @retval Others Some unexpected error happend.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiCHAPOnRspReceived (\r
@retval EFI_SUCCESS The Login Response passed the CHAP validation.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
@retval EFI_PROTOCOL_ERROR Some kind of protocol error happend.\r
- @retval Others Some unexpected error happend.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiCHAPOnRspReceived (\r
Update the list of iSCSI devices the iSCSI driver is controlling.\r
\r
@retval EFI_SUCCESS The callback successfully handled the action.\r
- @retval Others Some unexpected errors happened. \r
+ @retval Others Other errors as indicated. \r
**/\r
EFI_STATUS\r
IScsiUpdateDeviceList (\r
@retval EFI_UNSUPPORTED The specified Action is not supported by the\r
callback.Currently not implemented.\r
@retval EFI_INVALID_PARAMETERS Passing in wrong parameter. \r
- @retval Others Some unexpected error happened. \r
+ @retval Others Other errors as indicated. \r
**/\r
EFI_STATUS\r
EFIAPI\r
\r
@retval EFI_SUCCESS The iSCSI configuration form is updated.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected errors happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiConfigUpdateForm (\r
\r
@retval EFI_SUCCESS The iSCSI configuration form is initialized.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiConfigFormInit (\r
- IN EFI_HANDLE DriverBindingHandle\r
+ VOID\r
)\r
{\r
EFI_STATUS Status;\r
\r
#define ISCSI_FORM_CALLBACK_INFO_SIGNATURE EFI_SIGNATURE_32 ('I', 'f', 'c', 'i')\r
\r
+\r
+\r
+/**\r
+ If the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is clear, \r
+ then this macro return a pointer to a data structure ISCSI_FORM_CALLBACK_INFO.\r
+\r
+ If the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is set, \r
+ The Signature field of the data structure ISCSI_FORM_CALLBACK_INFO \r
+ is compared to TestSignature. If the signatures match, then a pointer \r
+ to the pointer to a data structure ISCSI_FORM_CALLBACK_INFO is returned. \r
+ If the signatures do not match, then DebugAssert() is called with a description \r
+ of "CR has a bad signature" and Callback is returned. \r
+\r
+ If the data type ISCSI_FORM_CALLBACK_INFO_SIGNATURE does not contain the field\r
+ specified by Callback, then the module will not compile.\r
+\r
+ If ISCSI_FORM_CALLBACK_INFO_SIGNATURE does not contain a field called Signature, \r
+ then the module will not compile.\r
+\r
+ @param Callback Pointer to the specified field within the data \r
+ structure ISCSI_FORM_CALLBACK_INFO.\r
+ @return a pointer to the pointer to a data structure ISCSI_FORM_CALLBACK_INFO.\r
+ @return Others Some unexpected error happened.\r
+**/\r
+\r
#define ISCSI_FORM_CALLBACK_INFO_FROM_FORM_CALLBACK(Callback) \\r
CR ( \\r
Callback, \\r
\r
@retval EFI_SUCCESS The iSCSI configuration form is updated.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected errors happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiConfigUpdateForm (\r
\r
@retval EFI_SUCCESS The iSCSI configuration form is initialized.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiConfigFormInit (\r
- IN EFI_HANDLE DriverBindingHandle\r
+ VOID\r
);\r
\r
/**\r
goto ON_EXIT;\r
}\r
\r
- for (FieldIndex = RP_FIELD_IDX_SERVERNAME; FieldIndex != RP_FIELD_IDX_TARGETNAME; FieldIndex = RP_FIELD_IDX_TARGETNAME) {\r
- if (Fields[FieldIndex].Str == NULL) {\r
- Status = EFI_INVALID_PARAMETER;\r
- goto ON_EXIT;\r
- }\r
- }\r
- \r
- FieldIndex = RP_FIELD_IDX_PROTOCOL;\r
- if (Fields[RP_FIELD_IDX_PROTOCOL].Len > 1) {\r
+ if ((Fields[RP_FIELD_IDX_SERVERNAME].Str == NULL) ||\r
+ (Fields[RP_FIELD_IDX_TARGETNAME].Str == NULL) ||\r
+ (Fields[RP_FIELD_IDX_PROTOCOL].Len > 1)\r
+ ) {\r
+\r
Status = EFI_INVALID_PARAMETER;\r
goto ON_EXIT;\r
}\r
-\r
//\r
// Get the IP address of the target.\r
//\r
- FieldIndex = RP_FIELD_IDX_SERVERNAME;\r
- Field = &Fields[FieldIndex];\r
+ Field = &Fields[RP_FIELD_IDX_SERVERNAME];\r
Status = IScsiAsciiStrToIp (Field->Str, &ConfigNvData->TargetIp);\r
if (EFI_ERROR (Status)) {\r
goto ON_EXIT;\r
//\r
// Check the protocol type.\r
//\r
- FieldIndex = RP_FIELD_IDX_PROTOCOL;\r
- Field = &Fields[FieldIndex];\r
+ Field = &Fields[RP_FIELD_IDX_PROTOCOL];\r
if ((Field->Str != NULL) && ((*(Field->Str) - '0') != EFI_IP_PROTO_TCP)) {\r
Status = EFI_INVALID_PARAMETER;\r
goto ON_EXIT;\r
//\r
// Get the port of the iSCSI target.\r
//\r
- FieldIndex = RP_FIELD_IDX_PORT;\r
- Field = &Fields[FieldIndex];\r
+ Field = &Fields[RP_FIELD_IDX_PORT];\r
if (Field->Str != NULL) {\r
ConfigNvData->TargetPort = (UINT16) AsciiStrDecimalToUintn (Field->Str);\r
} else {\r
//\r
// Get the LUN.\r
//\r
- FieldIndex = RP_FIELD_IDX_LUN;\r
- Field = &Fields[FieldIndex];\r
+ Field = &Fields[RP_FIELD_IDX_LUN];\r
if (Field->Str != NULL) {\r
Status = IScsiAsciiStrToLun (Field->Str, ConfigNvData->BootLun);\r
if (EFI_ERROR (Status)) {\r
//\r
// Get the target iSCSI Name.\r
//\r
- FieldIndex = RP_FIELD_IDX_TARGETNAME; \r
- Field = &Fields[FieldIndex];\r
+ Field = &Fields[RP_FIELD_IDX_TARGETNAME];\r
+\r
if (AsciiStrLen (Field->Str) > ISCSI_NAME_MAX_SIZE - 1) {\r
Status = EFI_INVALID_PARAMETER;\r
goto ON_EXIT;\r
@retval EFI_SUCCESS Either the DHCP OFFER is qualified or we're not intereseted\r
in the Dhcp4Event.\r
@retval EFI_NOT_READY The DHCP OFFER packet doesn't match our requirements.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiDhcpSelectOffer (\r
@retval EFI_SUCCESS The DNS information is got from the DHCP ACK.\r
@retval EFI_NO_MAPPING DHCP failed to acquire address and other information.\r
@retval EFI_INVALID_PARAMETER The DHCP ACK's DNS option is mal-formatted.\r
- @retval EFI_DEVICE_ERROR Some unexpected error happened.\r
+ @retval EFI_DEVICE_ERROR Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiParseDhcpAck (\r
\r
@retval EFI_SUCCESS The DNS information is got from the DHCP ACK.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiDoDhcp (\r
\r
@retval EFI_SUCCESS The DNS information is got from the DHCP ACK.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiDoDhcp (\r
@param[in] ImageHandle Handle that identifies the image to be unloaded.\r
\r
@retval EFI_SUCCESS The image has been unloaded.\r
- @retval Others Some unexpected errors happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
EFIAPI\r
\r
@retval EFI_SUCCESS The operation completed successfully.\r
@retval EFI_ACCESS_DENIED EFI_ISCSI_INITIATOR_NAME_PROTOCOL was installed unexpectedly.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
EFIAPI\r
//\r
// Initialize the configuration form of iSCSI.\r
//\r
- Status = IScsiConfigFormInit (gIScsiDriverBinding.DriverBindingHandle);\r
+ Status = IScsiConfigFormInit ();\r
if (EFI_ERROR (Status)) {\r
gBS->UninstallMultipleProtocolInterfaces (\r
ImageHandle,\r
@retval EFI_BUFFER_TOO_SMALL BufferSize is too small for the result.\r
@retval EFI_INVALID_PARAMETER BufferSize or Buffer is NULL.\r
@retval EFI_DEVICE_ERROR The iSCSI initiator name could not be retrieved due to a hardware error.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
EFIAPI\r
@retval EFI_OUT_OF_RESOURCES Not enough storage is available to hold the data.\r
@retval EFI_PROTOCOL_ERROR Input iSCSI initiator name does not adhere to RFC 3720\r
(and other related protocols)\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
EFIAPI\r
@param[in] Controller The handle of the controller.\r
\r
@return UINT16 The composited representation of the NIC PCI location.\r
- @retval 0 Some unexpected error happened.\r
+ @retval 0 Other errors as indicated.\r
**/\r
UINT16\r
IScsiGetNICPciLocation (\r
**/\r
VOID\r
IScsiPublishIbft (\r
- VOID\r
+ VOID \r
);\r
\r
#endif\r
@retval EFI_BUFFER_TOO_SMALL BufferSize is too small for the result.\r
@retval EFI_INVALID_PARAMETER BufferSize or Buffer is NULL.\r
@retval EFI_DEVICE_ERROR The iSCSI initiator name could not be retrieved due to a hardware error.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
EFIAPI\r
@retval EFI_OUT_OF_RESOURCES Not enough storage is available to hold the data.\r
@retval EFI_PROTOCOL_ERROR Input iSCSI initiator name does not adhere to RFC 3720\r
(and other related protocols)\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
EFIAPI\r
Removes (trims) specified leading and trailing characters from a string.\r
\r
@param[in, out] Str Pointer to the null-terminated string to be trimmed. On return, \r
- str will hold the trimmed string. \r
+ Str will hold the trimmed string. \r
\r
@param[in] CharC Character will be trimmed from str.\r
**/\r
@param[in] SubnetMask The IPv4 subnet mask.\r
\r
@return The prefix length of the subnet mask.\r
- @return 0 Some unexpected error happened.\r
+ @retval 0 Other errors as indicated.\r
**/\r
UINT8\r
IScsiGetSubnetMaskPrefixLength (\r
\r
@retval EFI_SUCCESS The hexadecimal string is converted into a binary\r
encoded buffer.\r
- @retval EFI_BUFFER_TOO_SMALL The binary buffer is too small to hold the converted data.s\r
+ @retval EFI_BUFFER_TOO_SMALL The binary buffer is too small to hold the converted data.\r
**/\r
EFI_STATUS\r
IScsiHexToBin (\r
@param[in] Controller The handle of the controller.\r
\r
@return The iSCSI driver data created.\r
- @return NULL Some unexpected error happened.\r
+ @retval NULL Other errors as indicated.\r
**/\r
ISCSI_DRIVER_DATA *\r
IScsiCreateDriverData (\r
\r
@retval EFI_SUCCESS The configuration of this instance is got.\r
@retval EFI_ABORTED The operation was aborted.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiGetConfigData (\r
@param[in] Private The iSCSI driver data.\r
\r
@return The updated device path.\r
- @return NULL Some unexpected error happened.\r
+ @retval NULL Other errors as indicated.\r
**/\r
EFI_DEVICE_PATH_PROTOCOL *\r
IScsiGetTcpConnDevicePath (\r
@param[in] SubnetMask The IPv4 subnet mask.\r
\r
@return The prefix length of the subnet mask.\r
- @return 0 Some unexpected error happened.\r
+ @retval 0 Other errors as indicated.\r
**/\r
UINT8\r
IScsiGetSubnetMaskPrefixLength (\r
\r
@retval EFI_SUCCESS The hexadecimal string is converted into a binary\r
encoded buffer.\r
- @retval EFI_BUFFER_TOO_SMALL The binary buffer is too small to hold the converted data.s\r
+ @retval EFI_BUFFER_TOO_SMALL The binary buffer is too small to hold the converted data.\r
**/\r
EFI_STATUS\r
IScsiHexToBin (\r
@param[in] Controller The handle of the controller.\r
\r
@return The iSCSI driver data created.\r
- @return NULL Some unexpected error happened.\r
+ @retval NULL Other errors as indicated.\r
**/\r
ISCSI_DRIVER_DATA *\r
IScsiCreateDriverData (\r
\r
@retval EFI_SUCCESS The configuration of this instance is got.\r
@retval EFI_ABORTED The operation was aborted.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiGetConfigData (\r
@param[in] Private The iSCSI driver data.\r
\r
@return The updated device path.\r
- @return NULL Some unexpected error happened.\r
+ @retval NULL Other errors as indicated.\r
**/\r
EFI_DEVICE_PATH_PROTOCOL *\r
IScsiGetTcpConnDevicePath (\r
\r
@retval EFI_SUCCESS The iSCSI connection is logged into the iSCSI target.\r
@retval EFI_TIMEOUT Timeout happened during the login procedure.\r
- @retval Others Some unexpected error happened. \r
+ @retval Others Other errors as indicated. \r
**/\r
EFI_STATUS\r
IScsiConnLogin (\r
\r
@retval EFI_SUCCESS The iSCSI session login procedure finished.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiSessionLogin (\r
@param[in] Conn The connection in the iSCSI login phase.\r
\r
@retval EFI_SUCCESS The iSCSI login response PDU is received and processed.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiReceiveLoginRsp (\r
@param[in] Conn The connection in the iSCSI login phase.\r
\r
@return The pointer to the net buffer containing the iSCSI login request built.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
NET_BUF *\r
IScsiPrepareLoginReq (\r
@retval EFI_SUCCESS The iSCSI login response PDU is processed and all check are passed.\r
@retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error happened.\r
@retval EFI_MEDIA_CHANGED Target is redirected.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiProcessLoginRsp (\r
@retval EFI_SUCCESS The target address is updated.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
@retval EFI_NOT_FOUND The TargetAddress key is not found.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiUpdateTargetAddress (\r
@retval EFI_SUCCESS An iSCSI pdu is received.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
@retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error happened.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiReceivePdu (\r
@param[in] Len Length of the data segment.\r
\r
@return The key-value list.\r
- @return NULL Some unexpected error happened.\r
+ @retval NULL Other errors as indicated.\r
**/\r
LIST_ENTRY *\r
IScsiBuildKeyValueList (\r
@param[in] Tcb The tcb assocated with this SCSI command.\r
\r
@return The created iSCSI SCSI command PDU.\r
- @return NULL Some unexpected error happened.\r
+ @retval NULL Other errors as indicated.\r
**/\r
NET_BUF *\r
IScsiNewScsiCmdPdu (\r
@param[in] Lun The LUN.\r
\r
@return The net buffer wrapping the Data Out PDU.\r
- @return NULL Some unexpected error happened.\r
+ @retval NULL Other errors as indicated.\r
**/\r
NET_BUF *\r
IScsiNewDataOutPdu (\r
@param[in] Lun The LUN the data will be sent to.\r
\r
@return A list of net buffers with each of them wraps an iSCSI SCSI Data Out PDU.\r
- @return NULL Some unexpected error happened.\r
+ @retval NULL Other errors as indicated.\r
**/\r
LIST_ENTRY *\r
IScsiGenerateDataOutPduSequence (\r
\r
@retval EFI_SUCCES The data is sent out to the LUN.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiSendDataOutPduSequence (\r
actions are taken.\r
@retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol errror happened.\r
@retval EFI_BAD_BUFFER_SIZEE The buffer was not the proper size for the request.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiOnDataInRcvd (\r
\r
@retval EFI_SUCCES The R2T PDU is valid and the solicited data is sent out.\r
@retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol errror happened.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiOnR2TRcvd (\r
@retval EFI_SUCCES The Response PDU is processed.\r
@retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol errror happened.\r
@retval EFI_BAD_BUFFER_SIZEE The buffer was not the proper size for the request.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiOnScsiRspRcvd (\r
\r
@retval EFI_SUCCES The SCSI command is executed and the result is updated to \r
the Packet.\r
- @retval EFI_DEVICE_ERROR Some unexpected error happened.\r
+ @retval EFI_DEVICE_ERROR Session state was not as required.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiExecuteScsiCommand (\r
/**\r
Initialize some session parameters before login.\r
\r
- @param[in] Session The iSCSI session.\r
- @param[in] Recovery Whether the request is from a fresh new start or recovery.\r
+ @param[in, out] Session The iSCSI session.\r
+ @param[in] Recovery Whether the request is from a fresh new start or recovery.\r
**/\r
VOID\r
IScsiSessionInit (\r
- IN ISCSI_SESSION *Session,\r
- IN BOOLEAN Recovery\r
+ IN OUT ISCSI_SESSION *Session,\r
+ IN BOOLEAN Recovery\r
)\r
{\r
UINT32 Random;\r
\r
@retval EFI_SUCCESS The iSCSI connection is logged into the iSCSI target.\r
@retval EFI_TIMEOUT Timeout happened during the login procedure.\r
- @retval Others Some unexpected error happened. \r
+ @retval Others Other errors as indicated. \r
**/\r
EFI_STATUS\r
IScsiConnLogin (\r
\r
@retval EFI_SUCCESS The iSCSI session login procedure finished.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiSessionLogin (\r
@param[in] Conn The connection in the iSCSI login phase.\r
\r
@retval EFI_SUCCESS The iSCSI login response PDU is received and processed.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiReceiveLoginRsp (\r
@param[in] Conn The connection in the iSCSI login phase.\r
\r
@return The pointer to the net buffer containing the iSCSI login request built.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
NET_BUF *\r
IScsiPrepareLoginReq (\r
@retval EFI_SUCCESS The iSCSI login response PDU is processed and all check are passed.\r
@retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error happened.\r
@retval EFI_MEDIA_CHANGED Target is redirected.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiProcessLoginRsp (\r
@retval EFI_SUCCESS The target address is updated.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
@retval EFI_NOT_FOUND The TargetAddress key is not found.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiUpdateTargetAddress (\r
@retval EFI_SUCCESS An iSCSI pdu is received.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
@retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error happened.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiReceivePdu (\r
@param[in] Len Length of the data segment.\r
\r
@return The key-value list.\r
- @return NULL Some unexpected error happened.\r
+ @retval NULL Other errors as indicated.\r
**/\r
LIST_ENTRY *\r
IScsiBuildKeyValueList (\r
\r
@retval EFI_SUCCES The SCSI command is executed and the result is updated to \r
the Packet.\r
- @retval EFI_DEVICE_ERROR Some unexpected error happened.\r
+ @retval EFI_DEVICE_ERROR Other errors as indicated.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some unexpected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
IScsiExecuteScsiCommand (\r
/**\r
Initialize some session parameters before login.\r
\r
- @param[in] Session The iSCSI session.\r
- @param[in] Recovery Whether the request is from a fresh new start or recovery.\r
+ @param[in, out] Session The iSCSI session.\r
+ @param[in] Recovery Whether the request is from a fresh new start or recovery.\r
**/\r
VOID\r
IScsiSessionInit (\r
- IN ISCSI_SESSION *Session,\r
- IN BOOLEAN Recovery\r
+ IN OUT ISCSI_SESSION *Session,\r
+ IN BOOLEAN Recovery\r
);\r
-\r
+ \r
/**\r
Abort the iSCSI session, that is, reset all the connection and free the\r
resources.\r
\r
@retval EFI_SUCCESS Connect to the other endpoint of the TCP socket successfully.\r
@retval EFI_TIMEOUT Failed to connect to the other endpoint of the TCP socket in the specified time period.\r
- @retval Others Some expected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
Tcp4IoConnect (\r
\r
@retval EFI_SUCCESS The packet is trasmitted.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some expected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
Tcp4IoTransmit (\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate momery.\r
@retval EFI_TIMEOUT Failed to receive the required amount of data in the\r
specified time period.\r
- @retval Others Some expected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
Tcp4IoReceive (\r
\r
@retval EFI_SUCCESS Connect to the other endpoint of the TCP socket successfully.\r
@retval EFI_TIMEOUT Failed to connect to the other endpoint of the TCP socket in the specified time period.\r
- @retval Others Some expected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
Tcp4IoConnect (\r
\r
@retval EFI_SUCCESS The packet is trasmitted.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
- @retval Others Some expected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
Tcp4IoTransmit (\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate momery.\r
@retval EFI_TIMEOUT Failed to receive the required amount of data in the\r
specified time period.\r
- @retval Others Some expected error happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
Tcp4IoReceive (\r
@param[in] DataLen The length of data.\r
\r
@retval EFI_SUCCESS The transform is ok.\r
- @retval Others Some unexpected errors happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
MD5Update (\r
@param[out] HashVal The final 128-bits output.\r
\r
@retval EFI_SUCCESS The transform is ok.\r
- @retval Others Some unexpected errors happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
MD5Final (\r
@param[in] DataLen The length of data.\r
\r
@retval EFI_SUCCESS The transform is ok.\r
- @retval Others Some unexpected errors happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
MD5Update (\r
@param[out] HashVal The final 128-bits output.\r
\r
@retval EFI_SUCCESS The transform is ok.\r
- @retval Others Some unexpected errors happened.\r
+ @retval Others Other errors as indicated.\r
**/\r
EFI_STATUS\r
MD5Final (\r