summaryrefslogtreecommitdiff
path: root/sys/dev/isp/isp_pci.c
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>1999-07-05 20:24:46 +0000
committerMatt Jacob <mjacob@FreeBSD.org>1999-07-05 20:24:46 +0000
commit5542fe4b1a8b373da7572ba0fd1c363e643ed3d7 (patch)
tree273d7bb82417920068df5b98387db47b3f36b50b /sys/dev/isp/isp_pci.c
parent7f971fc2ca56784613a6eee1aa86277b1da708d3 (diff)
Notes
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
-rw-r--r--sys/dev/isp/isp_pci.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index ba3afb840264..1380d1da31f8 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -1,5 +1,5 @@
-/* $Id: isp_pci.c,v 1.23 1999/06/24 16:42:33 mjacob Exp $ */
-/* release_6_2_99 */
+/* $Id: isp_pci.c,v 1.24 1999/07/02 23:18:03 mjacob Exp $ */
+/* release_6_5_99 */
/*
* PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
* FreeBSD Version.
@@ -121,7 +121,9 @@ static struct ispmdvec mdvec_2100 = {
0, /* Irrelevant to the 2100 */
0
};
+#endif
+#ifdef ISP_DISABLE_2200_SUPPORT
static struct ispmdvec mdvec_2200 = {
isp_pci_rd_reg,
isp_pci_wr_reg,
@@ -131,11 +133,11 @@ static struct ispmdvec mdvec_2200 = {
NULL,
isp_pci_reset1,
isp_pci_dumpregs,
- NULL,
- 0,
+ ISP2200_RISC_CODE,
+ ISP2200_CODE_LENGTH,
ISP2100_CODE_ORG,
+ ISP2200_RISC_CODE,
0,
- 0, /* Irrelevant to the 2100 */
0
};
#endif
@@ -278,13 +280,15 @@ isp_pci_probe(pcici_t tag, pcidi_t type)
break;
#endif
#ifndef ISP_DISABLE_2100_SUPPORT
- case PCI_QLOGIC_ISP2200:
- x = "Qlogic ISP 2200 PCI FC-AL Adapter";
- break;
case PCI_QLOGIC_ISP2100:
x = "Qlogic ISP 2100 PCI FC-AL Adapter";
break;
#endif
+#ifndef ISP_DISABLE_2200_SUPPORT
+ case PCI_QLOGIC_ISP2200:
+ x = "Qlogic ISP 2200 PCI FC-AL Adapter";
+ break;
+#endif
default:
return (NULL);
}
@@ -439,6 +443,8 @@ isp_pci_attach(pcici_t cfid, int unit)
linesz = 1;
}
}
+#endif
+#ifndef ISP_DISABLE_2200_SUPPORT
if (data == PCI_QLOGIC_ISP2200) {
mdvp = &mdvec_2200;
basetype = ISP_HA_FC_2200;