kernels/linux-2.4.0/drivers/net/macmace.c
/*
 *	A transmit error has occured. (We kick the transmit side from
 *	the DMA completion)
 */
A transmit error has occured. (We kick the transmit side from
the DMA completion)
A transmit error has occured . ( We kick the transmit side from the DMA completion )
static void mace68k_xmit_error(struct net_device *dev)
{
	struct mace68k_data *mp = (struct mace68k_data *) dev->priv;
	volatile struct mace *mb = mp->mace;
	u8 xmtfs, xmtrc;
	xmtfs = mb->xmtfs;
	xmtrc = mb->xmtrc;
	if(xmtfs & XMTSV)
	{
		if(xmtfs & UFLO)
		{
			printk("%s: DMA underrun.\n", dev->name);
			mp->stats.tx_errors++;
			mp->stats.tx_fifo_errors++;
			mace68k_reset(dev);
		}
		if(xmtfs & RTRY)
			mp->stats.collisions++;
	}			
	mark_bh(NET_BH);
}
static void mace68k_xmit_error ( struct net_device * dev ) { struct mace68k_data * mp = ( struct mace68k_data * ) dev -> priv ; volatile struct mace * mb = mp -> mace ; u8 xmtfs , xmtrc ; xmtfs = mb -> xmtfs ; xmtrc = mb -> xmtrc ; if ( xmtfs & XMTSV ) { if ( xmtfs & UFLO ) { printk ( " \n " , dev -> name ) ; mp -> stats . tx_errors ++ ; mp -> stats . tx_fifo_errors ++ ; mace68k_reset ( dev ) ; } if ( xmtfs & RTRY ) mp -> stats . collisions ++ ; } mark_bh ( NET_BH ) ; }
A transmit error has occured.
A transmit error has occured .