1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2016-2020 Intel Corporation
9 /* DLB2 PMD Internal interface function pointers.
10 * If VDEV (bifurcated PMD), these will resolve to functions that issue ioctls
11 * serviced by DLB kernel module.
12 * If PCI (PF PMD), these will be implemented locally in user mode.
15 void (*dlb2_iface_low_level_io_init)(void);
17 int (*dlb2_iface_open)(struct dlb2_hw_dev *handle, const char *name);
19 int (*dlb2_iface_get_device_version)(struct dlb2_hw_dev *handle,
22 void (*dlb2_iface_hardware_init)(struct dlb2_hw_dev *handle);
24 int (*dlb2_iface_get_cq_poll_mode)(struct dlb2_hw_dev *handle,
25 enum dlb2_cq_poll_modes *mode);
27 int (*dlb2_iface_get_num_resources)(struct dlb2_hw_dev *handle,
28 struct dlb2_get_num_resources_args *rsrcs);
30 int (*dlb2_iface_sched_domain_create)(struct dlb2_hw_dev *handle,
31 struct dlb2_create_sched_domain_args *args);
33 void (*dlb2_iface_domain_reset)(struct dlb2_eventdev *dlb2);
35 int (*dlb2_iface_ldb_queue_create)(struct dlb2_hw_dev *handle,
36 struct dlb2_create_ldb_queue_args *cfg);
38 int (*dlb2_iface_get_sn_allocation)(struct dlb2_hw_dev *handle,
39 struct dlb2_get_sn_allocation_args *args);
41 int (*dlb2_iface_set_sn_allocation)(struct dlb2_hw_dev *handle,
42 struct dlb2_set_sn_allocation_args *args);
44 int (*dlb2_iface_get_sn_occupancy)(struct dlb2_hw_dev *handle,
45 struct dlb2_get_sn_occupancy_args *args);