if (netif_msg_rx_err(priv)) printk(KERN_DEBUG "%s: babbling error\n", dev->name);
static irqreturn_t gfar_error(int irq, void *dev_id, struct pt_regs *regs){	struct net_device *dev = dev_id;	struct gfar_private *priv = netdev_priv(dev);	/* Save ievent for future reference */	u32 events = gfar_read(&priv->regs->ievent);	/* Clear IEVENT */	gfar_write(&priv->regs->ievent, IEVENT_ERR_MASK);	/* Hmm... */#if defined (BRIEF_GFAR_ERRORS) || defined (VERBOSE_GFAR_ERRORS)	printk(KERN_DEBUG "%s: error interrupt (ievent=0x%08x imask=0x%08x)\n",	       dev->name, events, gfar_read(&priv->regs->imask));#endif	/* Update the error counters */	if (events & IEVENT_TXE) {		priv->stats.tx_errors++;		if (events & IEVENT_LC)			priv->stats.tx_window_errors++;		if (events & IEVENT_CRL)			priv->stats.tx_aborted_errors++;		if (events & IEVENT_XFUN) {#ifdef VERBOSE_GFAR_ERRORS			printk(KERN_DEBUG "%s: underrun.  packet dropped.\n",			       dev->name);#endif			priv->stats.tx_dropped++;			priv->extra_stats.tx_underrun++;			/* Reactivate the Tx Queues */			gfar_write(&priv->regs->tstat, TSTAT_CLEAR_THALT);		}#ifdef VERBOSE_GFAR_ERRORS		printk(KERN_DEBUG "%s: Transmit Error\n", dev->name);#endif	}	if (events & IEVENT_BSY) {		priv->stats.rx_errors++;		priv->extra_stats.rx_bsy++;		gfar_receive(irq, dev_id, regs);#ifndef CONFIG_GFAR_NAPI		/* Clear the halt bit in RSTAT */		gfar_write(&priv->regs->rstat, RSTAT_CLEAR_RHALT);#endif#ifdef VERBOSE_GFAR_ERRORS		printk(KERN_DEBUG "%s: busy error (rhalt: %x)\n", dev->name,		       gfar_read(&priv->regs->rstat));#endif	}	if (events & IEVENT_BABR) {		priv->stats.rx_errors++;		priv->extra_stats.rx_babr++;#ifdef VERBOSE_GFAR_ERRORS		printk(KERN_DEBUG "%s: babbling error\n", dev->name);#endif	}	if (events & IEVENT_EBERR) {		priv->extra_stats.eberr++;#ifdef VERBOSE_GFAR_ERRORS		printk(KERN_DEBUG "%s: EBERR\n", dev->name);#endif	}	if (events & IEVENT_RXC)#ifdef VERBOSE_GFAR_ERRORS		printk(KERN_DEBUG "%s: control frame\n", dev->name);#endif	if (events & IEVENT_BABT) {		priv->extra_stats.tx_babt++;#ifdef VERBOSE_GFAR_ERRORS		printk(KERN_DEBUG "%s: babt error\n", dev->name);#endif	}	return IRQ_HANDLED;}