aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_link.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bnx2x_link.h')
-rw-r--r--drivers/net/bnx2x_link.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/bnx2x_link.h b/drivers/net/bnx2x_link.h
index e0d7eef1ced5..f3e252264e1b 100644
--- a/drivers/net/bnx2x_link.h
+++ b/drivers/net/bnx2x_link.h
@@ -88,10 +88,14 @@ struct link_params {
88 88
89 u32 lane_config; 89 u32 lane_config;
90 u32 ext_phy_config; 90 u32 ext_phy_config;
91#define XGXS_EXT_PHY_TYPE(ext_phy_config) (ext_phy_config & \ 91#define XGXS_EXT_PHY_TYPE(ext_phy_config) \
92 PORT_HW_CFG_XGXS_EXT_PHY_TYPE_MASK) 92 ((ext_phy_config) & PORT_HW_CFG_XGXS_EXT_PHY_TYPE_MASK)
93#define SERDES_EXT_PHY_TYPE(ext_phy_config) (ext_phy_config & \ 93#define XGXS_EXT_PHY_ADDR(ext_phy_config) \
94 PORT_HW_CFG_SERDES_EXT_PHY_TYPE_MASK) 94 (((ext_phy_config) & PORT_HW_CFG_XGXS_EXT_PHY_ADDR_MASK) >> \
95 PORT_HW_CFG_XGXS_EXT_PHY_ADDR_SHIFT)
96#define SERDES_EXT_PHY_TYPE(ext_phy_config) \
97 ((ext_phy_config) & PORT_HW_CFG_SERDES_EXT_PHY_TYPE_MASK)
98
95 /* Phy register parameter */ 99 /* Phy register parameter */
96 u32 chip_id; 100 u32 chip_id;
97 101