From 7dc8d90df39245faceac3b316e5e429866c9576d Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 25 Jun 1998 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1998-06-25 --- pc/etherwavelan.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pc/etherwavelan.c diff --git a/pc/etherwavelan.c b/pc/etherwavelan.c new file mode 100644 index 0000000000000000000000000000000000000000..249915fa1fbff69e9ff4ce9c3379b1109e1b820c --- /dev/null +++ b/pc/etherwavelan.c @@ -0,0 +1,36 @@ +/* + */ +#include "u.h" +#include "../port/lib.h" +#include "mem.h" +#include "dat.h" +#include "fns.h" +#include "io.h" +#include "../port/error.h" +#include "../port/netif.h" + +#include "etherif.h" + +static int +reset(Ether* ether) +{ + int slot; + + if(ether->irq == 0) + ether->irq = 10; + if(ether->port == 0) + ether->port = 0x240; + + if((slot = pcmspecial(ether->type, ether)) < 0) + return -1; + + print("WaveLAN: slot %d, port 0x%uX irq %d\n", slot, ether->port, ether->irq); + + return -1; +} + +void +etherwavelanlink(void) +{ + addethercard("WaveLAN", reset); +}