Efi_scsi_pass_thru_protocol.resettarget(), Resettarget(), Efi_scsi_pass_thru_protocol.resettarget() summary – Intel Extensible Firmware Interface User Manual
Page 537: Prototype, Parameters, Description, Status codes returned

Protocols
— SCSI Bus Support
Version 1.10
12/01/02
13-17
EFI_SCSI_PASS_THRU_PROTOCOL.ResetTarget()
Summary
Resets a SCSI device that is connected to a SCSI channel.
Prototype
typedef
EFI_STATUS
(EFIAPI *EFI_SCSI_PASS_THRU_RESET_TARGET) (
IN EFI_SCSI_PASS_THRU_PROTOCOL
*This,
IN UINT32
Target,
IN UINT64
Lun
);
Parameters
This
A pointer to the
instance. Type
EFI_SCSI_PASS_THRU_PROTOCOL
is
defined in Section 13.1.
Target
The Target ID of the SCSI device to reset.
Lun
The LUN of the SCSI device to reset.
Description
The
EFI_SCSI_PASS_THRU_PROTOCOL.ResetTarget()
function resets the SCSI device
specified by
Target
and
Lun
. If this SCSI channel does not support a target reset operation, then
EFI_UNSUPPORTED
is returned. If
Target
or
Lun
are not in a valid range for this SCSI
channel, then
EFI_INVALID_PARAMETER
is returned. If a device error occurs while executing
that target reset operation, then
EFI_DEVICE_ERROR
is returned. If a timeout occurs during the
execution of the target reset operation, then
EFI_TIMEOUT
is returned. If the target reset
operation is completed, then
EFI_SUCCESS
is returned.
Status Codes Returned
EFI_SUCCESS
The SCSI device specified by
Target
and
Lun
was reset.
EFI_UNSUPPORTED
The SCSI channel does not support a target reset operation.
EFI_INVALID_PARAMETER
Target
or
Lun
are invalid.
EFI_DEVICE_ERROR
A device error occurred while attempting to reset the SCSI device
specified by
Target
and
Lun
.
EFI_TIMEOUT
A timeout occurred while attempting to reset the SCSI device
specified by
Target
and
Lun
.