diff options
Diffstat (limited to 'drivers/net/mlx4/en_port.h')
-rw-r--r-- | drivers/net/mlx4/en_port.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/mlx4/en_port.h b/drivers/net/mlx4/en_port.h index e6477f12beb5..f6511aa2b7df 100644 --- a/drivers/net/mlx4/en_port.h +++ b/drivers/net/mlx4/en_port.h | |||
@@ -84,6 +84,20 @@ enum { | |||
84 | MLX4_MCAST_ENABLE = 2, | 84 | MLX4_MCAST_ENABLE = 2, |
85 | }; | 85 | }; |
86 | 86 | ||
87 | struct mlx4_en_query_port_context { | ||
88 | u8 link_up; | ||
89 | #define MLX4_EN_LINK_UP_MASK 0x80 | ||
90 | u8 reserved; | ||
91 | __be16 mtu; | ||
92 | u8 reserved2; | ||
93 | u8 link_speed; | ||
94 | #define MLX4_EN_SPEED_MASK 0x3 | ||
95 | #define MLX4_EN_1G_SPEED 0x2 | ||
96 | u16 reserved3[5]; | ||
97 | __be64 mac; | ||
98 | u8 transceiver; | ||
99 | }; | ||
100 | |||
87 | 101 | ||
88 | struct mlx4_en_stat_out_mbox { | 102 | struct mlx4_en_stat_out_mbox { |
89 | /* Received frames with a length of 64 octets */ | 103 | /* Received frames with a length of 64 octets */ |