git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ipc: end multiprocess thread during cleanup
[dpdk.git]
/
lib
/
dmadev
/
rte_dmadev_pmd.h
diff --git
a/lib/dmadev/rte_dmadev_pmd.h
b/lib/dmadev/rte_dmadev_pmd.h
index
23b07a4
..
5316ad5
100644
(file)
--- a/
lib/dmadev/rte_dmadev_pmd.h
+++ b/
lib/dmadev/rte_dmadev_pmd.h
@@
-54,6
+54,10
@@
typedef int (*rte_dma_stats_get_t)(const struct rte_dma_dev *dev,
/** @internal Used to reset basic statistics. */
typedef int (*rte_dma_stats_reset_t)(struct rte_dma_dev *dev, uint16_t vchan);
/** @internal Used to reset basic statistics. */
typedef int (*rte_dma_stats_reset_t)(struct rte_dma_dev *dev, uint16_t vchan);
+/** @internal Used to check if a virtual channel has finished all jobs. */
+typedef int (*rte_dma_vchan_status_t)(const struct rte_dma_dev *dev, uint16_t vchan,
+ enum rte_dma_vchan_status *status);
+
/** @internal Used to dump internal information. */
typedef int (*rte_dma_dump_t)(const struct rte_dma_dev *dev, FILE *f);
/** @internal Used to dump internal information. */
typedef int (*rte_dma_dump_t)(const struct rte_dma_dev *dev, FILE *f);
@@
-74,6
+78,7
@@
struct rte_dma_dev_ops {
rte_dma_stats_get_t stats_get;
rte_dma_stats_reset_t stats_reset;
rte_dma_stats_get_t stats_get;
rte_dma_stats_reset_t stats_reset;
+ rte_dma_vchan_status_t vchan_status;
rte_dma_dump_t dev_dump;
};
rte_dma_dump_t dev_dump;
};
@@
-126,8
+131,6
@@
struct rte_dma_dev {
uint64_t reserved[2]; /**< Reserved for future fields. */
} __rte_cache_aligned;
uint64_t reserved[2]; /**< Reserved for future fields. */
} __rte_cache_aligned;
-extern struct rte_dma_dev *rte_dma_devices;
-
/**
* @internal
* Allocate a new dmadev slot for an DMA device and return the pointer to that
/**
* @internal
* Allocate a new dmadev slot for an DMA device and return the pointer to that