diff options
author | Huy Nguyen <huyn@mellanox.com> | 2016-11-17 14:45:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-18 20:08:57 +0300 |
commit | 4ce3bf2fa8ba309b5ca19539fcc8671a0fc084f9 (patch) | |
tree | e82cb26885fc72f6cff076466d9f8b5bb85ecc5c /include/linux/mlx5/port.h | |
parent | 0ac3ea70897fb9f84b620aeda074ecccf481629d (diff) | |
download | linux-4ce3bf2fa8ba309b5ca19539fcc8671a0fc084f9.tar.xz |
net/mlx5: Port module event hardware structures
Add hardware structures and constants definitions needed for module
events support.
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5/port.h')
-rw-r--r-- | include/linux/mlx5/port.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx5/port.h b/include/linux/mlx5/port.h index b3065acd20b4..dde8c7ec5ff1 100644 --- a/include/linux/mlx5/port.h +++ b/include/linux/mlx5/port.h @@ -94,6 +94,9 @@ enum mlx5e_link_mode { #define MLX5E_PROT_MASK(link_mode) (1 << link_mode) +#define PORT_MODULE_EVENT_MODULE_STATUS_MASK 0xF +#define PORT_MODULE_EVENT_ERROR_TYPE_MASK 0xF + int mlx5_set_port_caps(struct mlx5_core_dev *dev, u8 port_num, u32 caps); int mlx5_query_port_ptys(struct mlx5_core_dev *dev, u32 *ptys, int ptys_size, int proto_mask, u8 local_port); |