common/cnxk: update meter algorithm in band profile
[dpdk.git] / drivers / common / cnxk / hw / cpt.h
index 975139f..4d9c896 100644 (file)
@@ -64,8 +64,7 @@ union cpt_lf_ctx_flush {
        struct {
                uint64_t cptr : 46;
                uint64_t inval : 1;
-               uint64_t res : 1;
-               uint64_t pf_func : 16;
+               uint64_t reserved_47_63 : 17;
        } s;
 };
 
@@ -73,6 +72,7 @@ union cpt_lf_ctx_reload {
        uint64_t u;
        struct {
                uint64_t cptr : 46;
+               uint64_t reserved_46_63 : 18;
        } s;
 };
 
@@ -91,6 +91,17 @@ union cpt_lf_inprog {
        } s;
 };
 
+union cpt_lf_q_inst_ptr {
+       uint64_t u;
+       struct cpt_lf_q_inst_ptr_s {
+               uint64_t dq_ptr : 20;
+               uint64_t reserved_20_31 : 12;
+               uint64_t nq_ptr : 20;
+               uint64_t reserved_52_62 : 11;
+               uint64_t xq_xor : 1;
+       } s;
+};
+
 union cpt_lf_q_base {
        uint64_t u;
        struct cpt_lf_q_base_s {
@@ -124,6 +135,17 @@ union cpt_lf_misc_int {
        } s;
 };
 
+union cpt_lf_q_grp_ptr {
+       uint64_t u;
+       struct {
+               uint64_t dq_ptr : 15;
+               uint64_t reserved_31_15 : 17;
+               uint64_t nq_ptr : 15;
+               uint64_t reserved_47_62 : 16;
+               uint64_t xq_xor : 1;
+       } s;
+};
+
 union cpt_inst_w4 {
        uint64_t u64;
        struct {
@@ -204,6 +226,8 @@ union cpt_res_s {
 
                uint64_t reserved_64_127;
        } cn9k;
+
+       uint64_t u64[2];
 };
 
 /* [CN10K, .) */