5#ifndef _RTE_BBDEV_PMD_H_
6#define _RTE_BBDEV_PMD_H_
27#define RTE_BBDEV_DEFAULT_MAX_NB_QUEUES RTE_MAX_LCORE
30#define RTE_BBDEV_QUEUE_SIZE_LIMIT 16384
44rte_bbdev_allocate(
const char *name);
56rte_bbdev_release(
struct rte_bbdev *bbdev);
79 uint16_t num_queues,
int socket_id);
82typedef int (*rte_bbdev_intr_enable_t)(
struct rte_bbdev *dev);
85typedef int (*rte_bbdev_queue_setup_t)(
struct rte_bbdev *dev,
92typedef int (*rte_bbdev_queue_release_t)(
struct rte_bbdev *dev,
96typedef int (*rte_bbdev_start_t)(
struct rte_bbdev *dev);
99typedef void (*rte_bbdev_stop_t)(
struct rte_bbdev *dev);
102typedef int (*rte_bbdev_close_t)(
struct rte_bbdev *dev);
105typedef int (*rte_bbdev_queue_start_t)(
struct rte_bbdev *dev,
109typedef int (*rte_bbdev_queue_stop_t)(
struct rte_bbdev *dev, uint16_t queue_id);
112typedef void (*rte_bbdev_stats_get_t)(
struct rte_bbdev *dev,
116typedef void (*rte_bbdev_stats_reset_t)(
struct rte_bbdev *dev);
119typedef void (*rte_bbdev_info_get_t)(
struct rte_bbdev *dev,
126typedef int (*rte_bbdev_queue_intr_enable_t)(
struct rte_bbdev *dev,
133typedef int (*rte_bbdev_queue_intr_disable_t)(
struct rte_bbdev *dev,
140typedef int (*rte_bbdev_queue_ops_dump_t)(
struct rte_bbdev *dev,
141 uint16_t queue_id, FILE *file);
struct rte_bbdev * rte_bbdev_get_named_dev(const char *name)
int(* rte_bbdev_setup_queues_t)(struct rte_bbdev *dev, uint16_t num_queues, int socket_id)
void rte_bbdev_pmd_callback_process(struct rte_bbdev *dev, enum rte_bbdev_event_type event, void *ret_param)
rte_bbdev_queue_setup_t queue_setup
rte_bbdev_queue_stop_t queue_stop
rte_bbdev_info_get_t info_get
rte_bbdev_queue_intr_disable_t queue_intr_disable
rte_bbdev_intr_enable_t intr_enable
rte_bbdev_stats_get_t stats_get
rte_bbdev_stats_reset_t stats_reset
rte_bbdev_queue_release_t queue_release
rte_bbdev_queue_ops_dump_t queue_ops_dump
rte_bbdev_setup_queues_t setup_queues
rte_bbdev_queue_intr_enable_t queue_intr_enable
rte_bbdev_queue_start_t queue_start