summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/port.h
diff options
context:
space:
mode:
authorHuy Nguyen2016-11-17 12:45:56 +0100
committerDavid S. Miller2016-11-18 18:08:57 +0100
commit4ce3bf2fa8ba309b5ca19539fcc8671a0fc084f9 (patch)
treee82cb26885fc72f6cff076466d9f8b5bb85ecc5c /include/linux/mlx5/port.h
parentnet/mlx5: Make the command interface cache more flexible (diff)
downloadkernel-qcow2-linux-4ce3bf2fa8ba309b5ca19539fcc8671a0fc084f9.tar.gz
kernel-qcow2-linux-4ce3bf2fa8ba309b5ca19539fcc8671a0fc084f9.tar.xz
kernel-qcow2-linux-4ce3bf2fa8ba309b5ca19539fcc8671a0fc084f9.zip
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.h3
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);