]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/pc/ethersmc.c
[9front] [PATCH] audiohda: add PCI ID for Intel C610/X99
[plan9front.git] / sys / src / 9 / pc / ethersmc.c
index 64dcd0075182bf40d4c16fb7f23bf493b7887e23..1241c605ac76320a506d79f3d28f0c6449969f29 100644 (file)
@@ -10,7 +10,7 @@
 #include "io.h"
 #include "../port/error.h"
 #include "../port/netif.h"
-#include "etherif.h"
+#include "../port/etherif.h"
 
 enum {
        IoSize          = 0x10,         /* port pool size */
@@ -405,7 +405,7 @@ receive(Ether* ether)
                bp->wp++;
        }
          
-       etheriq(ether, bp, 1);
+       etheriq(ether, bp);
        ether->inpackets++;
        outs(port + MmuCmd, McRelease);
 }
@@ -766,12 +766,15 @@ reset(Ether* ether)
 
        ether->attach = attach;
        ether->transmit = transmit;
-       ether->interrupt = interrupt;
        ether->ifstat = ifstat;
        ether->promiscuous = promiscuous;
        ether->multicast = multicast;
        ether->arg = ether;
+
        iunlock(ctlr);
+
+       intrenable(ether->irq, interrupt, ether, ether->tbdf, ether->name);
+
        return 0;
 }