hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.h
....@@ -63,6 +63,8 @@
6363 #define HWRM_DBG_CMN_FLAGS_MORE 1
6464 };
6565
66
+#define BNXT_CRASH_DUMP_LEN (8 << 20)
67
+
6668 #define BNXT_LED_DFLT_ENA \
6769 (PORT_LED_CFG_REQ_ENABLES_LED0_ID | \
6870 PORT_LED_CFG_REQ_ENABLES_LED0_STATE | \
....@@ -75,14 +77,25 @@
7577 #define BNXT_LED_DFLT_ENABLES(x) \
7678 cpu_to_le32(BNXT_LED_DFLT_ENA << (BNXT_LED_DFLT_ENA_SHIFT * (x)))
7779
78
-#define BNXT_FW_RESET_AP 0xfffe
79
-#define BNXT_FW_RESET_CHIP 0xffff
80
+#define BNXT_FW_RESET_AP (ETH_RESET_AP << ETH_RESET_SHARED_SHIFT)
81
+#define BNXT_FW_RESET_CHIP ((ETH_RESET_MGMT | ETH_RESET_IRQ | \
82
+ ETH_RESET_DMA | ETH_RESET_FILTER | \
83
+ ETH_RESET_OFFLOAD | ETH_RESET_MAC | \
84
+ ETH_RESET_PHY | ETH_RESET_RAM) \
85
+ << ETH_RESET_SHARED_SHIFT)
86
+
87
+#define BNXT_PXP_REG_LEN 0x3110
8088
8189 extern const struct ethtool_ops bnxt_ethtool_ops;
8290
91
+u32 bnxt_get_rxfh_indir_size(struct net_device *dev);
8392 u32 _bnxt_fw_to_ethtool_adv_spds(u16, u8);
8493 u32 bnxt_fw_to_ethtool_speed(u16);
8594 u16 bnxt_get_fw_auto_link_speeds(u32);
95
+int bnxt_hwrm_nvm_get_dev_info(struct bnxt *bp,
96
+ struct hwrm_nvm_get_dev_info_output *nvm_dev_info);
97
+int bnxt_flash_package_from_file(struct net_device *dev, const char *filename,
98
+ u32 install_type);
8699 void bnxt_ethtool_init(struct bnxt *bp);
87100 void bnxt_ethtool_free(struct bnxt *bp);
88101