5#ifndef RTE_DMADEV_PMD_H
6#define RTE_DMADEV_PMD_H
28typedef int (*rte_dma_info_get_t)(
const struct rte_dma_dev *dev,
33typedef int (*rte_dma_configure_t)(
struct rte_dma_dev *dev,
38typedef int (*rte_dma_start_t)(
struct rte_dma_dev *dev);
41typedef int (*rte_dma_stop_t)(
struct rte_dma_dev *dev);
44typedef int (*rte_dma_close_t)(
struct rte_dma_dev *dev);
47typedef int (*rte_dma_vchan_setup_t)(
struct rte_dma_dev *dev, uint16_t vchan,
52typedef int (*rte_dma_stats_get_t)(
const struct rte_dma_dev *dev,
57typedef int (*rte_dma_stats_reset_t)(
struct rte_dma_dev *dev, uint16_t vchan);
60typedef int (*rte_dma_vchan_status_t)(
const struct rte_dma_dev *dev, uint16_t vchan,
64typedef int (*rte_dma_dump_t)(
const struct rte_dma_dev *dev, FILE *f);
72 rte_dma_info_get_t dev_info_get;
73 rte_dma_configure_t dev_configure;
74 rte_dma_start_t dev_start;
75 rte_dma_stop_t dev_stop;
76 rte_dma_close_t dev_close;
78 rte_dma_vchan_setup_t vchan_setup;
80 rte_dma_stats_get_t stats_get;
81 rte_dma_stats_reset_t stats_reset;
83 rte_dma_vchan_status_t vchan_status;
84 rte_dma_dump_t dev_dump;
96struct rte_dma_dev_data {
97 char dev_name[RTE_DEV_NAME_MAX_LEN];
103 uint8_t dev_started : 1;
104 uint64_t reserved[2];
127 struct rte_dma_dev_data *data;
129 struct rte_dma_fp_object *fp_obj;
133 uint64_t reserved[2];
153struct rte_dma_dev *rte_dma_pmd_allocate(
const char *name,
int numa_node,
154 size_t private_data_size);
167int rte_dma_pmd_release(
const char *name);
#define __rte_cache_aligned