This patch adds an additional device ID to recognize a new HCA.

This change has been committed to
git://git.openfabrics.org/~ralphc/libipathverbs/.git
and I would like to see this version of libipathverbs
become part of OFED 1.3.

Signed-off-by: Ralph Campbell <[EMAIL PROTECTED]>

diff --git a/src/ipathverbs.c b/src/ipathverbs.c
index f3e2fde..293dba8 100644
--- a/src/ipathverbs.c
+++ b/src/ipathverbs.c
@@ -70,6 +70,10 @@
 #define PCI_DEVICE_ID_INFINIPATH_6220          0x6220
 #endif
 
+#ifndef PCI_DEVICE_ID_INFINIPATH_7220
+#define PCI_DEVICE_ID_INFINIPATH_7220          0x7220
+#endif
+
 #define HCA(v, d, t) \
        { .vendor = PCI_VENDOR_ID_##v,                  \
          .device = PCI_DEVICE_ID_INFINIPATH_##d,       \
@@ -83,7 +87,8 @@ struct {
        HCA(PATHSCALE,  SPINNERET, SPINNERET),
        HCA(PATHSCALE,  HT,       HT),
        HCA(PATHSCALE,  PE800,    PE800),
-       HCA(QLOGIC,     6220,     6220),
+       HCA(QLOGIC,     6220,     7220),
+       HCA(QLOGIC,     7220,     7220),
 };
 
 static struct ibv_context_ops ipath_ctx_ops = {
diff --git a/src/ipathverbs.h b/src/ipathverbs.h
index 43eee82..803ca70 100644
--- a/src/ipathverbs.h
+++ b/src/ipathverbs.h
@@ -55,7 +55,7 @@ enum ipath_hca_type {
        IPATH_SPINNERET,
        IPATH_HT,
        IPATH_PE800,
-       IPATH_6220,
+       IPATH_7220,
 };
 
 struct ipath_device {


_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to