diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-06-06 18:53:51 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-06-06 18:53:51 +0000 |
commit | cbe7ac9be57e84402d90e7a530dd3c564c042311 (patch) | |
tree | b0b90d8ac740302cc124aacb1fdb9351abd43a1a /sys/dev/pcmcia | |
parent | 7be616f648244b67b34baf40065f98e9c5816734 (diff) |
PCI shim for if_wi.c as promised. Magic for setting the PLX up
correctly take from the FreeBSD driver and explained by imp@
Currently this is hard-coded for PrismII cards but that will change
when the PrismII auto-detect code is added to if_wi.c.
Tested with a LinkSys WPC11 in a Global Sun GL24110P02 (aka LinSys WDT11)
Diffstat (limited to 'sys/dev/pcmcia')
-rw-r--r-- | sys/dev/pcmcia/if_wi_pcmcia.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/if_wi_pcmcia.c b/sys/dev/pcmcia/if_wi_pcmcia.c index 00b06b02d8a..a09712ec3be 100644 --- a/sys/dev/pcmcia/if_wi_pcmcia.c +++ b/sys/dev/pcmcia/if_wi_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi_pcmcia.c,v 1.2 2001/05/22 11:04:50 fgsch Exp $ */ +/* $OpenBSD: if_wi_pcmcia.c,v 1.3 2001/06/06 18:53:49 millert Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -313,6 +313,10 @@ wi_pcmcia_attach(parent, self, aux) goto bad; } + /* Make sure interrupts are disabled. */ + CSR_WRITE_2(sc, WI_INT_EN, 0); + CSR_WRITE_2(sc, WI_EVENT_ACK, 0xffff); + wi_attach(sc); return; |