From 9ba867378683452be4f031bea14d318de4e88d78 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Tue, 6 Jul 1999 01:24:20 +0000 Subject: add in a boot environment isp_disable flag --- sys/dev/isp/isp_pci.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sys/dev/isp/isp_pci.c') diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 5bab478252417..69dbd833d1a00 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -1,4 +1,4 @@ -/* $Id: isp_pci.c,v 1.26 1999/07/05 22:01:48 mjacob Exp $ */ +/* $Id: isp_pci.c,v 1.27 1999/07/05 22:04:08 mjacob Exp $ */ /* release_6_5_99 */ /* * PCI specific probe and attach routines for Qlogic ISP SCSI adapters. @@ -322,6 +322,16 @@ isp_pci_attach(pcici_t cfid, int unit) } bzero(pcs, sizeof (struct isp_pcisoftc)); + /* + * Figure out if we're supposed to skip this one. + */ + if (getenv_int("isp_disable", &bitmap)) { + if (bitmap & (1 << unit)) { + printf("isp%d: not configuring\n", unit); + return; + } + } + /* * Figure out which we should try first - memory mapping or i/o mapping? */ -- cgit v1.3