version: 19.11-rc2
[dpdk.git] / drivers / raw / dpaa2_qdma / rte_pmd_dpaa2_qdma.h
index ce491d5..4e1268c 100644 (file)
@@ -33,8 +33,14 @@ enum {
        RTE_QDMA_MODE_VIRTUAL
 };
 
+/** Determines the format of FD */
+enum {
+       RTE_QDMA_LONG_FORMAT,
+       RTE_QDMA_ULTRASHORT_FORMAT,
+};
+
 /**
- * If user has configued a Virtual Queue mode, but for some particular VQ
+ * If user has configured a Virtual Queue mode, but for some particular VQ
  * user needs an exclusive H/W queue associated (for better performance
  * on that particular VQ), then user can pass this flag while creating the
  * Virtual Queue. A H/W queue will be allocated corresponding to
@@ -62,6 +68,8 @@ struct rte_qdma_config {
        uint16_t max_vqs;
        /** mode of operation - physical(h/w) or virtual */
        uint8_t mode;
+       /** FD format */
+       uint8_t format;
        /**
         * User provides this as input to the driver as a size of the FLE pool.
         * FLE's (and corresponding source/destination descriptors) are
@@ -143,6 +151,7 @@ struct rte_qdma_job {
         * lower 8bits fd error
         */
        uint16_t status;
+       uint16_t vq_id;
 };
 
 /**
@@ -286,7 +295,7 @@ rte_qdma_vq_dequeue_multi(uint16_t vq_id,
  * @returns
  *   - A completed job or NULL if no job is there.
  */
-struct rte_qdma_job * __rte_experimental
+struct rte_qdma_job *
 rte_qdma_vq_dequeue(uint16_t vq_id);
 
 /**
@@ -307,7 +316,7 @@ rte_qdma_vq_stats(uint16_t vq_id,
  * VQ's at runtime.
  *
  * @param vq_id
- *   Virtual Queue ID which needs to be deinialized.
+ *   Virtual Queue ID which needs to be uninitialized.
  *
  * @returns
  *   - 0: Success.
@@ -322,7 +331,7 @@ rte_qdma_vq_destroy(uint16_t vq_id);
  * VQ's at runtime.
  *
  * @param vq_id
- *   RBP based Virtual Queue ID which needs to be deinialized.
+ *   RBP based Virtual Queue ID which needs to be uninitialized.
  *
  * @returns
  *   - 0: Success.