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 {
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)