summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJianbo Liu <jianbol@nvidia.com>2025-02-03 23:35:07 +0200
committerPaolo Abeni <pabeni@redhat.com>2025-02-06 10:14:01 +0100
commit574998cf3b3f59afa9e3a6bbb609d9d4eb2023b4 (patch)
tree5f5efc36bb77db46aef29c0365ce118bcf108e94 /include
parentf9beaf4fac64c84631ba9a2eb864cea6b52032a2 (diff)
net/mlx5: Add devcom component for the clock shared by functions
Add new devcom component for hardware clock. When it is running in real time mode, the functions are grouped by the identify they query. According to firmware document, the clock identify size is 64 bits, so it's safe to memcpy to component key, as the key size is also 64 bits. Signed-off-by: Jianbo Liu <jianbol@nvidia.com> Reviewed-by: Carolina Jubran <cjubran@nvidia.com> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mlx5/driver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 5dab3d8d05e4..46bd7550adf8 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -679,6 +679,7 @@ struct mlx5_rsvd_gids {
};
struct mlx5_clock;
+struct mlx5_clock_dev_state;
struct mlx5_dm;
struct mlx5_fw_tracer;
struct mlx5_vxlan;
@@ -763,6 +764,7 @@ struct mlx5_core_dev {
struct mlx5_fpga_device *fpga;
#endif
struct mlx5_clock *clock;
+ struct mlx5_clock_dev_state *clock_state;
struct mlx5_ib_clock_info *clock_info;
struct mlx5_fw_tracer *tracer;
struct mlx5_rsc_dump *rsc_dump;