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__
11 typedef struct mlx5_context {
12 devx_device_ctx *devx_ctx;
13 struct devx_device mlx5_dev;
14 struct devx_shutdown_event shutdown_event_obj;
18 devx_device_ctx *devx_ctx;
19 struct devx_obj_handle *obj;
22 struct mlx5_devx_umem {
24 struct devx_obj_handle *umem_hdl;
31 devx_device_ctx *devx_ctx;
34 struct mlx5_devx_clock {
35 void *p_iseg_internal_timer;
36 u64 clock_frequency_hz;
37 int is_stable_clock_frequency;
40 #define GET_DEVX_CTX(ctx) (((mlx5_context_st *)ctx)->devx_ctx)
41 #define GET_OBJ_CTX(obj) (((mlx5_devx_obj_st *)obj)->devx_ctx)
43 #endif /* __MLX5_WIN_ETX_H__ */