diff options
author | 2014-02-03 14:16:34 +0000 | |
---|---|---|
committer | 2014-02-03 14:16:34 +0000 | |
commit | fa72eff099c8fd791e3b474e0110259a37373dd2 (patch) | |
tree | 4dc908f7173fe83f34a369806090341cce62c871 | |
parent | remove extra cache copy in memory... (diff) | |
download | wireguard-openbsd-fa72eff099c8fd791e3b474e0110259a37373dd2.tar.xz wireguard-openbsd-fa72eff099c8fd791e3b474e0110259a37373dd2.zip |
use the same option as isp(4) to build without firmware.
stub out the firmware loading code and don't include the firmware files
when ISP_NOFIRMWARE is defined.
-rw-r--r-- | sys/dev/ic/qla.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/sys/dev/ic/qla.c b/sys/dev/ic/qla.c index 9ce91ddbd94..cdd3a018152 100644 --- a/sys/dev/ic/qla.c +++ b/sys/dev/ic/qla.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qla.c,v 1.14 2014/02/02 07:53:33 jmatthew Exp $ */ +/* $OpenBSD: qla.c,v 1.15 2014/02/03 14:16:34 jmatthew Exp $ */ /* * Copyright (c) 2011 David Gwynne <dlg@openbsd.org> @@ -38,9 +38,10 @@ #include <dev/ic/qlareg.h> #include <dev/ic/qlavar.h> -/* firmware */ +#ifndef ISP_NOFIRMWARE #include <dev/microcode/isp/asm_2200.h> #include <dev/microcode/isp/asm_2300.h> +#endif struct cfdriver qla_cd = { NULL, @@ -1736,6 +1737,22 @@ qla_put_cmd_cont(struct qla_softc *sc, void *buf, struct scsi_xfer *xs, } #endif +#ifdef ISP_NOFIRMWARE + +int +qla_load_firmware_2200(struct qla_softc *sc) +{ + return (0); +} + +int +qla_load_firmware_2300(struct qla_softc *sc) +{ + return (0); +} + +#else + int qla_load_firmware_2200(struct qla_softc *sc) { @@ -1838,6 +1855,8 @@ qla_load_firmware_2300(struct qla_softc *sc) return (0); } +#endif /* ISP_NOFIRMWARE */ + int qla_read_nvram(struct qla_softc *sc) { |