linux/drivers/net/ethernet/ti/davinci_emac.c
/**
 * emac_int_enable - Enable EMAC module interrupt (from adapter)
 * @priv: The DaVinci EMAC private adapter structure
 *
 * Enable EMAC interrupt on the adapter
 *
 */
Enable EMAC module interrupt (from adapter)
@priv: The DaVinci EMAC private adapter structure

Enable EMAC interrupt on the adapter
Enable EMAC module interrupt ( from adapter ) @priv : The DaVinci EMAC private adapter structure Enable EMAC interrupt on the adapter
static void emac_int_enable(struct emac_priv *priv)
{
	if (priv->version == EMAC_VERSION_2) {
		if (priv->int_enable)
			priv->int_enable();
		emac_ctrl_write(EMAC_DM646X_CMRXINTEN, 0xff);
		emac_ctrl_write(EMAC_DM646X_CMTXINTEN, 0xff);
	} else {
		emac_ctrl_write(EMAC_CTRL_EWCTL, 0x1);
	}
}
static void emac_int_enable ( struct emac_priv * priv ) { if ( priv -> version == EMAC_VERSION_2 ) { if ( priv -> int_enable ) priv -> int_enable ( ) ; emac_ctrl_write ( EMAC_DM646X_CMRXINTEN , 0xff ) ; emac_ctrl_write ( EMAC_DM646X_CMTXINTEN , 0xff ) ; } else { emac_ctrl_write ( EMAC_CTRL_EWCTL , 0x1 ) ; } }
emac_int_enable - Enable EMAC module interrupt (from adapter)
 @priv: The DaVinci EMAC private adapter structure
emac_int_enable - Enable EMAC module interrupt ( from adapter ) @priv : The DaVinci EMAC private adapter structure
/* In addition to turning on interrupt Enable, we need
		 * ack by writing appropriate values to the EOI
		 * register */ /* NOTE: Rx Threshold and Misc interrupts are not enabled */ /* Set DM644x control registers for interrupt control */