unsigned char	       target = SCpnt->device->id; 
unsigned char	       target = scmd_id(SCpnt); 
static int nsp_analyze_sdtr(Scsi_Cmnd *SCpnt){	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]);	struct nsp_sync_table *sync_table;	unsigned int	       period, offset;	int		       i;	nsp_dbg(NSP_DEBUG_SYNC, "in");	period = sync->SyncPeriod;	offset = sync->SyncOffset;	nsp_dbg(NSP_DEBUG_SYNC, "period=0x%x, offset=0x%x", period, offset);	if ((data->ScsiClockDiv & (BIT(0)|BIT(1))) == CLOCK_20M) {		sync_table = nsp_sync_table_20M;	} else {		sync_table = nsp_sync_table_40M;	}	for ( i = 0; sync_table->max_period != 0; i++, sync_table++) {		if ( period >= sync_table->min_period &&		     period <= sync_table->max_period	 ) {			break;		}	}	if (period != 0 && sync_table->max_period == 0) {		/*		 * No proper period/offset found		 */		nsp_dbg(NSP_DEBUG_SYNC, "no proper period/offset");		sync->SyncPeriod      = 0;		sync->SyncOffset      = 0;		sync->SyncRegister    = 0;		sync->AckWidth	      = 0;		return FALSE;	}	sync->SyncRegister    = (sync_table->chip_period << SYNCREG_PERIOD_SHIFT) |		                (offset & SYNCREG_OFFSET_MASK);	sync->AckWidth	      = sync_table->ack_width;	nsp_dbg(NSP_DEBUG_SYNC, "sync_reg=0x%x, ack_width=0x%x", sync->SyncRegister, sync->AckWidth);	return TRUE;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/422c0d61d591cbfb70f029e13505fb437e169d68/nsp_cs.c/buggy/drivers/scsi/pcmcia/nsp_cs.c