/* Reset parameters and call scsi_done for data->cur_lunt. Be careful setting SCpnt->result = DID_* before calling this function.  */
static void nsp32_scsi_done(struct scsi_cmnd *)
/* Reset parameters and call scsi_done for data->cur_lunt. Be careful setting SCpnt->result = DID_* before calling this function.  */
static void nsp32_scsi_done(struct scsi_cmnd *)
{
	nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
	unsigned int   base = SCpnt->device->host->io_port;
	scsi_dma_unmap(SCpnt);
	nsp32_write2(base, TRANSFER_CONTROL, 0);
	nsp32_write4(base, BM_CNT,           0);
	(*SCpnt->scsi_done)(SCpnt);
	data->cur_lunt->SCpnt = NULL;
	data->cur_lunt        = NULL;
	data->cur_target      = NULL;
	data->CurrentSC      = NULL;
}