}\r
\r
//\r
- // Get the handle of the controller we are controling.\r
+ // Get the handle of the controller we are controlling.\r
//\r
IScsiController = NetLibGetNicHandle (ControllerHandle, &gEfiTcp4ProtocolGuid);\r
if (IScsiController != NULL) {\r
#include "IScsiImpl.h"\r
\r
/**\r
- Initator calculates its own expected hash value.\r
+ Initiator calculates its own expected hash value.\r
\r
@param[in] ChapIdentifier iSCSI CHAP identifier sent by authenticator.\r
@param[in] ChapSecret iSCSI CHAP secret of the authenticator.\r
}\r
\r
/**\r
- The initator checks the CHAP response replied by target against its own\r
+ The initiator checks the CHAP response replied by target against its own\r
calculation of the expected hash value.\r
\r
@param[in] AuthData iSCSI CHAP authentication data.\r
@param[in] String The string is "&OFFSET=".\r
@param[out] Value The Offset value.\r
\r
- @retval EFI_OUT_OF_RESOURCES Insufficient resources to store neccessary\r
+ @retval EFI_OUT_OF_RESOURCES Insufficient resources to store necessary\r
structures.\r
@retval EFI_SUCCESS Value of <Number> is outputted in Number\r
successfully.\r
\r
@retval EFI_NOT_FOUND Cannot find the corresponding variable.\r
@retval EFI_SUCCESS The operation is completed successfully.\r
- @retval EFI_ABOTRED This operation is aborted cause of error\r
+ @retval EFI_ABORTED This operation is aborted cause of error\r
configuration.\r
@retval EFI_OUT_OF_RESOURCES Fail to finish the operation due to lack of\r
resources.\r
}\r
\r
//\r
- // Extract all AttemptConfigData to Keyword stroage of IfrNvData.\r
+ // Extract all AttemptConfigData to Keyword storage of IfrNvData.\r
//\r
IScsiConvertAttemptConfigDataToIfrNvDataByKeyword (IfrNvData);\r
\r
}\r
\r
/**\r
- The callback function registerd to the DHCP4 instance that is used to select\r
+ The callback function registered to the DHCP4 instance that is used to select\r
the qualified DHCP OFFER.\r
\r
@param[in] This The DHCP4 protocol.\r
// the active state, If the DHCP4 D.O.R.A started by IP4 auto\r
// configuration and has not been completed, the Dhcp4 state machine\r
// will not be in the right state for the iSCSI to start a new round D.O.R.A.\r
- // So, we need to switch it's policy to static.\r
+ // So, we need to switch its policy to static.\r
//\r
Status = gBS->HandleProtocol (Controller, &gEfiIp4Config2ProtocolGuid, (VOID **) &Ip4Config2);\r
if (!EFI_ERROR (Status)) {\r
@param[in] ControllerHandle Handle of the controller.\r
@param[in] IpVersion IP_VERSION_4 or IP_VERSION_6.\r
\r
- @retval EFI_SUCCES This driver was started.\r
+ @retval EFI_SUCCESS This driver was started.\r
@retval EFI_ALREADY_STARTED This driver is already running on this device.\r
@retval EFI_INVALID_PARAMETER Any input parameter is invalid.\r
@retval EFI_NOT_FOUND There is no sufficient information to establish\r
}\r
\r
//\r
- // Restore the origial user setting which specifies the proxy/virtual iSCSI target to NV region.\r
+ // Restore the original user setting which specifies the proxy/virtual iSCSI target to NV region.\r
//\r
NvData = &AttemptConfigData->SessionConfigData;\r
if (NvData->RedirectFlag) {\r
}\r
\r
//\r
- // Get the handle of the controller we are controling.\r
+ // Get the handle of the controller we are controlling.\r
//\r
if (IpVersion == IP_VERSION_4) {\r
ProtocolGuid = &gIScsiV4PrivateGuid;\r
IScsiRemoveNic (IScsiController);\r
\r
//\r
- // Update the iSCSI Boot Firware Table.\r
+ // Update the iSCSI Boot Firmware Table.\r
//\r
IScsiPublishIbft ();\r
\r
EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2;\r
\r
//\r
- // Try to disonnect the driver from the devices it's controlling.\r
+ // Try to disconnect the driver from the devices it's controlling.\r
//\r
Status = gBS->LocateHandleBuffer (\r
AllHandles,\r
}\r
\r
/**\r
- Convert the mac address into a hexadecimal encoded "-" seperated string.\r
+ Convert the mac address into a hexadecimal encoded "-" separated string.\r
\r
@param[in] Mac The mac address.\r
@param[in] Len Length in bytes of the mac address.\r
// Add a judgement here to support previous versions of IPv4_DEVICE_PATH.\r
// In previous versions of IPv4_DEVICE_PATH, GatewayIpAddress and SubnetMask\r
// do not exist.\r
- // In new version of IPv4_DEVICE_PATH, structcure length is 27.\r
+ // In new version of IPv4_DEVICE_PATH, structure length is 27.\r
//\r
\r
PathLen = DevicePathNodeLength (&DPathNode->Ipv4);\r
\r
This function tests whether the driver specified by DriverBindingHandle is\r
currently managing the controller specified by ControllerHandle. This test\r
- is performed by evaluating if the the protocol specified by ProtocolGuid is\r
+ is performed by evaluating if the protocol specified by ProtocolGuid is\r
present on ControllerHandle and is was opened by DriverBindingHandle and Nic\r
Device handle with an attribute of EFI_OPEN_PROTOCOL_BY_DRIVER.\r
If ProtocolGuid is NULL, then ASSERT().\r
UINT8 PrefixLength;\r
UINT8 BootLun[8];\r
\r
- UINT16 ConnectTimeout; ///< timout value in milliseconds.\r
+ UINT16 ConnectTimeout; ///< timeout value in milliseconds.\r
UINT8 ConnectRetryCount;\r
UINT8 IsId[6];\r
\r
);\r
\r
/**\r
- Convert the mac address into a hexadecimal encoded "-" seperated string.\r
+ Convert the mac address into a hexadecimal encoded "-" separated string.\r
\r
@param[in] Mac The mac address.\r
@param[in] Len Length in bytes of the mac address.\r
\r
@param[in] Private The iSCSI driver data.\r
\r
- @retval EFI_SUCCES The clean operation is successful.\r
+ @retval EFI_SUCCESS The clean operation is successful.\r
@retval Others Other errors as indicated.\r
\r
**/\r
\r
This function tests whether the driver specified by DriverBindingHandle is\r
currently managing the controller specified by ControllerHandle. This test\r
- is performed by evaluating if the the protocol specified by ProtocolGuid is\r
+ is performed by evaluating if the protocol specified by ProtocolGuid is\r
present on ControllerHandle and is was opened by DriverBindingHandle and Nic\r
Device handle with an attribute of EFI_OPEN_PROTOCOL_BY_DRIVER.\r
If ProtocolGuid is NULL, then ASSERT().\r
IScsiAttatchConnection (Session, Conn);\r
\r
//\r
- // Login througth the newly created connection.\r
+ // Login through the newly created connection.\r
//\r
Status = IScsiConnLogin (Conn, Session->ConfigData->SessionConfigData.ConnectTimeout);\r
if (EFI_ERROR (Status)) {\r
LoginReq->CmdSN = HTONL (Session->CmdSN);\r
\r
//\r
- // For the first Login Request on a coonection this is ExpStatSN for the\r
+ // For the first Login Request on a connection this is ExpStatSN for the\r
// old connection, and this field is only valid if the Login Request restarts\r
// a connection.\r
// For subsequent Login Requests it is used to acknowledge the Login Responses\r
// A Login Response with the C bit set to 1 MUST have the T bit set to 0.\r
// The CSG in the Login Response MUST be the same with the I-end of this connection.\r
// The T bit can't be 1 if the last Login Response sent by the initiator doesn't\r
- // initiate the transistion.\r
+ // initiate the transition.\r
// The NSG MUST be the same with the I-end of this connection if Transit is required.\r
// The ISID in the Login Response MUST be the same with this session.\r
//\r
}\r
\r
//\r
- // Save the origial user setting which specifies the proxy/virtual iSCSI target.\r
+ // Save the original user setting which specifies the proxy/virtual iSCSI target.\r
//\r
NvData->OriginalTargetPort = NvData->TargetPort;\r
\r
if (*TargetAddress == ',') {\r
//\r
- // Comma and the portal group tag MUST be ommitted if the TargetAddress is sent\r
+ // Comma and the portal group tag MUST be omitted if the TargetAddress is sent\r
// as the result of a redirection.\r
//\r
continue;\r
}\r
\r
//\r
- // Save the origial user setting which specifies the proxy/virtual iSCSI target.\r
+ // Save the original user setting which specifies the proxy/virtual iSCSI target.\r
//\r
CopyMem (&NvData->OriginalTargetIp, &NvData->TargetIp, sizeof (EFI_IP_ADDRESS));\r
\r
\r
@param[in, out] Conn The connection in iSCSI login.\r
\r
- @retval EFI_SUCCESS The parmeter check is passed and negotiation is finished.\r
+ @retval EFI_SUCCESS The parameter check is passed and negotiation is finished.\r
@retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error occurred.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
\r
goto ON_ERROR;\r
}\r
//\r
- // ErrorRecoveryLevel: result fuction is Minimum.\r
+ // ErrorRecoveryLevel: result function is Minimum.\r
//\r
Value = IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_ERROR_RECOVERY_LEVEL);\r
if (Value == NULL) {\r
Conn->MaxRecvDataSegmentLength = (UINT32) IScsiNetNtoi (Value);\r
}\r
//\r
- // MaxBurstLength: result funtion is Mininum.\r
+ // MaxBurstLength: result function is Minimum.\r
//\r
Value = IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_MAX_BURST_LENGTH);\r
if (Value == NULL) {\r
\r
if (Session->ImmediateData && (Packet->OutTransferLength != 0)) {\r
//\r
- // Send immediate data in this SCSI Command PDU. The length of the immeidate\r
+ // Send immediate data in this SCSI Command PDU. The length of the immediate\r
// data is the minimum of FirstBurstLength, the data length to be xfered, and\r
// the MaxRecvdataSegmentLength on this connection.\r
//\r
@param[in] Lun The LUN the data will be sent to.\r
@param[in] Tcb The task control block.\r
\r
- @retval EFI_SUCCES The data is sent out to the LUN.\r
+ @retval EFI_SUCCESS The data is sent out to the LUN.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
@retval Others Other errors as indicated.\r
\r
@param[in] Tcb The task control block.\r
@param[in, out] Packet The EXT SCSI PASS THRU request packet.\r
\r
- @retval EFI_SUCCES The check on the Data IN PDU is passed and some update\r
+ @retval EFI_SUCCESS The check on the Data IN PDU is passed and some update\r
actions are taken.\r
- @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol errror occurred.\r
+ @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error occurred.\r
@retval EFI_BAD_BUFFER_SIZEE The buffer was not the proper size for the request.\r
@retval Others Other errors as indicated.\r
\r
@param[in] Lun The Lun.\r
@param[in, out] Packet The EXT SCSI PASS THRU request packet.\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 occurred.\r
+ @retval EFI_SUCCESS The R2T PDU is valid and the solicited data is sent out.\r
+ @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error occurred.\r
@retval Others Other errors as indicated.\r
\r
**/\r
@param[in] Tcb The task control block.\r
@param[in, out] Packet The EXT SCSI PASS THRU request packet.\r
\r
- @retval EFI_SUCCES The Response PDU is processed.\r
- @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol errror occurred.\r
+ @retval EFI_SUCCESS The Response PDU is processed.\r
+ @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error occurred.\r
@retval EFI_BAD_BUFFER_SIZEE The buffer was not the proper size for the request.\r
@retval Others Other errors as indicated.\r
\r
@param[in] Pdu The NOP In PDU received.\r
@param[in] Tcb The task control block.\r
\r
- @retval EFI_SUCCES The NOP In PDU is processed and the related sequence\r
+ @retval EFI_SUCCESS The NOP In PDU is processed and the related sequence\r
numbers are updated.\r
- @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol errror occurred.\r
+ @retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error occurred.\r
\r
**/\r
EFI_STATUS\r
@param[in, out] Packet The request packet containing IO request, SCSI command\r
buffer and buffers to read/write.\r
\r
- @retval EFI_SUCCES The SCSI command is executed and the result is updated to\r
+ @retval EFI_SUCCESS The SCSI command is executed and the result is updated to\r
the Packet.\r
@retval EFI_DEVICE_ERROR Session state was not as required.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
} ISCSI_SENSE_DATA;\r
\r
///\r
-/// iSCSI Task Managment Function Request.\r
+/// iSCSI Task Management Function Request.\r
///\r
typedef struct _ISCSI_TMF_REQUEST {\r
UINT8 OpCode;\r
\r
@param[in, out] Conn The connection in iSCSI login.\r
\r
- @retval EFI_SUCCESS The parmeter check is passed and negotiation is finished.\r
+ @retval EFI_SUCCESS The parameter check is passed and negotiation is finished.\r
@retval EFI_PROTOCOL_ERROR Some kind of iSCSI protocol error occurred.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
\r
Pad the iSCSI AHS or data segment to an integer number of 4 byte words.\r
\r
@param[in, out] Pdu The iSCSI pdu which contains segments to pad.\r
- @param[in] Len The length of the last semgnet in the PDU.\r
+ @param[in] Len The length of the last segment in the PDU.\r
\r
@retval EFI_SUCCESS The segment is padded or no need to pad it.\r
@retval EFI_OUT_OF_RESOURCES There is not enough remaining free space to add the\r
@param[in, out] Packet The request packet containing IO request, SCSI command\r
buffer and buffers to read/write.\r
\r
- @retval EFI_SUCCES The SCSI command is executed and the result is updated to\r
+ @retval EFI_SUCCESS The SCSI command is executed and the result is updated to\r
the Packet.\r
@retval EFI_DEVICE_ERROR Session state was not as required.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
\r
@param[in] Session The iSCSI session\r
\r
- @retval EFI_SUCCES The session is reinstated from some error.\r
+ @retval EFI_SUCCESS The session is reinstated from some error.\r
@retval Other Reinstatement failed.\r
\r
**/\r