]> git.droids-corp.org - dpdk.git/blobdiff - drivers/common/cpt/cpt_hw_types.h
common/sfc_efx/base: support custom EvQ to IRQ mapping
[dpdk.git] / drivers / common / cpt / cpt_hw_types.h
index e2b127de41f1f693cd387d98b06372ac0e0a92f1..a1f969eb149349f5f0c5d07ee0031686e4b9868b 100644 (file)
@@ -31,7 +31,10 @@ typedef union {
        uint64_t u64;
        struct {
 #if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
-               uint16_t opcode;
+               struct {
+                       uint8_t minor;
+                       uint8_t major;
+               } opcode;
                uint16_t param1;
                uint16_t param2;
                uint16_t dlen;
@@ -39,7 +42,10 @@ typedef union {
                uint16_t dlen;
                uint16_t param2;
                uint16_t param1;
-               uint16_t opcode;
+               struct {
+                       uint8_t major;
+                       uint8_t minor;
+               } opcode;
 #endif
        } s;
 } vq_cmd_word0_t;