More set up for using ioapics
[akaros.git] / kern / drivers / dev / ether.c
index 2dfa58d..ff00f7e 100644 (file)
@@ -26,7 +26,7 @@
 #include <pmap.h>
 #include <smp.h>
 #include <ip.h>
-
+#include <arch/io.h>
 enum {
        Type8021Q = 0x8100,                     /* value of type field for 802.1[pQ] tags */
 };
@@ -682,7 +682,7 @@ static void etherreset(void)
                        snprintf(name, sizeof(name), "ether%d", ctlrno);
 
                        if (ether->interrupt != NULL)
-                               register_dev_irq(ether->irq, ether->interrupt, ether);
+                               register_dev_irq(ether->irq, ether->interrupt, ether, BUSUNKNOWN);
 
                        i = snprintf(buf, sizeof(buf),
                                                 "#l%d: %s: %dMbps port 0x%x irq %u", ctlrno,