diff options
Diffstat (limited to 'include/linux/mlx4/cmd.h')
-rw-r--r-- | include/linux/mlx4/cmd.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/linux/mlx4/cmd.h b/include/linux/mlx4/cmd.h index 64d25941b329..7b6d4e9ff603 100644 --- a/include/linux/mlx4/cmd.h +++ b/include/linux/mlx4/cmd.h | |||
@@ -71,6 +71,7 @@ enum { | |||
71 | 71 | ||
72 | /*master notify fw on finish for slave's flr*/ | 72 | /*master notify fw on finish for slave's flr*/ |
73 | MLX4_CMD_INFORM_FLR_DONE = 0x5b, | 73 | MLX4_CMD_INFORM_FLR_DONE = 0x5b, |
74 | MLX4_CMD_VIRT_PORT_MAP = 0x5c, | ||
74 | MLX4_CMD_GET_OP_REQ = 0x59, | 75 | MLX4_CMD_GET_OP_REQ = 0x59, |
75 | 76 | ||
76 | /* TPT commands */ | 77 | /* TPT commands */ |
@@ -165,9 +166,15 @@ enum { | |||
165 | }; | 166 | }; |
166 | 167 | ||
167 | enum { | 168 | enum { |
168 | MLX4_CMD_TIME_CLASS_A = 10000, | 169 | MLX4_CMD_TIME_CLASS_A = 60000, |
169 | MLX4_CMD_TIME_CLASS_B = 10000, | 170 | MLX4_CMD_TIME_CLASS_B = 60000, |
170 | MLX4_CMD_TIME_CLASS_C = 10000, | 171 | MLX4_CMD_TIME_CLASS_C = 60000, |
172 | }; | ||
173 | |||
174 | enum { | ||
175 | /* virtual to physical port mapping opcode modifiers */ | ||
176 | MLX4_GET_PORT_VIRT2PHY = 0x0, | ||
177 | MLX4_SET_PORT_VIRT2PHY = 0x1, | ||
171 | }; | 178 | }; |
172 | 179 | ||
173 | enum { | 180 | enum { |
@@ -279,6 +286,8 @@ int mlx4_get_vf_config(struct mlx4_dev *dev, int port, int vf, struct ifla_vf_in | |||
279 | int mlx4_set_vf_link_state(struct mlx4_dev *dev, int port, int vf, int link_state); | 286 | int mlx4_set_vf_link_state(struct mlx4_dev *dev, int port, int vf, int link_state); |
280 | int mlx4_config_dev_retrieval(struct mlx4_dev *dev, | 287 | int mlx4_config_dev_retrieval(struct mlx4_dev *dev, |
281 | struct mlx4_config_dev_params *params); | 288 | struct mlx4_config_dev_params *params); |
289 | void mlx4_cmd_wake_completions(struct mlx4_dev *dev); | ||
290 | void mlx4_report_internal_err_comm_event(struct mlx4_dev *dev); | ||
282 | /* | 291 | /* |
283 | * mlx4_get_slave_default_vlan - | 292 | * mlx4_get_slave_default_vlan - |
284 | * return true if VST ( default vlan) | 293 | * return true if VST ( default vlan) |
@@ -288,5 +297,6 @@ bool mlx4_get_slave_default_vlan(struct mlx4_dev *dev, int port, int slave, | |||
288 | u16 *vlan, u8 *qos); | 297 | u16 *vlan, u8 *qos); |
289 | 298 | ||
290 | #define MLX4_COMM_GET_IF_REV(cmd_chan_ver) (u8)((cmd_chan_ver) >> 8) | 299 | #define MLX4_COMM_GET_IF_REV(cmd_chan_ver) (u8)((cmd_chan_ver) >> 8) |
300 | #define COMM_CHAN_EVENT_INTERNAL_ERR (1 << 17) | ||
291 | 301 | ||
292 | #endif /* MLX4_CMD_H */ | 302 | #endif /* MLX4_CMD_H */ |