5 #ifndef RTE_DMADEV_PMD_H 6 #define RTE_DMADEV_PMD_H 28 typedef int (*rte_dma_info_get_t)(
const struct rte_dma_dev *dev,
33 typedef int (*rte_dma_configure_t)(
struct rte_dma_dev *dev,
38 typedef int (*rte_dma_start_t)(
struct rte_dma_dev *dev);
41 typedef int (*rte_dma_stop_t)(
struct rte_dma_dev *dev);
44 typedef int (*rte_dma_close_t)(
struct rte_dma_dev *dev);
47 typedef int (*rte_dma_vchan_setup_t)(
struct rte_dma_dev *dev, uint16_t vchan,
52 typedef int (*rte_dma_stats_get_t)(
const struct rte_dma_dev *dev,
57 typedef int (*rte_dma_stats_reset_t)(
struct rte_dma_dev *dev, uint16_t vchan);
60 typedef int (*rte_dma_vchan_status_t)(
const struct rte_dma_dev *dev, uint16_t vchan,
64 typedef 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;
96 struct 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];
153 struct rte_dma_dev *rte_dma_pmd_allocate(
const char *name,
int numa_node,
154 size_t private_data_size);
167 int rte_dma_pmd_release(
const char *name);
#define __rte_cache_aligned