aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mlx4/device.h')
-rw-r--r--include/linux/mlx4/device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index da425d2f3708..7d5d317cb7a6 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -411,6 +411,11 @@ enum {
411 MLX4_EQ_PORT_INFO_MSTR_SM_SL_CHANGE_MASK = 1 << 4, 411 MLX4_EQ_PORT_INFO_MSTR_SM_SL_CHANGE_MASK = 1 << 4,
412}; 412};
413 413
414enum {
415 MLX4_DEVICE_STATE_UP = 1 << 0,
416 MLX4_DEVICE_STATE_INTERNAL_ERROR = 1 << 1,
417};
418
414#define MSTR_SM_CHANGE_MASK (MLX4_EQ_PORT_INFO_MSTR_SM_SL_CHANGE_MASK | \ 419#define MSTR_SM_CHANGE_MASK (MLX4_EQ_PORT_INFO_MSTR_SM_SL_CHANGE_MASK | \
415 MLX4_EQ_PORT_INFO_MSTR_SM_LID_CHANGE_MASK) 420 MLX4_EQ_PORT_INFO_MSTR_SM_LID_CHANGE_MASK)
416 421
@@ -753,6 +758,8 @@ struct mlx4_dev_persistent {
753 enum mlx4_port_type curr_port_poss_type[MLX4_MAX_PORTS + 1]; 758 enum mlx4_port_type curr_port_poss_type[MLX4_MAX_PORTS + 1];
754 struct work_struct catas_work; 759 struct work_struct catas_work;
755 struct workqueue_struct *catas_wq; 760 struct workqueue_struct *catas_wq;
761 struct mutex device_state_mutex; /* protect HW state */
762 u8 state;
756}; 763};
757 764
758struct mlx4_dev { 765struct mlx4_dev {