diff options
author | dg <dg@FreeBSD.org> | 1994-11-17 14:42:27 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-11-17 14:42:27 +0000 |
commit | c33a64643062e818babe473de46a12aa6aa082d2 (patch) | |
tree | d35d235147420c7d49e07bf85f0673125276cefb /sys | |
parent | 850f1f5bb637dd7f3d2de0e394c70b6b055e091f (diff) | |
download | FreeBSD-src-c33a64643062e818babe473de46a12aa6aa082d2.zip FreeBSD-src-c33a64643062e818babe473de46a12aa6aa082d2.tar.gz |
Fixed rather serious bug where the interface wasn't started after it was
stopped in ed_setrcr(). I'm amazed that the driver worked at all. Thanks to
John Hay for pointing this out.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ed/if_ed.c | 7 | ||||
-rw-r--r-- | sys/i386/isa/if_ed.c | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index b8bba5d..f67d134 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -13,7 +13,7 @@ * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, * and a variety of similar clones. * - * $Id: if_ed.c,v 1.54 1994/10/23 21:27:16 wollman Exp $ + * $Id: if_ed.c,v 1.55 1994/11/13 07:17:46 davidg Exp $ */ #include "ed.h" @@ -2509,6 +2509,11 @@ ed_setrcr(ifp, sc) outb(sc->nic_addr + ED_P0_RCR, ED_RCR_AB); } } + + /* + * Start interface. + */ + outb(sc->nic_addr + ED_P0_CR, sc->cr_proto | ED_CR_STA); } /* diff --git a/sys/i386/isa/if_ed.c b/sys/i386/isa/if_ed.c index b8bba5d..f67d134 100644 --- a/sys/i386/isa/if_ed.c +++ b/sys/i386/isa/if_ed.c @@ -13,7 +13,7 @@ * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, * and a variety of similar clones. * - * $Id: if_ed.c,v 1.54 1994/10/23 21:27:16 wollman Exp $ + * $Id: if_ed.c,v 1.55 1994/11/13 07:17:46 davidg Exp $ */ #include "ed.h" @@ -2509,6 +2509,11 @@ ed_setrcr(ifp, sc) outb(sc->nic_addr + ED_P0_RCR, ED_RCR_AB); } } + + /* + * Start interface. + */ + outb(sc->nic_addr + ED_P0_CR, sc->cr_proto | ED_CR_STA); } /* |