/* Determine if an SCB for a packetized transaction is active in a FIFO.  */
static int ahd_scb_active_in_fifo(struct ahd_softc *ahd, struct scb *scb)
/* Determine if an SCB for a packetized transaction is active in a FIFO.  */
static int ahd_scb_active_in_fifo(struct ahd_softc *ahd, struct scb *scb)
{
	if (ahd_get_scbptr(ahd) != SCB_GET_TAG(scb)
	 || ((ahd_inb(ahd, LONGJMP_ADDR+1) & INVALID_ADDR) != 0
	  && (ahd_inb(ahd, SEQINTSRC) & (CFG4DATA|SAVEPTRS)) == 0))
		return (0);
	return (1);
}