/* 
/* 
static int lan_saa9730_stop(struct lan_saa9730_private *lp){	int i;	/* Stop DMA first */	OUTL(INL(&lp->lan_saa9730_regs->LanDmaCtl) &	     ~(DMA_CTL_EN_TX_DMA | DMA_CTL_EN_RX_DMA),	     &lp->lan_saa9730_regs->LanDmaCtl);	/* Set the SW Reset bits in DMA and MAC control registers */	OUTL(DMA_TEST_SW_RESET, &lp->lan_saa9730_regs->DmaTest);	OUTL(INL(&lp->lan_saa9730_regs->MacCtl) | MAC_CONTROL_RESET,	     &lp->lan_saa9730_regs->MacCtl);	/* 	 * Wait for MAC reset to have finished. The reset bit is auto cleared	 * when the reset is done.	 */	i = 0;	while (INL(&lp->lan_saa9730_regs->MacCtl) & MAC_CONTROL_RESET) {		i++;		if (i > 100) {			printk			    ("Error: lan_sa9730_stop: MAC reset timeout\n");			return -1;		}		mdelay(1);	/* wait 1 ms. */	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/62ff0d0a0769f08806d3f50449a78f17420971e8/saa9730.c/buggy/drivers/net/saa9730.c