forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
....@@ -32,8 +32,14 @@
3232 * (you will need to reboot afterwards) */
3333 /* #define BNX2X_STOP_ON_ERROR */
3434
35
-#define DRV_MODULE_VERSION "1.712.30-0"
36
-#define DRV_MODULE_RELDATE "2014/02/10"
35
+/* FIXME: Delete the DRV_MODULE_VERSION below, but please be warned
36
+ * that it is not an easy task because such change has all chances
37
+ * to break this driver due to amount of abuse of in-kernel interfaces
38
+ * between modules and FW.
39
+ *
40
+ * DO NOT UPDATE DRV_MODULE_VERSION below.
41
+ */
42
+#define DRV_MODULE_VERSION "1.713.36-0"
3743 #define BNX2X_BC_VER 0x040200
3844
3945 #if defined(CONFIG_DCB)
....@@ -1281,7 +1287,6 @@
12811287 BNX2X_SP_RTNL_HYPERVISOR_VLAN,
12821288 BNX2X_SP_RTNL_TX_STOP,
12831289 BNX2X_SP_RTNL_GET_DRV_VERSION,
1284
- BNX2X_SP_RTNL_CHANGE_UDP_PORT,
12851290 BNX2X_SP_RTNL_UPDATE_SVID,
12861291 };
12871292
....@@ -1335,11 +1340,6 @@
13351340 BNX2X_UDP_PORT_VXLAN,
13361341 BNX2X_UDP_PORT_GENEVE,
13371342 BNX2X_UDP_PORT_MAX,
1338
-};
1339
-
1340
-struct bnx2x_udp_tunnel {
1341
- u16 dst_port;
1342
- u8 count;
13431343 };
13441344
13451345 struct bnx2x {
....@@ -1849,7 +1849,15 @@
18491849 bool accept_any_vlan;
18501850
18511851 /* Vxlan/Geneve related information */
1852
- struct bnx2x_udp_tunnel udp_tunnel_ports[BNX2X_UDP_PORT_MAX];
1852
+ u16 udp_tunnel_ports[BNX2X_UDP_PORT_MAX];
1853
+
1854
+#define FW_CAP_INVALIDATE_VF_FP_HSI BIT(0)
1855
+ u32 fw_cap;
1856
+
1857
+ u32 fw_major;
1858
+ u32 fw_minor;
1859
+ u32 fw_rev;
1860
+ u32 fw_eng;
18531861 };
18541862
18551863 /* Tx queues may be less or equal to Rx queues */
....@@ -1973,6 +1981,9 @@
19731981
19741982 #define skip_queue(bp, idx) (NO_FCOE(bp) && IS_FCOE_IDX(idx))
19751983
1984
+/*self test*/
1985
+int bnx2x_idle_chk(struct bnx2x *bp);
1986
+
19761987 /**
19771988 * bnx2x_set_mac_one - configure a single MAC address
19781989 *
....@@ -2081,7 +2092,7 @@
20812092 bool is_pf);
20822093
20832094 #define BNX2X_ILT_ZALLOC(x, y, size) \
2084
- x = dma_zalloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL)
2095
+ x = dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL)
20852096
20862097 #define BNX2X_ILT_FREE(x, y, size) \
20872098 do { \
....@@ -2424,13 +2435,6 @@
24242435 #define HC_SEG_ACCESS_ATTN 4
24252436 #define HC_SEG_ACCESS_NORM 0 /*Driver decision 0-1*/
24262437
2427
-static const u32 dmae_reg_go_c[] = {
2428
- DMAE_REG_GO_C0, DMAE_REG_GO_C1, DMAE_REG_GO_C2, DMAE_REG_GO_C3,
2429
- DMAE_REG_GO_C4, DMAE_REG_GO_C5, DMAE_REG_GO_C6, DMAE_REG_GO_C7,
2430
- DMAE_REG_GO_C8, DMAE_REG_GO_C9, DMAE_REG_GO_C10, DMAE_REG_GO_C11,
2431
- DMAE_REG_GO_C12, DMAE_REG_GO_C13, DMAE_REG_GO_C14, DMAE_REG_GO_C15
2432
-};
2433
-
24342438 void bnx2x_set_ethtool_ops(struct bnx2x *bp, struct net_device *netdev);
24352439 void bnx2x_notify_link_changed(struct bnx2x *bp);
24362440
....@@ -2521,6 +2525,7 @@
25212525 void bnx2x_init_ptp(struct bnx2x *bp);
25222526 int bnx2x_configure_ptp_filters(struct bnx2x *bp);
25232527 void bnx2x_set_rx_ts(struct bnx2x *bp, struct sk_buff *skb);
2528
+void bnx2x_register_phc(struct bnx2x *bp);
25242529
25252530 #define BNX2X_MAX_PHC_DRIFT 31000000
25262531 #define BNX2X_PTP_TX_TIMEOUT
....@@ -2529,5 +2534,4 @@
25292534 * Meant for implicit re-load flows.
25302535 */
25312536 int bnx2x_vlan_reconfigure_vid(struct bnx2x *bp);
2532
-
25332537 #endif /* bnx2x.h */