hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h
....@@ -64,8 +64,17 @@
6464 #define BNXT_EN_FLAG_ROCE_CAP (BNXT_EN_FLAG_ROCEV1_CAP | \
6565 BNXT_EN_FLAG_ROCEV2_CAP)
6666 #define BNXT_EN_FLAG_MSIX_REQUESTED 0x4
67
+ #define BNXT_EN_FLAG_ULP_STOPPED 0x8
6768 const struct bnxt_en_ops *en_ops;
6869 struct bnxt_ulp ulp_tbl[BNXT_MAX_ULP];
70
+ int l2_db_size; /* Doorbell BAR size in
71
+ * bytes mapped by L2
72
+ * driver.
73
+ */
74
+ int l2_db_size_nc; /* Doorbell BAR size in
75
+ * bytes mapped as non-
76
+ * cacheable.
77
+ */
6978 };
7079
7180 struct bnxt_en_ops {
....@@ -90,8 +99,9 @@
9099
91100 int bnxt_get_ulp_msix_num(struct bnxt *bp);
92101 int bnxt_get_ulp_msix_base(struct bnxt *bp);
102
+int bnxt_get_ulp_stat_ctxs(struct bnxt *bp);
93103 void bnxt_ulp_stop(struct bnxt *bp);
94
-void bnxt_ulp_start(struct bnxt *bp);
104
+void bnxt_ulp_start(struct bnxt *bp, int err);
95105 void bnxt_ulp_sriov_cfg(struct bnxt *bp, int num_vfs);
96106 void bnxt_ulp_shutdown(struct bnxt *bp);
97107 void bnxt_ulp_irq_stop(struct bnxt *bp);