diff options
author | Roland Dreier <rolandd@cisco.com> | 2007-04-10 20:14:56 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-04-10 20:14:56 -0700 |
commit | 0e50cd04321a134d380c79b49a8445c98262095d (patch) | |
tree | 2442523c87bf95aa429ee83d37fbeeb5abf4015a | |
parent | dd9c48a8ed746cf33a127ae572cecf6240778b67 (diff) | |
download | libmlx4-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.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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 = { |