1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

add ISP_DISABLE_2200_SUPPORT defines; Add reference to 2200 F/W

This commit is contained in:
Matt Jacob 1999-07-05 20:24:46 +00:00
parent 7f971fc2ca
commit 5542fe4b1a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48600
2 changed files with 28 additions and 16 deletions

View File

@ -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,12 +280,14 @@ 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;

View File

@ -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,12 +280,14 @@ 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;