unsigned char  target = SCpnt->device->id; 
unsigned char  target = scmd_id(SCpnt); 
static int nsp_nexus(Scsi_Cmnd *SCpnt){	unsigned int   base   = SCpnt->device->host->io_port;	unsigned char  target = SCpnt->device->id;//	unsigned char  lun    = SCpnt->device->lun;	nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata;	sync_data     *sync   = &(data->Sync[target]);	//nsp_dbg(NSP_DEBUG_DATA_IO, "in SCpnt=0x%p", SCpnt);	/* setup synch transfer registers */	nsp_index_write(base, SYNCREG,	sync->SyncRegister);	nsp_index_write(base, ACKWIDTH, sync->AckWidth);	if (SCpnt->use_sg    == 0        ||	    SCpnt->resid % 4 != 0        ||	    SCpnt->resid     <= PAGE_SIZE ) {		data->TransferMode = MODE_IO8;	} else if (nsp_burst_mode == BURST_MEM32) {		data->TransferMode = MODE_MEM32;	} else if (nsp_burst_mode == BURST_IO32) {		data->TransferMode = MODE_IO32;	} else {		data->TransferMode = MODE_IO8;	}	/* setup pdma fifo */	nsp_setup_fifo(data, TRUE);	/* clear ack counter */ 	data->FifoCount = 0;	nsp_index_write(base, POINTERCLR, POINTER_CLEAR	    |					  ACK_COUNTER_CLEAR |					  REQ_COUNTER_CLEAR |					  HOST_COUNTER_CLEAR);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/422c0d61d591cbfb70f029e13505fb437e169d68/nsp_cs.c/buggy/drivers/scsi/pcmcia/nsp_cs.c