Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Dec 2015 22:52:37 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292034 - head/sys/dev/isp
Message-ID:  <201512092252.tB9MqbYw055700@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Dec  9 22:52:37 2015
New Revision: 292034
URL: https://svnweb.freebsd.org/changeset/base/292034

Log:
  Add PCI ID for 16G QLogic chips in FCoE mode.
  
  I haven't tested FCoE really yet, but the driver attaches fine.

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

Modified: head/sys/dev/isp/isp_pci.c
==============================================================================
--- head/sys/dev/isp/isp_pci.c	Wed Dec  9 22:46:40 2015	(r292033)
+++ head/sys/dev/isp/isp_pci.c	Wed Dec  9 22:52:37 2015	(r292034)
@@ -294,6 +294,10 @@ static struct ispmdvec mdvec_2600 = {
 #define	PCI_PRODUCT_QLOGIC_ISP2031	0x2031
 #endif
 
+#ifndef	PCI_PRODUCT_QLOGIC_ISP8031
+#define	PCI_PRODUCT_QLOGIC_ISP8031	0x8031
+#endif
+
 #define        PCI_QLOGIC_ISP5432      \
        ((PCI_PRODUCT_QLOGIC_ISP5432 << 16) | PCI_VENDOR_QLOGIC)
 
@@ -348,6 +352,9 @@ static struct ispmdvec mdvec_2600 = {
 #define	PCI_QLOGIC_ISP2031	\
 	((PCI_PRODUCT_QLOGIC_ISP2031 << 16) | PCI_VENDOR_QLOGIC)
 
+#define	PCI_QLOGIC_ISP8031	\
+	((PCI_PRODUCT_QLOGIC_ISP8031 << 16) | PCI_VENDOR_QLOGIC)
+
 /*
  * Odd case for some AMI raid cards... We need to *not* attach to this.
  */
@@ -458,6 +465,9 @@ isp_pci_probe(device_t dev)
 	case PCI_QLOGIC_ISP2031:
 		device_set_desc(dev, "Qlogic ISP 2031 PCI FC-AL Adapter");
 		break;
+	case PCI_QLOGIC_ISP8031:
+		device_set_desc(dev, "Qlogic ISP 8031 PCI FCoE Adapter");
+		break;
 	default:
 		return (ENXIO);
 	}
@@ -800,6 +810,7 @@ isp_pci_attach(device_t dev)
 		pcs->pci_poff[MBOX_BLOCK >> _BLK_REG_SHFT] = PCI_MBOX_REGS2400_OFF;
 		break;
 	case PCI_QLOGIC_ISP2031:
+	case PCI_QLOGIC_ISP8031:
 		did = 0x2600;
 		isp->isp_nchan += isp_nvports;
 		isp->isp_mdvec = &mdvec_2600;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512092252.tB9MqbYw055700>