Author: mjacob
Date: Thu Mar 10 23:53:01 2011
New Revision: 219471
URL: http://svn.freebsd.org/changeset/base/219471

Log:
  Add support QLE220 card- an 2500 lookalike.
  
  Obtained mostly from: Roman && Konstantin
  MFC after:    1 week

Modified:
  head/sys/dev/isp/isp_pci.c

Modified: head/sys/dev/isp/isp_pci.c
==============================================================================
--- head/sys/dev/isp/isp_pci.c  Thu Mar 10 23:20:32 2011        (r219470)
+++ head/sys/dev/isp/isp_pci.c  Thu Mar 10 23:53:01 2011        (r219471)
@@ -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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to