aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2007-04-10 20:14:56 -0700
committerRoland Dreier <rolandd@cisco.com>2007-04-10 20:14:56 -0700
commit0e50cd04321a134d380c79b49a8445c98262095d (patch)
tree2442523c87bf95aa429ee83d37fbeeb5abf4015a
parentdd9c48a8ed746cf33a127ae572cecf6240778b67 (diff)
downloadlibmlx4-0e50cd04321a134d380c79b49a8445c98262095d.tar.gz
Add all PCI ids
SDR, DDR and QDR IB versions of ConnectX have different PCI device ids (0x6340, 0x634a and 0x6354). Add all of them to the table of supported devices. Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--src/mlx4.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/mlx4.c b/src/mlx4.c
index c9168ca..1d8de87 100644
--- a/src/mlx4.c
+++ b/src/mlx4.c
@@ -59,8 +59,16 @@
#define PCI_VENDOR_ID_MELLANOX 0x15b3
#endif
-#ifndef PCI_DEVICE_ID_MELLANOX_HERMON
-#define PCI_DEVICE_ID_MELLANOX_HERMON 0x6340
+#ifndef PCI_DEVICE_ID_MELLANOX_HERMON_SDR
+#define PCI_DEVICE_ID_MELLANOX_HERMON_SDR 0x6340
+#endif
+
+#ifndef PCI_DEVICE_ID_MELLANOX_HERMON_DDR
+#define PCI_DEVICE_ID_MELLANOX_HERMON_DDR 0x634a
+#endif
+
+#ifndef PCI_DEVICE_ID_MELLANOX_HERMON_QDR
+#define PCI_DEVICE_ID_MELLANOX_HERMON_QDR 0x6354
#endif
#define HCA(v, d) \
@@ -71,7 +79,9 @@ struct {
unsigned vendor;
unsigned device;
} hca_table[] = {
- HCA(MELLANOX, HERMON),
+ HCA(MELLANOX, HERMON_SDR),
+ HCA(MELLANOX, HERMON_DDR),
+ HCA(MELLANOX, HERMON_QDR),
};
static struct ibv_context_ops mlx4_ctx_ops = {