X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fmlx5%2Fwindows%2Fmlx5_win_ext.h;h=b5d4484a1366e6926c2f0a6869ec50b607a84154;hb=fc59a1ec556b4464296b1fccec596ea08879e237;hp=0e74910e9d1fc0504eec234cb541f5f07afd5d8b;hpb=7525ebd8ebb02822b8f7286ba028be0b165d9c40;p=dpdk.git diff --git a/drivers/common/mlx5/windows/mlx5_win_ext.h b/drivers/common/mlx5/windows/mlx5_win_ext.h index 0e74910e9d..b5d4484a13 100644 --- a/drivers/common/mlx5/windows/mlx5_win_ext.h +++ b/drivers/common/mlx5/windows/mlx5_win_ext.h @@ -1,7 +1,7 @@ -/* +/* SPDX-License-Identifier: BSD-3-Clause * Copyright (C) Mellanox Technologies, Ltd. 2001-2020. - * */ + #ifndef __MLX5_WIN_ETX_H__ #define __MLX5_WIN_ETX_H__ @@ -9,12 +9,13 @@ extern "C" { #endif +#include "mlx5_prm.h" #include "mlx5devx.h" typedef struct mlx5_context { devx_device_ctx *devx_ctx; struct devx_device mlx5_dev; - + struct devx_shutdown_event shutdown_event_obj; } mlx5_context_st; typedef struct { @@ -28,6 +29,18 @@ struct mlx5_devx_umem { uint32_t umem_id; }; +struct mlx5_pd { + void *obj; + uint32_t pdn; + devx_device_ctx *devx_ctx; +}; + +struct mlx5_devx_clock { + void *p_iseg_internal_timer; + u64 clock_frequency_hz; + int is_stable_clock_frequency; +}; + #define GET_DEVX_CTX(ctx) (((mlx5_context_st *)ctx)->devx_ctx) #define GET_OBJ_CTX(obj) (((mlx5_devx_obj_st *)obj)->devx_ctx)