summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2014-03-16 10:36:45 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2014-03-16 10:36:45 +0000
commit0ea90ce12c87d6265b608f7bc66cbfdeda4d364f (patch)
tree79ff46f8988cc92e397c327c797105ce601f4019 /sys/dev
parentfc9c327ccc47dcc7b2c4197af2cbb842f362ae10 (diff)
Patch up the firmware revision for the ISP1000 firmware since it doesn't
return the proper version numbers. From isp(4).
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/qlw.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/ic/qlw.c b/sys/dev/ic/qlw.c
index e6e0df29832..5e6946bf06a 100644
--- a/sys/dev/ic/qlw.c
+++ b/sys/dev/ic/qlw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qlw.c,v 1.17 2014/03/15 21:49:47 kettenis Exp $ */
+/* $OpenBSD: qlw.c,v 1.18 2014/03/16 10:36:44 kettenis Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -243,6 +243,13 @@ qlw_attach(struct qlw_softc *sc)
sc->sc_mbox[0]);
return (ENXIO);
}
+ /* The ISP1000 firmware we use doesn't return a version number. */
+ if (sc->sc_isp_gen == QLW_GEN_ISP1000 && sc->sc_firmware) {
+ sc->sc_mbox[1] = 1;
+ sc->sc_mbox[2] = 37;
+ sc->sc_mbox[3] = 0;
+ sc->sc_mbox[6] = 0;
+ }
printf("%s: firmware rev %d.%d.%d, attrs 0x%x\n", DEVNAME(sc),
sc->sc_mbox[1], sc->sc_mbox[2], sc->sc_mbox[3], sc->sc_mbox[6]);