2 * Copyright (C) Mellanox Technologies, Ltd. 2001-2020.
5 #ifndef __MLX5_WIN_ETX_H__
6 #define __MLX5_WIN_ETX_H__
14 typedef struct mlx5_context {
15 devx_device_ctx *devx_ctx;
16 struct devx_device mlx5_dev;
21 devx_device_ctx *devx_ctx;
22 struct devx_obj_handle *obj;
25 struct mlx5_devx_umem {
27 struct devx_obj_handle *umem_hdl;
34 devx_device_ctx *devx_ctx;
37 struct mlx5_devx_clock {
38 void *p_iseg_internal_timer;
39 u64 clock_frequency_hz;
40 int is_stable_clock_frequency;
43 #define GET_DEVX_CTX(ctx) (((mlx5_context_st *)ctx)->devx_ctx)
44 #define GET_OBJ_CTX(obj) (((mlx5_devx_obj_st *)obj)->devx_ctx)
46 #endif /* __MLX5_WIN_ETX_H__ */