X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdmadev%2Frte_dmadev_core.h;h=064785686f7fee2a07b210dff50645eff375b184;hb=ec487c189686ee9b3b7551d3aca138cec3f91e74;hp=a6946052dbf217db3ea3c7231b33a5bef1b2ee85;hpb=91e581e5c924de7ce7c8b526787d1916a7daf980;p=dpdk.git diff --git a/lib/dmadev/rte_dmadev_core.h b/lib/dmadev/rte_dmadev_core.h index a6946052db..064785686f 100644 --- a/lib/dmadev/rte_dmadev_core.h +++ b/lib/dmadev/rte_dmadev_core.h @@ -47,6 +47,9 @@ typedef uint16_t (*rte_dma_completed_status_t)(void *dev_private, uint16_t vchan, const uint16_t nb_cpls, uint16_t *last_idx, enum rte_dma_status_code *status); +/** @internal Used to check the remaining space in descriptor ring. */ +typedef uint16_t (*rte_dma_burst_capacity_t)(const void *dev_private, uint16_t vchan); + /** * @internal * Fast-path dmadev functions and related data are hold in a flat array. @@ -56,11 +59,11 @@ typedef uint16_t (*rte_dma_completed_status_t)(void *dev_private, * functions. * * The 'dev_private' field was placed in the first cache line to optimize - * performance because the PMD driver mainly depends on this field. + * performance because the PMD mainly depends on this field. */ struct rte_dma_fp_object { /** PMD-specific private data. The driver should copy - * rte_dma_dev.dev_private to this field during initialization. + * rte_dma_dev.data->dev_private to this field during initialization. */ void *dev_private; rte_dma_copy_t copy; @@ -69,6 +72,7 @@ struct rte_dma_fp_object { rte_dma_submit_t submit; rte_dma_completed_t completed; rte_dma_completed_status_t completed_status; + rte_dma_burst_capacity_t burst_capacity; } __rte_aligned(128); extern struct rte_dma_fp_object *rte_dma_fp_objs;