#include "io.h"
#include "../port/error.h"
#include "../port/netif.h"
-#include "etherif.h"
+#include "../port/etherif.h"
enum {
IoSize = 0x10, /* port pool size */
bp->wp++;
}
- etheriq(ether, bp, 1);
+ etheriq(ether, bp);
ether->inpackets++;
outs(port + MmuCmd, McRelease);
}
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;
}