/* Resets a SCSI logical unit that is connected to a SCSI channel. */
EFI_STATUS EFIAPI ExtScsiPassThruResetTargetLun(IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL *This, IN UINT8 *Target, IN UINT64 Lun)
/* Resets a SCSI logical unit that is connected to a SCSI channel. */
EFI_STATUS EFIAPI ExtScsiPassThruResetTargetLun(IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL *This, IN UINT8 *Target, IN UINT64 Lun)
{
  ATA_ATAPI_PASS_THRU_INSTANCE  *Instance;
  LIST_ENTRY                    *Node;
  UINT8                         Port;
  UINT8                         PortMultiplier;
  Instance = EXT_SCSI_PASS_THRU_PRIVATE_DATA_FROM_THIS (This);
  if (Lun != 0) {
    return EFI_INVALID_PARAMETER;
  }
  Port           = Target[0];
  PortMultiplier = Target[1];
  Node = SearchDeviceInfoList (Instance, Port, PortMultiplier, EfiIdeCdrom);
  if (Node == NULL) {
    return EFI_INVALID_PARAMETER;
  }
  return EFI_SUCCESS;
}