kernels/linux-2.4.0/drivers/net/dmfe.c
/*
 *	Stop the interface.
 *	The interface is stopped when it is brought.
 */
Stop the interface.
The interface is stopped when it is brought.
Stop the interface . The interface is stopped when it is brought .
static int dmfe_stop(struct net_device *dev)
{
	struct dmfe_board_info *db = dev->priv;
	u32 ioaddr = dev->base_addr;
	DMFE_DBUG(0, "dmfe_stop", 0);
	netif_stop_queue(dev);
	outl(DM910X_RESET, ioaddr + DCR0);
	DELAY_5US;
	del_timer_sync(&db->timer);
	free_irq(dev->irq, dev);
	dmfe_free_rxbuffer(db);
	kfree(db->desc_pool_ptr);
	kfree(db->buf_pool_ptr);
	return 0;
}
static int dmfe_stop ( struct net_device * dev ) { struct dmfe_board_info * db = dev -> priv ; u32 ioaddr = dev -> base_addr ; DMFE_DBUG ( 0 , " " , 0 ) ; netif_stop_queue ( dev ) ; outl ( DM910X_RESET , ioaddr + DCR0 ) ; DELAY_5US ; del_timer_sync ( & db -> timer ) ; free_irq ( dev -> irq , dev ) ; dmfe_free_rxbuffer ( db ) ; kfree ( db -> desc_pool_ptr ) ; kfree ( db -> buf_pool_ptr ) ; return 0 ; }
Stop the interface.
Stop the interface .
/* Reset & stop DM910X board */ /* deleted timer */ /* free interrupt */ /* free allocated rx buffer */ /* free all descriptor memory and buffer memory */