summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/device.h
diff options
context:
space:
mode:
authorGal Pressman2016-12-08 14:52:00 +0100
committerSaeed Mahameed2017-01-19 22:19:57 +0100
commitcfdcbceaeffc669b70d904d80a2df9c86c232566 (patch)
tree3d6cc7d44eae89eb404a6397574ee0b27a2562a8 /include/linux/mlx5/device.h
parentnet/mlx5e: Receive s-tagged packets in promiscuous mode (diff)
downloadkernel-qcow2-linux-cfdcbceaeffc669b70d904d80a2df9c86c232566.tar.gz
kernel-qcow2-linux-cfdcbceaeffc669b70d904d80a2df9c86c232566.tar.xz
kernel-qcow2-linux-cfdcbceaeffc669b70d904d80a2df9c86c232566.zip
net/mlx5: Expose PCAM, MCAM registers infrastructure
PCAM: Ports capabilities mask register. MCAM: Management capabilities mask register. PCAM and MCAM registers will provide information regarding firmware support for different features, in order to avoid cases where new driver combined with old firmware results in syndromes (for ex. PCIe counters before this patchset). Signed-off-by: Gal Pressman <galp@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/device.h')
-rw-r--r--include/linux/mlx5/device.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h
index 6ac8eb5a89ca..79f38e67fe2f 100644
--- a/include/linux/mlx5/device.h
+++ b/include/linux/mlx5/device.h
@@ -970,6 +970,22 @@ enum mlx5_cap_type {
MLX5_CAP_NUM
};
+enum mlx5_pcam_reg_groups {
+ MLX5_PCAM_REGS_5000_TO_507F = 0x0,
+};
+
+enum mlx5_pcam_feature_groups {
+ MLX5_PCAM_FEATURE_ENHANCED_FEATURES = 0x0,
+};
+
+enum mlx5_mcam_reg_groups {
+ MLX5_MCAM_REGS_FIRST_128 = 0x0,
+};
+
+enum mlx5_mcam_feature_groups {
+ MLX5_MCAM_FEATURE_ENHANCED_FEATURES = 0x0,
+};
+
/* GET Dev Caps macros */
#define MLX5_CAP_GEN(mdev, cap) \
MLX5_GET(cmd_hca_cap, mdev->hca_caps_cur[MLX5_CAP_GENERAL], cap)