6 #ifndef RTE_DMADEV_CORE_H
7 #define RTE_DMADEV_CORE_H
21 typedef int (*rte_dma_copy_t)(
void *dev_private, uint16_t vchan,
23 uint32_t length, uint64_t flags);
26 typedef int (*rte_dma_copy_sg_t)(
void *dev_private, uint16_t vchan,
29 uint16_t nb_src, uint16_t nb_dst,
33 typedef int (*rte_dma_fill_t)(
void *dev_private, uint16_t vchan,
35 uint32_t
length, uint64_t flags);
38 typedef int (*rte_dma_submit_t)(
void *dev_private, uint16_t vchan);
41 typedef uint16_t (*rte_dma_completed_t)(
void *dev_private,
42 uint16_t vchan,
const uint16_t nb_cpls,
43 uint16_t *last_idx,
bool *has_error);
46 typedef uint16_t (*rte_dma_completed_status_t)(
void *dev_private,
47 uint16_t vchan,
const uint16_t nb_cpls,
51 typedef uint16_t (*rte_dma_burst_capacity_t)(
const void *dev_private, uint16_t vchan);
54 typedef uint16_t (*rte_dma_enqueue_ops_t)(
void *dev_private, uint16_t vchan,
58 typedef uint16_t (*rte_dma_dequeue_ops_t)(
void *dev_private, uint16_t
vchan,
78 rte_dma_copy_sg_t copy_sg;
80 rte_dma_submit_t submit;
81 rte_dma_completed_t completed;
82 rte_dma_completed_status_t completed_status;
83 rte_dma_burst_capacity_t burst_capacity;
84 rte_dma_enqueue_ops_t enqueue;
85 rte_dma_dequeue_ops_t dequeue;
88 extern struct rte_dma_fp_object *rte_dma_fp_objs;
#define __rte_cache_aligned