diff options
author | mjacob <mjacob@FreeBSD.org> | 2002-10-11 17:28:01 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2002-10-11 17:28:01 +0000 |
commit | 4c7b07a1ef3d72cb8fb30d03fe680a758e80daad (patch) | |
tree | b409a9507b8133ed92029731c0294ac4694612a8 /sys/dev/isp/isp_pci.c | |
parent | 89ee3553f82e20daa697f61e79c568eceb2e93b8 (diff) | |
download | FreeBSD-src-4c7b07a1ef3d72cb8fb30d03fe680a758e80daad.zip FreeBSD-src-4c7b07a1ef3d72cb8fb30d03fe680a758e80daad.tar.gz |
This should enable 10160 support. As best as I can tell, the same
f/w as 12160 is used, and otherwise, this is just a single channel
variant of the 10160.
MFC after: 0 days
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
-rw-r--r-- | sys/dev/isp/isp_pci.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 3701376..f6e767e 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -181,6 +181,10 @@ static struct ispmdvec mdvec_2300 = { #define PCI_PRODUCT_QLOGIC_ISP1080 0x1080 #endif +#ifndef PCI_PRODUCT_QLOGIC_ISP10160 +#define PCI_PRODUCT_QLOGIC_ISP10160 0x1016 +#endif + #ifndef PCI_PRODUCT_QLOGIC_ISP12160 #define PCI_PRODUCT_QLOGIC_ISP12160 0x1216 #endif @@ -215,6 +219,9 @@ static struct ispmdvec mdvec_2300 = { #define PCI_QLOGIC_ISP1080 \ ((PCI_PRODUCT_QLOGIC_ISP1080 << 16) | PCI_VENDOR_QLOGIC) +#define PCI_QLOGIC_ISP10160 \ + ((PCI_PRODUCT_QLOGIC_ISP10160 << 16) | PCI_VENDOR_QLOGIC) + #define PCI_QLOGIC_ISP12160 \ ((PCI_PRODUCT_QLOGIC_ISP12160 << 16) | PCI_VENDOR_QLOGIC) @@ -294,6 +301,9 @@ isp_pci_probe(device_t dev) case PCI_QLOGIC_ISP1280: device_set_desc(dev, "Qlogic ISP 1280 PCI SCSI Adapter"); break; + case PCI_QLOGIC_ISP10160: + device_set_desc(dev, "Qlogic ISP 10160 PCI SCSI Adapter"); + break; case PCI_QLOGIC_ISP12160: if (pci_get_subvendor(dev) == AMI_RAID_SUBVENDOR_ID) { return (ENXIO); @@ -458,6 +468,13 @@ isp_pci_attach(device_t dev) pcs->pci_poff[DMA_BLOCK >> _BLK_REG_SHFT] = ISP1080_DMA_REGS_OFF; } + if (pci_get_devid(dev) == PCI_QLOGIC_ISP10160) { + mdvp = &mdvec_12160; + basetype = ISP_HA_SCSI_10160; + psize = sizeof (sdparam); + pcs->pci_poff[DMA_BLOCK >> _BLK_REG_SHFT] = + ISP1080_DMA_REGS_OFF; + } if (pci_get_devid(dev) == PCI_QLOGIC_ISP12160) { mdvp = &mdvec_12160; basetype = ISP_HA_SCSI_12160; |