diff options
| author | ad <ad@NetBSD.org> | 2002-01-02 19:04:17 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2002-01-02 19:04:17 +0000 |
| commit | 215ddc9ef783b22fa97413bba6ffbf38d1923425 (patch) | |
| tree | babb07bb296faae15f3d89730520b88055f7789a /sys/dev | |
| parent | 4cbb128b70c45d5437b8da5753e6b6cb9e2d3b87 (diff) | |
Set sc_framesize to a reasonable value early on so that DEBUG code
doesn't choke before we discern the real value.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/i2o/iop.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/dev/i2o/iop.c b/sys/dev/i2o/iop.c index 6bdf833acb8..8e4df765f26 100644 --- a/sys/dev/i2o/iop.c +++ b/sys/dev/i2o/iop.c @@ -1,4 +1,4 @@ -/* $NetBSD: iop.c,v 1.20 2001/11/13 12:24:58 lukem Exp $ */ +/* $NetBSD: iop.c,v 1.21 2002/01/02 19:04:17 ad Exp $ */ /*- * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.20 2001/11/13 12:24:58 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.21 2002/01/02 19:04:17 ad Exp $"); #include "opt_i2o.h" #include "iop.h" @@ -314,6 +314,11 @@ iop_init(struct iop_softc *sc, const char *intrstr) } state++; +#ifdef I2ODEBUG + /* So that our debug checks don't choke. */ + sc->sc_framesize = 128; +#endif + /* Reset the adapter and request status. */ if ((rv = iop_reset(sc)) != 0) { printf("%s: not responding (reset)\n", sc->sc_dv.dv_xname); @@ -943,9 +948,10 @@ iop_status_get(struct iop_softc *sc, int nosleep) tsleep(iop_status_get, PWAIT, "iopstat", hz / 10); } - if (st->syncbyte != 0xff) + if (st->syncbyte != 0xff) { + printf("%s: STATUS_GET timed out\n", sc->sc_dv.dv_xname); rv = EIO; - else { + } else { memcpy(&sc->sc_status, st, sizeof(sc->sc_status)); rv = 0; } |
