diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-04-06 08:04:06 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-04-06 08:04:06 +0000 |
commit | 8afabf0971c4edb5c9f7901e0a3d3009a6135ea0 (patch) | |
tree | e047dddbb8c0397ec4e2d13e74b4de266d5d5de2 /sys/dev/isa | |
parent | e343c0910755cd72a332b3cb76c17a107a227766 (diff) |
Only print an error if I/O cannot be mapped at egprobe if EGDEBUG is set.
Don't panic if I/O cannot be mapped at egattach, print and return instead.
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/if_eg.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/isa/if_eg.c b/sys/dev/isa/if_eg.c index e830fed97eb..fa97ef51f74 100644 --- a/sys/dev/isa/if_eg.c +++ b/sys/dev/isa/if_eg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_eg.c,v 1.17 2001/02/20 19:39:39 mickey Exp $ */ +/* $OpenBSD: if_eg.c,v 1.18 2001/04/06 08:04:05 fgsch Exp $ */ /* $NetBSD: if_eg.c,v 1.26 1996/05/12 23:52:27 mycroft Exp $ */ /* @@ -332,7 +332,7 @@ egprobe(parent, match, aux) } if (bus_space_map(bst, ia->ia_iobase, EG_IO_PORTS, 0, &bsh)) { - printf("%s: can't map I/O space\n", sc->sc_dev.dv_xname); + dprintf(("%s: can't map I/O space\n", sc->sc_dev.dv_xname)); return (0); } sc->sc_bsh = bsh; @@ -392,8 +392,10 @@ egattach(parent, self, aux) bus_space_handle_t bsh; struct ifnet *ifp = &sc->sc_arpcom.ac_if; - if (bus_space_map(bst, ia->ia_iobase, EG_IO_PORTS, 0, &bsh)) - panic("%s: can't map I/O space", sc->sc_dev.dv_xname); + if (bus_space_map(bst, ia->ia_iobase, EG_IO_PORTS, 0, &bsh)) { + printf("%s: can't map i/o space\n", sc->sc_dev.dv_xname); + return; + } sc->sc_bsh = bsh; egstop(sc); |