[ofa-general] [PATCH 2 of 2] libmlx4: Add new Mellanox device IDs

Jack Morgenstein jackm at dev.mellanox.co.il
Mon Jul 2 07:37:34 PDT 2007


Add new Mellanox device ID's

Signed-off-by: Jack Morgenstein <jackm at dev.mellanox.co.il>

diff --git a/src/mlx4.c b/src/mlx4.c
index 3684b50..178d214 100644
--- a/src/mlx4.c
+++ b/src/mlx4.c
@@ -65,6 +65,15 @@
 #define PCI_DEVICE_ID_MELLANOX_HERMON_QDR	0x6354
 #endif
 
+#ifndef PCI_DEVICE_ID_MELLANOX_HERMON_DDR_PCIEX_G2
+#define PCI_DEVICE_ID_MELLANOX_HERMON_DDR_PCIEX_G2	0x6732
+#endif
+
+#ifndef PCI_DEVICE_ID_MELLANOX_HERMON_QDR_PCIEX_G2
+#define PCI_DEVICE_ID_MELLANOX_HERMON_QDR_PCIEX_G2	0x673c
+#endif
+
+
 #define HCA(v, d) \
 	{ .vendor = PCI_VENDOR_ID_##v,			\
 	  .device = PCI_DEVICE_ID_MELLANOX_##d }
@@ -76,6 +85,8 @@ struct {
 	HCA(MELLANOX, HERMON_SDR),
 	HCA(MELLANOX, HERMON_DDR),
 	HCA(MELLANOX, HERMON_QDR),
+	HCA(MELLANOX, HERMON_DDR_PCIEX_G2),
+	HCA(MELLANOX, HERMON_QDR_PCIEX_G2),
 };
 
 static struct ibv_context_ops mlx4_ctx_ops = {



More information about the general mailing list