int int_tul_scsi_rst(HCS * pCurHcb) 
static int int_tul_scsi_rst(HCS * pCurHcb) 
int int_tul_scsi_rst(HCS * pCurHcb){	SCB *pCurScb;	int i;	/* if DMA xfer is pending, abort DMA xfer */	if (TUL_RD(pCurHcb->HCS_Base, TUL_XStatus) & 0x01) {		TUL_WR(pCurHcb->HCS_Base + TUL_XCmd, TAX_X_ABT | TAX_X_CLR_FIFO);		/* wait Abort DMA xfer done */		while ((TUL_RD(pCurHcb->HCS_Base, TUL_Int) & 0x04) == 0);		TUL_WR(pCurHcb->HCS_Base + TUL_SCtrl0, TSC_FLUSH_FIFO);	}	/* Abort all active & disconnected scb */	while ((pCurScb = tul_pop_busy_scb(pCurHcb)) != NULL) {		pCurScb->SCB_HaStat = HOST_BAD_PHAS;		tul_append_done_scb(pCurHcb, pCurScb);	}	pCurHcb->HCS_ActScb = NULL;	pCurHcb->HCS_ActTcs = NULL;	/* clr sync nego. done flag */	for (i = 0; i < pCurHcb->HCS_MaxTar; i++) {		pCurHcb->HCS_Tcs[i].TCS_Flags &= ~(TCF_SYNC_DONE | TCF_WDTR_DONE);	}	return (-1);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/a2ba192c96d12447472e105890a9cd1b97952747/initio.c/clean/drivers/scsi/initio.c