summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>1999-07-06 01:23:35 +0000
committerMatt Jacob <mjacob@FreeBSD.org>1999-07-06 01:23:35 +0000
commit27ad293932d4064cbae46ec1a8ba6329b05f1a1b (patch)
treea5b3df0cf205760890ca8adde8ba6c889a99f874
parenta4d11d99d252f2bc0c952d0d419b25a740f444a4 (diff)
Notes
-rw-r--r--sys/pci/isp_pci.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/pci/isp_pci.c b/sys/pci/isp_pci.c
index 81782b37e236..4eac9c622e9a 100644
--- a/sys/pci/isp_pci.c
+++ b/sys/pci/isp_pci.c
@@ -1,4 +1,4 @@
-/* $Id: isp_pci.c,v 1.13.2.4 1999/07/05 20:27:41 mjacob Exp $ */
+/* $Id: isp_pci.c,v 1.13.2.5 1999/07/05 22:05:10 mjacob Exp $ */
/* release_6_2_99 */
/*
* PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
@@ -323,6 +323,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?
*/
#if SCSI_ISP_PREFER_MEM_MAP == 1