kernels/linux-2.4.0/drivers/net/macmace.c
/*
 *	Shut down the mace and its interrupt channel
 */
Shut down the mace and its interrupt channel
Shut down the mace and its interrupt channel
static int mace68k_close(struct net_device *dev)
{
	struct mace68k_data *mp = (struct mace68k_data *) dev->priv;
	volatile struct mace *mb = mp->mace;
	mb->maccc = 0;
	mb->imr = 0xff;		
	mace68k_dma_off(dev);
	free_irq(dev->irq, dev);
	free_irq(IRQ_MAC_MACE_DMA, dev);
	return 0;
}
static int mace68k_close ( struct net_device * dev ) { struct mace68k_data * mp = ( struct mace68k_data * ) dev -> priv ; volatile struct mace * mb = mp -> mace ; mb -> maccc = 0 ; mb -> imr = 0xff ; mace68k_dma_off ( dev ) ; free_irq ( dev -> irq , dev ) ; free_irq ( IRQ_MAC_MACE_DMA , dev ) ; return 0 ; }
Shut down the mace and its interrupt channel
Shut down the mace and its interrupt channel
/* disable rx and tx */ /* disable all intrs */ /* disable rx and tx dma */