aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
diff options
context:
space:
mode:
authorGravatar Gal Pressman <galp@mellanox.com> 2016-12-08 15:56:00 +0200
committerGravatar Saeed Mahameed <saeedm@mellanox.com> 2017-01-19 23:19:58 +0200
commitc835ad64683bd3e2d1b31ed2cb1ff4366932edb1 (patch)
tree1d7c65b413deaa803663fb524e447760fccef2d7 /drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
parentnet/mlx5: Expose PCAM, MCAM registers infrastructure (diff)
downloadlinux-c835ad64683bd3e2d1b31ed2cb1ff4366932edb1.tar.gz
linux-c835ad64683bd3e2d1b31ed2cb1ff4366932edb1.tar.bz2
linux-c835ad64683bd3e2d1b31ed2cb1ff4366932edb1.zip
net/mlx5: Implement PCAM, MCAM access register commands
Introduced registers will expose capabilities of new registers and features related to port/management. Driver will query MCAM and PCAM in order to avoid failing on old firmwares with lack of support. Signed-off-by: Gal Pressman <galp@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h b/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
index 090e3a1dedc2..b3dabe6e8836 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
@@ -113,6 +113,11 @@ u32 mlx5_get_msix_vec(struct mlx5_core_dev *dev, int vecidx);
struct mlx5_eq *mlx5_eqn2eq(struct mlx5_core_dev *dev, int eqn);
void mlx5_cq_tasklet_cb(unsigned long data);
+int mlx5_query_pcam_reg(struct mlx5_core_dev *dev, u32 *pcam, u8 feature_group,
+ u8 access_reg_group);
+int mlx5_query_mcam_reg(struct mlx5_core_dev *dev, u32 *mcap, u8 feature_group,
+ u8 access_reg_group);
+
void mlx5_lag_add(struct mlx5_core_dev *dev, struct net_device *netdev);
void mlx5_lag_remove(struct mlx5_core_dev *dev);