~kris/9p

9hist

7dc8d90df39245faceac3b316e5e429866c9576d — David du Colombier 28 years ago 77fd24e
Plan 9 from Bell Labs 1998-06-25
1 files changed, 36 insertions(+), 0 deletions(-)

A pc/etherwavelan.c
A pc/etherwavelan.c => pc/etherwavelan.c +36 -0
@@ 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);
}