aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp/isp_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
-rw-r--r--sys/dev/isp/isp_pci.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index e7f9d4b77e38..e8fd7b3cf571 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -291,6 +291,15 @@ isp_get_generic_options(device_t dev, ispsoftc_t *isp)
isp->isp_confopts |= ISP_CFG_NORELOAD;
}
tval = 0;
+ if (resource_int_value(device_get_name(dev), device_get_unit(dev), "fwload_force", &tval) == 0 && tval != 0) {
+ isp->isp_confopts |= ISP_CFG_FWLOAD_FORCE;
+ }
+ if ((isp->isp_confopts & (ISP_CFG_NORELOAD|ISP_CFG_FWLOAD_FORCE)) ==
+ (ISP_CFG_NORELOAD|ISP_CFG_FWLOAD_FORCE)) {
+ device_printf(dev, "WARNING: both fwload_disable and "
+ "fwload_force set, ispfw(4) loading disabled\n");
+ }
+ tval = 0;
if (resource_int_value(device_get_name(dev), device_get_unit(dev), "ignore_nvram", &tval) == 0 && tval != 0) {
isp->isp_confopts |= ISP_CFG_NONVRAM;
}