sys/dev/atm/hfa/fore_intr.c
void
fore_watchdog(Fore_unit *fup)
{
	/*
	 * Try to prevent stuff happening after we've paniced
	 */
	if (panicstr) {
		return;
	}

	/*
	 * Reset the watchdog timer
	 */
	fup->fu_timer = FORE_WATCHDOG;

	/*
	 * If the device is initialized, nudge it (wink, wink)
	 */
	if (fup->fu_flags & CUF_INITED) {

		/*
		 * Drain the queues of completed work
		 */
		fore_cmd_drain(fup);
		fore_recv_drain(fup);
		fore_xmit_drain(fup);

		/*
		 * Supply more buffers to the CP
		 */
		fore_buf_supply(fup);
	}

	return;
}
/*
 * Watchdog timeout routine
 * 
 * Called when we haven't heard from the card in a while.  Just in case
 * we missed an interrupt, we'll drain the queues and try to resupply the
 * CP with more receive buffers.  If the CP is partially wedged, hopefully
 * this will be enough to get it going again.
 *
 * Called with interrupts locked out.
 *
 * Arguments:
 *	fup		pointer to device unit structure
 *
 * Returns:
 *	none
 *
 */
Watchdog timeout routine

Called when we haven't heard from the card in a while.  Just in case
we missed an interrupt, we'll drain the queues and try to resupply the
CP with more receive buffers.  If the CP is partially wedged, hopefully
this will be enough to get it going again.

Called with interrupts locked out.

fup             pointer to device unit structure

none
Watchdog timeout routine Called when we haven ' t heard from the card in a while . Just in case we missed an interrupt we ' ll drain the queues and try to resupply the CP with more receive buffers . If the CP is partially wedged hopefully this will be enough to get it going again . Called with interrupts locked out . fup pointer to device unit structure none
void
fore_watchdog(Fore_unit *fup)
{
	if (panicstr) {
		return;
	}
	fup->fu_timer = FORE_WATCHDOG;
	if (fup->fu_flags & CUF_INITED) {
		fore_cmd_drain(fup);
		fore_recv_drain(fup);
		fore_xmit_drain(fup);
		fore_buf_supply(fup);
	}
	return;
}
void fore_watchdog ( Fore_unit * fup ) { if ( panicstr ) { return ; } fup -> fu_timer = FORE_WATCHDOG ; if ( fup -> fu_flags & CUF_INITED ) { fore_cmd_drain ( fup ) ; fore_recv_drain ( fup ) ; fore_xmit_drain ( fup ) ; fore_buf_supply ( fup ) ; } return ; }
Watchdog timeout routine
Watchdog timeout routine
/*
	 * Try to prevent stuff happening after we've paniced
	 */ /*
	 * Reset the watchdog timer
	 */ /*
	 * If the device is initialized, nudge it (wink, wink)
	 */ /*
		 * Drain the queues of completed work
		 */ /*
		 * Supply more buffers to the CP
		 */