1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (C) Mellanox Technologies, Ltd. 2001-2020.
5 #ifndef __MLX5_WIN_ETX_H__
6 #define __MLX5_WIN_ETX_H__
15 typedef struct mlx5_context {
16 devx_device_ctx *devx_ctx;
17 struct devx_device mlx5_dev;
18 struct devx_shutdown_event shutdown_event_obj;
22 devx_device_ctx *devx_ctx;
23 struct devx_obj_handle *obj;
26 struct mlx5_devx_umem {
28 struct devx_obj_handle *umem_hdl;
35 devx_device_ctx *devx_ctx;
38 struct mlx5_devx_clock {
39 void *p_iseg_internal_timer;
40 u64 clock_frequency_hz;
41 int is_stable_clock_frequency;
44 #define GET_DEVX_CTX(ctx) (((mlx5_context_st *)ctx)->devx_ctx)
45 #define GET_OBJ_CTX(obj) (((mlx5_devx_obj_st *)obj)->devx_ctx)
47 #endif /* __MLX5_WIN_ETX_H__ */