aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2007-09-18 03:14:18 -0400
committerRoland Dreier <rolandd@cisco.com>2007-10-09 22:59:14 -0400
commitcd9281d873c91a01af0cb96ff0f75e9905e54403 (patch)
treea639777f03924198a0c91c8884406e8ba8e40efd /include/linux
parent57cb61d587e990d556385d367589ff61f6c2c0f2 (diff)
IB/mlx4: Display misc device information under /sys/class/infiniband/
display the following device information under /sys/class/infiniband/mlx4_X: board_id, fw_ver, hw_rev, hca_type. This patch makes this information available to userspace utilities such as ibstat and ibv_devinfo. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx4/device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index cfb78fb2c046..a93520c76fde 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -49,6 +49,10 @@ enum {
49}; 49};
50 50
51enum { 51enum {
52 MLX4_BOARD_ID_LEN = 64
53};
54
55enum {
52 MLX4_DEV_CAP_FLAG_RC = 1 << 0, 56 MLX4_DEV_CAP_FLAG_RC = 1 << 0,
53 MLX4_DEV_CAP_FLAG_UC = 1 << 1, 57 MLX4_DEV_CAP_FLAG_UC = 1 << 1,
54 MLX4_DEV_CAP_FLAG_UD = 1 << 2, 58 MLX4_DEV_CAP_FLAG_UD = 1 << 2,
@@ -272,6 +276,8 @@ struct mlx4_dev {
272 unsigned long flags; 276 unsigned long flags;
273 struct mlx4_caps caps; 277 struct mlx4_caps caps;
274 struct radix_tree_root qp_table_tree; 278 struct radix_tree_root qp_table_tree;
279 u32 rev_id;
280 char board_id[MLX4_BOARD_ID_LEN];
275}; 281};
276 282
277struct mlx4_init_port_param { 283struct mlx4_init_port_param {