]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Enable/disable interrupts in driver open/close.
authorMichael Brown <mcb30@etherboot.org>
Tue, 3 Jul 2007 11:50:58 +0000 (12:50 +0100)
committerMichael Brown <mcb30@etherboot.org>
Tue, 3 Jul 2007 11:50:58 +0000 (12:50 +0100)
src/drivers/net/legacy.c

index 22ddfe6613952fbe229e01bfa32f9076144f16d7..2d4633d4408b535e99a2a797ce422bdcae50960a 100644 (file)
@@ -57,12 +57,17 @@ static void legacy_poll ( struct net_device *netdev, unsigned int rx_quota ) {
        }
 }
 
-static int legacy_open ( struct net_device *netdev __unused ) {
+static int legacy_open ( struct net_device *netdev ) {
+       struct nic *nic = netdev->priv;
+
+       nic->nic_op->irq ( nic, ENABLE );
        return 0;
 }
 
-static void legacy_close ( struct net_device *netdev __unused ) {
-       /* Nothing to do */
+static void legacy_close ( struct net_device *netdev ) {
+       struct nic *nic = netdev->priv;
+
+       nic->nic_op->irq ( nic, DISABLE );
 }
 
 int legacy_probe ( void *hwdev,