/* Restore default values to the AIC-6260 registers and reset the fifos  */
static void reset_ports(struct Scsi_Host *shpnt)
/* Restore default values to the AIC-6260 registers and reset the fifos  */
static void reset_ports(struct Scsi_Host *shpnt)
{
	unsigned long flags;
	SETPORT(DMACNTRL0, RSTFIFO);
	SETPORT(SCSISEQ, 0);
	SETPORT(SXFRCTL1, 0);
	SETPORT(SCSISIG, 0);
	SETRATE(0);
	SETPORT(SSTAT0, 0x7f);
	SETPORT(SSTAT1, 0xef);
	SETPORT(SSTAT4, SYNCERR | FWERR | FRERR);
	SETPORT(DMACNTRL0, 0);
	SETPORT(DMACNTRL1, 0);
	SETPORT(BRSTCNTRL, 0xf1);
	SETPORT(SXFRCTL0, CH1|CLRCH1|CLRSTCNT);
	SETPORT(SXFRCTL0, CH1);
	DO_LOCK(flags);
	setup_expected_interrupts(shpnt);
	DO_UNLOCK(flags);
}