[ewg] [PATCH] IB/libipathverbs - add support for 7322 HCA
Ralph Campbell
ralph.campbell at qlogic.com
Fri Jun 20 15:51:27 PDT 2008
Vlad, please pull libipathverbs for OFED 1.4 from:
git://git.openfabrics.org/~ralphc/libipathverbs ofed_1_4
commit 65e5701dbe7b511f796cb0026b0cd51831a62318
Author: Ralph Campbell (QLogic) <ralphc at hosting.openfabrics.org>
Date: Fri Jun 20 15:49:29 2008 -0700
IB/libipathverbs - add support for 7322 HCA
Added support for recognizing the QLogic 7322 HCA PCI device number and
removed support for an obsolete Pathscale HCA.
Signed-off-by: Ralph Campbell <ralph.campbell at qlogic.com>
diff --git a/src/ipathverbs.c b/src/ipathverbs.c
index 55d8dcf..2ae1689 100644
--- a/src/ipathverbs.c
+++ b/src/ipathverbs.c
@@ -55,10 +55,6 @@
#define PCI_VENDOR_ID_QLOGIC 0x1077
#endif
-#ifndef PCI_DEVICE_ID_INFINIPATH_SPINNERET
-#define PCI_DEVICE_ID_INFINIPATH_SPINNERET 0x000a
-#endif
-
#ifndef PCI_DEVICE_ID_INFINIPATH_HT
#define PCI_DEVICE_ID_INFINIPATH_HT 0x000d
#endif
@@ -75,21 +71,23 @@
#define PCI_DEVICE_ID_INFINIPATH_7220 0x7220
#endif
-#define HCA(v, d, t) \
+#ifndef PCI_DEVICE_ID_INFINIPATH_7322
+#define PCI_DEVICE_ID_INFINIPATH_7322 0x7322
+#endif
+
+#define HCA(v, d) \
{ .vendor = PCI_VENDOR_ID_##v, \
- .device = PCI_DEVICE_ID_INFINIPATH_##d, \
- .type = IPATH_##t }
+ .device = PCI_DEVICE_ID_INFINIPATH_##d }
struct {
unsigned vendor;
unsigned device;
- enum ipath_hca_type type;
} hca_table[] = {
- HCA(PATHSCALE, SPINNERET, SPINNERET),
- HCA(PATHSCALE, HT, HT),
- HCA(PATHSCALE, PE800, PE800),
- HCA(QLOGIC, 6220, 7220),
- HCA(QLOGIC, 7220, 7220),
+ HCA(PATHSCALE, HT),
+ HCA(PATHSCALE, PE800),
+ HCA(QLOGIC, 6220),
+ HCA(QLOGIC, 7220),
+ HCA(QLOGIC, 7322),
};
static struct ibv_context_ops ipath_ctx_ops = {
@@ -215,7 +213,6 @@ found:
}
dev->ibv_dev.ops = ipath_dev_ops;
- dev->hca_type = hca_table[i].type;
dev->abi_version = abi_version;
return &dev->ibv_dev;
diff --git a/src/ipathverbs.h b/src/ipathverbs.h
index 803ca70..3493807 100644
--- a/src/ipathverbs.h
+++ b/src/ipathverbs.h
@@ -51,16 +51,8 @@
#define PFX "ipath: "
-enum ipath_hca_type {
- IPATH_SPINNERET,
- IPATH_HT,
- IPATH_PE800,
- IPATH_7220,
-};
-
struct ipath_device {
struct ibv_device ibv_dev;
- enum ipath_hca_type hca_type;
int abi_version;
};
More information about the ewg
mailing list