5 #ifndef RTE_DMADEV_PMD_H 6 #define RTE_DMADEV_PMD_H 17 #include <dev_driver.h> 19 #include <rte_compat.h> 29 typedef int (*rte_dma_info_get_t)(
const struct rte_dma_dev *dev,
34 typedef int (*rte_dma_configure_t)(
struct rte_dma_dev *dev,
39 typedef int (*rte_dma_start_t)(
struct rte_dma_dev *dev);
42 typedef int (*rte_dma_stop_t)(
struct rte_dma_dev *dev);
45 typedef int (*rte_dma_close_t)(
struct rte_dma_dev *dev);
48 typedef int (*rte_dma_vchan_setup_t)(
struct rte_dma_dev *dev, uint16_t vchan,
53 typedef int (*rte_dma_stats_get_t)(
const struct rte_dma_dev *dev,
58 typedef int (*rte_dma_stats_reset_t)(
struct rte_dma_dev *dev, uint16_t vchan);
61 typedef int (*rte_dma_vchan_status_t)(
const struct rte_dma_dev *dev, uint16_t vchan,
65 typedef int (*rte_dma_dump_t)(
const struct rte_dma_dev *dev, FILE *f);
73 rte_dma_info_get_t dev_info_get;
74 rte_dma_configure_t dev_configure;
75 rte_dma_start_t dev_start;
76 rte_dma_stop_t dev_stop;
77 rte_dma_close_t dev_close;
79 rte_dma_vchan_setup_t vchan_setup;
81 rte_dma_stats_get_t stats_get;
82 rte_dma_stats_reset_t stats_reset;
84 rte_dma_vchan_status_t vchan_status;
85 rte_dma_dump_t dev_dump;
97 struct rte_dma_dev_data {
98 char dev_name[RTE_DEV_NAME_MAX_LEN];
104 uint8_t dev_started : 1;
105 uint64_t reserved[2];
127 struct rte_device *device;
128 struct rte_dma_dev_data *data;
130 struct rte_dma_fp_object *fp_obj;
134 uint64_t reserved[2];
154 struct rte_dma_dev *rte_dma_pmd_allocate(
const char *name,
int numa_node,
155 size_t private_data_size);
168 int rte_dma_pmd_release(
const char *name);
#define __rte_cache_aligned