event/dlb: add queue setup
[dpdk.git] / drivers / event / dlb / dlb_iface.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2016-2020 Intel Corporation
3  */
4
5 #include <stdint.h>
6
7 #include "dlb_priv.h"
8
9 /* DLB 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.
13  */
14
15 void (*dlb_iface_low_level_io_init)(struct dlb_eventdev *dlb);
16
17 int (*dlb_iface_open)(struct dlb_hw_dev *handle, const char *name);
18
19 void (*dlb_iface_domain_close)(struct dlb_eventdev *dlb);
20
21 int (*dlb_iface_get_device_version)(struct dlb_hw_dev *handle,
22                                     uint8_t *revision);
23
24 int (*dlb_iface_get_num_resources)(struct dlb_hw_dev *handle,
25                                    struct dlb_get_num_resources_args *rsrcs);
26
27 int (*dlb_iface_sched_domain_create)(struct dlb_hw_dev *handle,
28                                      struct dlb_create_sched_domain_args *args);
29
30 int (*dlb_iface_ldb_credit_pool_create)(struct dlb_hw_dev *handle,
31                                         struct dlb_create_ldb_pool_args *cfg);
32
33 int (*dlb_iface_dir_credit_pool_create)(struct dlb_hw_dev *handle,
34                                         struct dlb_create_dir_pool_args *cfg);
35
36 int (*dlb_iface_ldb_queue_create)(struct dlb_hw_dev *handle,
37                                   struct dlb_create_ldb_queue_args *cfg);
38
39 int (*dlb_iface_get_cq_poll_mode)(struct dlb_hw_dev *handle,
40                                   enum dlb_cq_poll_modes *mode);
41
42 int (*dlb_iface_get_sn_allocation)(struct dlb_hw_dev *handle,
43                                    struct dlb_get_sn_allocation_args *args);
44
45 int (*dlb_iface_set_sn_allocation)(struct dlb_hw_dev *handle,
46                                    struct dlb_set_sn_allocation_args *args);
47
48 int (*dlb_iface_get_sn_occupancy)(struct dlb_hw_dev *handle,
49                                   struct dlb_get_sn_occupancy_args *args);
50