static void sbmac_channel_stop(struct sbmac_softc *s){	/* don't do this if already stopped */		if (s->sbm_state == sbmac_state_off)		return;		/* don't accept any packets, disable all interrupts */		__raw_writeq(0, s->sbm_rxfilter);	__raw_writeq(0, s->sbm_imr);		/* Turn off ticker */		/* XXX */		/* turn off receiver and transmitter */		__raw_writeq(0, s->sbm_macenable);		/* We're stopped now. */		s->sbm_state = sbmac_state_off;		/*	 * Stop DMA channels (rings should be ok now)	 */		sbdma_channel_stop(&(s->sbm_rxdma));	sbdma_channel_stop(&(s->sbm_txdma));		/* Empty the receive and transmit rings */		sbdma_emptyring(&(s->sbm_rxdma));	sbdma_emptyring(&(s->sbm_txdma));	}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/74b0247fbd4b6ed1693a420d85cf50267d840ef4/sb1250-mac.c/buggy/drivers/net/sb1250-mac.c