34 #include <rte_compat.h>
42 #ifndef RTE_BBDEV_MAX_DEVS
43 #define RTE_BBDEV_MAX_DEVS 128
58 uint16_t __rte_experimental
70 bool __rte_experimental
83 uint16_t __rte_experimental
87 #define RTE_BBDEV_FOREACH(i) for (i = rte_bbdev_find_next(-1); \
88 i < RTE_BBDEV_MAX_DEVS; \
89 i = rte_bbdev_find_next(i))
112 int __rte_experimental
129 int __rte_experimental
158 int __rte_experimental
173 int __rte_experimental
186 int __rte_experimental
199 int __rte_experimental
216 int __rte_experimental
231 int __rte_experimental
264 int __rte_experimental
275 int __rte_experimental
306 #define RTE_BBDEV_END_OF_CAPABILITIES_LIST() \
307 { RTE_BBDEV_OP_NONE }
335 int __rte_experimental
361 int __rte_experimental
366 struct rte_bbdev_queue_data {
374 typedef uint16_t (*rte_bbdev_enqueue_enc_ops_t)(
375 struct rte_bbdev_queue_data *q_data,
380 typedef uint16_t (*rte_bbdev_enqueue_dec_ops_t)(
381 struct rte_bbdev_queue_data *q_data,
386 typedef uint16_t (*rte_bbdev_dequeue_enc_ops_t)(
387 struct rte_bbdev_queue_data *q_data,
391 typedef uint16_t (*rte_bbdev_dequeue_dec_ops_t)(
392 struct rte_bbdev_queue_data *q_data,
395 #define RTE_BBDEV_NAME_MAX_LEN 64
403 struct rte_bbdev_data {
407 struct rte_bbdev_queue_data *queues;
417 struct rte_bbdev_callback;
421 TAILQ_HEAD(rte_bbdev_cb_list, rte_bbdev_callback);
429 rte_bbdev_enqueue_enc_ops_t enqueue_enc_ops;
431 rte_bbdev_enqueue_dec_ops_t enqueue_dec_ops;
433 rte_bbdev_dequeue_enc_ops_t dequeue_enc_ops;
435 rte_bbdev_dequeue_dec_ops_t dequeue_dec_ops;
437 struct rte_bbdev_data *data;
441 struct rte_bbdev_cb_list list_cbs;
446 extern struct rte_bbdev rte_bbdev_devices[];
469 static inline uint16_t __rte_experimental
473 struct rte_bbdev *dev = &rte_bbdev_devices[dev_id];
474 struct rte_bbdev_queue_data *q_data = &dev->data->queues[queue_id];
475 return dev->enqueue_enc_ops(q_data, ops, num_ops);
499 static inline uint16_t __rte_experimental
503 struct rte_bbdev *dev = &rte_bbdev_devices[dev_id];
504 struct rte_bbdev_queue_data *q_data = &dev->data->queues[queue_id];
505 return dev->enqueue_dec_ops(q_data, ops, num_ops);
529 static inline uint16_t __rte_experimental
533 struct rte_bbdev *dev = &rte_bbdev_devices[dev_id];
534 struct rte_bbdev_queue_data *q_data = &dev->data->queues[queue_id];
535 return dev->dequeue_enc_ops(q_data, ops, num_ops);
560 static inline uint16_t __rte_experimental
564 struct rte_bbdev *dev = &rte_bbdev_devices[dev_id];
565 struct rte_bbdev_queue_data *q_data = &dev->data->queues[queue_id];
566 return dev->dequeue_dec_ops(q_data, ops, num_ops);
611 int __rte_experimental
634 int __rte_experimental
654 int __rte_experimental
670 int __rte_experimental
697 int __rte_experimental