DPDK  22.03.0
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
12 extern "C" {
13 #endif
14 
15 typedef uint16_t (*event_enqueue_t)(void *port, const struct rte_event *ev);
18 typedef uint16_t (*event_enqueue_burst_t)(void *port,
19  const struct rte_event ev[],
20  uint16_t nb_events);
23 typedef uint16_t (*event_dequeue_t)(void *port, struct rte_event *ev,
24  uint64_t timeout_ticks);
27 typedef uint16_t (*event_dequeue_burst_t)(void *port, struct rte_event ev[],
28  uint16_t nb_events,
29  uint64_t timeout_ticks);
32 typedef void (*event_maintain_t)(void *port, int op);
35 typedef uint16_t (*event_tx_adapter_enqueue_t)(void *port,
36  struct rte_event ev[],
37  uint16_t nb_events);
40 typedef uint16_t (*event_crypto_adapter_enqueue_t)(void *port,
41  struct rte_event ev[],
42  uint16_t nb_events);
45 struct 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 
71 extern 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:402
uint8_t op