diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mlx4/device.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 6e27fa99e8b9..6a8f002b8ed3 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
| @@ -64,6 +64,7 @@ enum { | |||
| 64 | MLX4_MAX_NUM_PF = 16, | 64 | MLX4_MAX_NUM_PF = 16, |
| 65 | MLX4_MAX_NUM_VF = 64, | 65 | MLX4_MAX_NUM_VF = 64, |
| 66 | MLX4_MFUNC_MAX = 80, | 66 | MLX4_MFUNC_MAX = 80, |
| 67 | MLX4_MAX_EQ_NUM = 1024, | ||
| 67 | MLX4_MFUNC_EQ_NUM = 4, | 68 | MLX4_MFUNC_EQ_NUM = 4, |
| 68 | MLX4_MFUNC_MAX_EQES = 8, | 69 | MLX4_MFUNC_MAX_EQES = 8, |
| 69 | MLX4_MFUNC_EQE_MASK = (MLX4_MFUNC_MAX_EQES - 1) | 70 | MLX4_MFUNC_EQE_MASK = (MLX4_MFUNC_MAX_EQES - 1) |
| @@ -239,6 +240,10 @@ static inline u64 mlx4_fw_ver(u64 major, u64 minor, u64 subminor) | |||
| 239 | return (major << 32) | (minor << 16) | subminor; | 240 | return (major << 32) | (minor << 16) | subminor; |
| 240 | } | 241 | } |
| 241 | 242 | ||
| 243 | struct mlx4_phys_caps { | ||
| 244 | u32 num_phys_eqs; | ||
| 245 | }; | ||
| 246 | |||
| 242 | struct mlx4_caps { | 247 | struct mlx4_caps { |
| 243 | u64 fw_ver; | 248 | u64 fw_ver; |
| 244 | u32 function; | 249 | u32 function; |
| @@ -499,6 +504,7 @@ struct mlx4_dev { | |||
| 499 | unsigned long flags; | 504 | unsigned long flags; |
| 500 | unsigned long num_slaves; | 505 | unsigned long num_slaves; |
| 501 | struct mlx4_caps caps; | 506 | struct mlx4_caps caps; |
| 507 | struct mlx4_phys_caps phys_caps; | ||
| 502 | struct radix_tree_root qp_table_tree; | 508 | struct radix_tree_root qp_table_tree; |
| 503 | u8 rev_id; | 509 | u8 rev_id; |
| 504 | char board_id[MLX4_BOARD_ID_LEN]; | 510 | char board_id[MLX4_BOARD_ID_LEN]; |
