DPDK 22.11.7
rte_eventdev_core.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2016-2018 Intel Corporation.
3 * Copyright(C) 2021 Marvell.
4 * Copyright 2016 NXP
5 * All rights reserved.
6 */
7
8#ifndef _RTE_EVENTDEV_CORE_H_
9#define _RTE_EVENTDEV_CORE_H_
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef uint16_t (*event_enqueue_t)(void *port, const struct rte_event *ev);
18typedef uint16_t (*event_enqueue_burst_t)(void *port,
19 const struct rte_event ev[],
20 uint16_t nb_events);
23typedef uint16_t (*event_dequeue_t)(void *port, struct rte_event *ev,
24 uint64_t timeout_ticks);
27typedef uint16_t (*event_dequeue_burst_t)(void *port, struct rte_event ev[],
28 uint16_t nb_events,
29 uint64_t timeout_ticks);
32typedef void (*event_maintain_t)(void *port, int op);
35typedef uint16_t (*event_tx_adapter_enqueue_t)(void *port,
36 struct rte_event ev[],
37 uint16_t nb_events);
40typedef uint16_t (*event_crypto_adapter_enqueue_t)(void *port,
41 struct rte_event ev[],
42 uint16_t nb_events);
45struct rte_event_fp_ops {
46 void **data;
48 event_enqueue_t enqueue;
50 event_enqueue_burst_t enqueue_burst;
52 event_enqueue_burst_t enqueue_new_burst;
54 event_enqueue_burst_t enqueue_forward_burst;
56 event_dequeue_t dequeue;
58 event_dequeue_burst_t dequeue_burst;
60 event_maintain_t maintain;
62 event_tx_adapter_enqueue_t txa_enqueue;
64 event_tx_adapter_enqueue_t txa_enqueue_same_dest;
66 event_crypto_adapter_enqueue_t ca_enqueue;
68 uintptr_t reserved[6];
70
71extern struct rte_event_fp_ops rte_event_fp_ops[RTE_EVENT_MAX_DEVS];
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /*_RTE_EVENTDEV_CORE_H_*/
#define __rte_cache_aligned
Definition: rte_common.h:440
uint8_t op