/* Correctly setup FAS216 chip for specified transfer period. Notes : we need to switch the chip out of FASTSCSI mode if we have a transfer period >= 200ns - otherwise the chip will violate the SCSI timings.  */
static void fas216_set_sync(FAS216_Info *info, int target)
/* Correctly setup FAS216 chip for specified transfer period. Notes : we need to switch the chip out of FASTSCSI mode if we have a transfer period >= 200ns - otherwise the chip will violate the SCSI timings.  */
static void fas216_set_sync(FAS216_Info *info, int target)
{
	unsigned int cntl3;
	fas216_writeb(info, REG_SOF, info->device[target].sof);
	fas216_writeb(info, REG_STP, info->device[target].stp);
	cntl3 = info->scsi.cfg[2];
	if (info->device[target].period >= (200 / 4))
		cntl3 = cntl3 & ~CNTL3_FASTSCSI;
	fas216_writeb(info, REG_CNTL3, cntl3);
}