diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2007-09-18 03:14:18 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-10-09 22:59:14 -0400 |
commit | cd9281d873c91a01af0cb96ff0f75e9905e54403 (patch) | |
tree | a639777f03924198a0c91c8884406e8ba8e40efd /drivers/net/mlx4/mlx4.h | |
parent | 57cb61d587e990d556385d367589ff61f6c2c0f2 (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 'drivers/net/mlx4/mlx4.h')
-rw-r--r-- | drivers/net/mlx4/mlx4.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h index be304a7c2c9..b9f83976191 100644 --- a/drivers/net/mlx4/mlx4.h +++ b/drivers/net/mlx4/mlx4.h | |||
@@ -56,10 +56,6 @@ enum { | |||
56 | }; | 56 | }; |
57 | 57 | ||
58 | enum { | 58 | enum { |
59 | MLX4_BOARD_ID_LEN = 64 | ||
60 | }; | ||
61 | |||
62 | enum { | ||
63 | MLX4_MGM_ENTRY_SIZE = 0x40, | 59 | MLX4_MGM_ENTRY_SIZE = 0x40, |
64 | MLX4_QP_PER_MGM = 4 * (MLX4_MGM_ENTRY_SIZE / 16 - 2), | 60 | MLX4_QP_PER_MGM = 4 * (MLX4_MGM_ENTRY_SIZE / 16 - 2), |
65 | MLX4_MTT_ENTRY_PER_SEG = 8 | 61 | MLX4_MTT_ENTRY_PER_SEG = 8 |
@@ -277,9 +273,6 @@ struct mlx4_priv { | |||
277 | 273 | ||
278 | struct mlx4_uar driver_uar; | 274 | struct mlx4_uar driver_uar; |
279 | void __iomem *kar; | 275 | void __iomem *kar; |
280 | |||
281 | u32 rev_id; | ||
282 | char board_id[MLX4_BOARD_ID_LEN]; | ||
283 | }; | 276 | }; |
284 | 277 | ||
285 | static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) | 278 | static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) |