diff options
author | 1999-02-06 17:01:17 +0000 | |
---|---|---|
committer | 1999-02-06 17:01:17 +0000 | |
commit | 239c32102ef6f54caaefd90d82d4f4686808fc17 (patch) | |
tree | f8813590197f8425d0e906eb2eb54aad724d3a5e | |
parent | match qfe's as hme's (diff) | |
download | wireguard-openbsd-239c32102ef6f54caaefd90d82d4f4686808fc17.tar.xz wireguard-openbsd-239c32102ef6f54caaefd90d82d4f4686808fc17.zip |
Always initialize sc->handle[i].flags.
Check if the socket is present before disabling the CSC_INTR.
-rw-r--r-- | sys/dev/ic/i82365.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/i82365.c b/sys/dev/ic/i82365.c index c656d10ab2e..cc13702cae5 100644 --- a/sys/dev/ic/i82365.c +++ b/sys/dev/ic/i82365.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i82365.c,v 1.4 1999/01/28 04:58:33 fgsch Exp $ */ +/* $OpenBSD: i82365.c,v 1.5 1999/02/06 17:01:17 fgsch Exp $ */ /* $NetBSD: i82365.c,v 1.10 1998/06/09 07:36:55 thorpej Exp $ */ /* @@ -227,6 +227,9 @@ pcic_attach(sc) } DPRINTF((" 0x%02x\n", reg)); + } else { + sc->handle[2].flags = 0; + sc->handle[3].flags = 0; } if (count == 0) @@ -237,13 +240,11 @@ pcic_attach(sc) /* XXX block interrupts? */ for (i = 0; i < PCIC_NSLOTS; i++) { -#if 0 /* * this should work, but w/o it, setting tty flags hangs at * boot time. */ if (sc->handle[i].flags & PCIC_FLAG_SOCKETP) -#endif { pcic_write(&sc->handle[i], PCIC_CSC_INTR, 0); pcic_read(&sc->handle[i], PCIC_CSC); |