eal: remove reciprocal divide license boilerplate
[dpdk.git] / drivers / common / cpt / cpt_hw_types.h
index 0a98621..e2b127d 100644 (file)
@@ -20,6 +20,9 @@
 #define CPT_VF_INTR_HWERR_MASK  (1<<5)
 #define CPT_VF_INTR_FAULT_MASK  (1<<6)
 
+#define CPT_INST_SIZE           (64)
+#define CPT_NEXT_CHUNK_PTR_SIZE (8)
+
 /*
  * CPT_INST_S software command definitions
  * Words EI (0-3)
 typedef union {
        uint64_t u64;
        struct {
+#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
                uint16_t opcode;
                uint16_t param1;
                uint16_t param2;
                uint16_t dlen;
+#else
+               uint16_t dlen;
+               uint16_t param2;
+               uint16_t param1;
+               uint16_t opcode;
+#endif
        } s;
 } vq_cmd_word0_t;
 
@@ -187,6 +197,44 @@ typedef union cpt_inst_s {
                };
 #endif /* Word 7 - End */
        } s8x;
+       struct cpt_inst_s_9s {
+#if (RTE_BYTE_ORDER == RTE_BIG_ENDIAN) /* Word 0 - Big Endian */
+               uint64_t nixtx_addr            : 60;
+               uint64_t doneint               : 1;
+               uint64_t nixtxl                : 3;
+#else /* Word 0 - Little Endian */
+               uint64_t nixtxl                : 3;
+               uint64_t doneint               : 1;
+               uint64_t nixtx_addr            : 60;
+#endif /* Word 0 - End */
+               uint64_t res_addr;
+#if (RTE_BYTE_ORDER == RTE_BIG_ENDIAN) /* Word 2 - Big Endian */
+               uint64_t rvu_pf_func           : 16;
+               uint64_t reserved_172_175      : 4;
+               uint64_t grp                   : 10;
+               uint64_t tt                    : 2;
+               uint64_t tag                   : 32;
+#else /* Word 2 - Little Endian */
+               uint64_t tag                   : 32;
+               uint64_t tt                    : 2;
+               uint64_t grp                   : 10;
+               uint64_t reserved_172_175      : 4;
+               uint64_t rvu_pf_func           : 16;
+#endif /* Word 2 - End */
+#if (RTE_BYTE_ORDER == RTE_BIG_ENDIAN) /* Word 3 - Big Endian */
+               uint64_t wq_ptr                : 61;
+               uint64_t reserved_194_193      : 2;
+               uint64_t qord                  : 1;
+#else /* Word 3 - Little Endian */
+               uint64_t qord                  : 1;
+               uint64_t reserved_194_193      : 2;
+               uint64_t wq_ptr                : 61;
+#endif /* Word 3 - End */
+               uint64_t ei0;
+               uint64_t ei1;
+               uint64_t ei2;
+               uint64_t ei3;
+       } s9x;
 } cpt_inst_s_t;
 
 /**
@@ -233,6 +281,20 @@ typedef union cpt_res_s {
                uint64_t reserved_64_127       : 64;
 #endif /* Word 1 - End */
        } s8x;
+       struct cpt_res_s_9s {
+#if (RTE_BYTE_ORDER == RTE_BIG_ENDIAN) /* Word 0 - Big Endian */
+               uint64_t reserved_17_63:47;
+               uint64_t doneint:1;
+               uint64_t uc_compcode:8;
+               uint64_t compcode:8;
+#else /* Word 0 - Little Endian */
+               uint64_t compcode:8;
+               uint64_t uc_compcode:8;
+               uint64_t doneint:1;
+               uint64_t reserved_17_63:47;
+#endif /* Word 0 - End */
+               uint64_t reserved_64_127;
+       } s9x;
 } cpt_res_s_t;
 
 /**