Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e1000] Remove deprecated IRQ_FORCE action from e1000_irq()
The gPXE driver API does not have a "force interrupt" function.
Remove legacy code.

Signed-off-by: Marty Connor <mdc@etherboot.org>
  • Loading branch information
thomil authored and Marty Connor committed Jan 5, 2010
1 parent 9760005 commit cd04338
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions src/drivers/net/e1000/e1000.c
Expand Up @@ -109,18 +109,6 @@ e1000_irq_disable ( struct e1000_adapter *adapter )
E1000_WRITE_FLUSH ( &adapter->hw );
}

/**
* e1000_irq_force - trigger interrupt
*
* @v adapter e1000 private structure
**/
static void
e1000_irq_force ( struct e1000_adapter *adapter )
{
E1000_WRITE_REG ( &adapter->hw, ICS, E1000_ICS_RXDMT0 );
E1000_WRITE_FLUSH ( &adapter->hw );
}

/**
* e1000_sw_init - Initialize general software structures (struct e1000_adapter)
*
Expand Down Expand Up @@ -813,18 +801,11 @@ e1000_irq ( struct net_device *netdev, int enable )
struct e1000_adapter *adapter = netdev_priv(netdev);

DBG ( "e1000_irq\n" );

switch ( enable ) {
case 0 :
e1000_irq_disable ( adapter );
break;
case 1 :

if ( enable )
e1000_irq_enable ( adapter );
break;
case 2 :
e1000_irq_force ( adapter );
break;
}
else
e1000_irq_disable ( adapter );
}

static struct net_device_operations e1000_operations;
Expand Down

0 comments on commit cd04338

Please sign in to comment.