diff options
author | mjacob <mjacob@FreeBSD.org> | 2011-03-10 23:53:01 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2011-03-10 23:53:01 +0000 |
commit | c922219ced7087f1e7269b8cc8289a02c24fa3e0 (patch) | |
tree | e3c1acc198f9c46d34481830517461c11d105eee /sys/dev/isp | |
parent | a7e1d7a7c6b39cd664f6d9b1334c8fc3a3bb6864 (diff) | |
download | FreeBSD-src-c922219ced7087f1e7269b8cc8289a02c24fa3e0.zip FreeBSD-src-c922219ced7087f1e7269b8cc8289a02c24fa3e0.tar.gz |
Add support QLE220 card- an 2500 lookalike.
Obtained mostly from: Roman && Konstantin
MFC after: 1 week
Diffstat (limited to 'sys/dev/isp')
-rw-r--r-- | sys/dev/isp/isp_pci.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index fc77a46..5eb0739 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -272,6 +272,12 @@ static struct ispmdvec mdvec_2500 = { #define PCI_PRODUCT_QLOGIC_ISP6322 0x6322 #endif +#ifndef PCI_PRODUCT_QLOGIC_ISP5432 +#define PCI_PRODUCT_QLOGIC_ISP5432 0x5432 +#endif + +#define PCI_QLOGIC_ISP5432 \ + ((PCI_PRODUCT_QLOGIC_ISP5432 << 16) | PCI_VENDOR_QLOGIC) #define PCI_QLOGIC_ISP1020 \ ((PCI_PRODUCT_QLOGIC_ISP1020 << 16) | PCI_VENDOR_QLOGIC) @@ -412,6 +418,9 @@ isp_pci_probe(device_t dev) case PCI_QLOGIC_ISP2532: device_set_desc(dev, "Qlogic ISP 2532 PCI FC-AL Adapter"); break; + case PCI_QLOGIC_ISP5432: + device_set_desc(dev, "Qlogic ISP 5432 PCI FC-AL Adapter"); + break; case PCI_QLOGIC_ISP6312: device_set_desc(dev, "Qlogic ISP 6312 PCI FC-AL Adapter"); break; @@ -804,6 +813,12 @@ isp_pci_attach(device_t dev) isp->isp_type = ISP_HA_FC_2500; pcs->pci_poff[MBOX_BLOCK >> _BLK_REG_SHFT] = PCI_MBOX_REGS2400_OFF; break; + case PCI_QLOGIC_ISP5432: + did = 0x2500; + isp->isp_mdvec = &mdvec_2500; + isp->isp_type = ISP_HA_FC_2500; + pcs->pci_poff[MBOX_BLOCK >> _BLK_REG_SHFT] = PCI_MBOX_REGS2400_OFF; + break; default: device_printf(dev, "unknown device type\n"); goto bad; |