diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-08-12 04:23:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-13 02:02:56 -0400 |
commit | 1ef70b9c12407f0bf332ba775a8aa8f8035d0a24 (patch) | |
tree | fe663ad2b1e6d358fdc4d3c3aacebefa297c34a5 /drivers/net/bnx2x_link.c | |
parent | 8924665a7d77bb79ee895b98864e3201507f6ef2 (diff) |
bnx2x: Re-arrange the link structures for better alignment
Change ieee_fc to u16 instead of u32 and re-arrange the link parameters
structures
Signed-off-by: Yitchak Gertner <gertner@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_link.c')
-rw-r--r-- | drivers/net/bnx2x_link.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/bnx2x_link.c b/drivers/net/bnx2x_link.c index c163c42bc1f..74f4d1085a3 100644 --- a/drivers/net/bnx2x_link.c +++ b/drivers/net/bnx2x_link.c | |||
@@ -1347,7 +1347,7 @@ static void bnx2x_set_brcm_cl37_advertisment(struct link_params *params) | |||
1347 | MDIO_OVER_1G_UP3, 0x400); | 1347 | MDIO_OVER_1G_UP3, 0x400); |
1348 | } | 1348 | } |
1349 | 1349 | ||
1350 | static void bnx2x_calc_ieee_aneg_adv(struct link_params *params, u32 *ieee_fc) | 1350 | static void bnx2x_calc_ieee_aneg_adv(struct link_params *params, u16 *ieee_fc) |
1351 | { | 1351 | { |
1352 | *ieee_fc = MDIO_COMBO_IEEE0_AUTO_NEG_ADV_FULL_DUPLEX; | 1352 | *ieee_fc = MDIO_COMBO_IEEE0_AUTO_NEG_ADV_FULL_DUPLEX; |
1353 | /* resolve pause mode and advertisement | 1353 | /* resolve pause mode and advertisement |
@@ -1381,7 +1381,7 @@ static void bnx2x_calc_ieee_aneg_adv(struct link_params *params, u32 *ieee_fc) | |||
1381 | } | 1381 | } |
1382 | 1382 | ||
1383 | static void bnx2x_set_ieee_aneg_advertisment(struct link_params *params, | 1383 | static void bnx2x_set_ieee_aneg_advertisment(struct link_params *params, |
1384 | u32 ieee_fc) | 1384 | u16 ieee_fc) |
1385 | { | 1385 | { |
1386 | struct bnx2x *bp = params->bp; | 1386 | struct bnx2x *bp = params->bp; |
1387 | /* for AN, we are always publishing full duplex */ | 1387 | /* for AN, we are always publishing full duplex */ |
@@ -1389,7 +1389,7 @@ static void bnx2x_set_ieee_aneg_advertisment(struct link_params *params, | |||
1389 | CL45_WR_OVER_CL22(bp, params->port, | 1389 | CL45_WR_OVER_CL22(bp, params->port, |
1390 | params->phy_addr, | 1390 | params->phy_addr, |
1391 | MDIO_REG_BANK_COMBO_IEEE0, | 1391 | MDIO_REG_BANK_COMBO_IEEE0, |
1392 | MDIO_COMBO_IEEE0_AUTO_NEG_ADV, (u16)ieee_fc); | 1392 | MDIO_COMBO_IEEE0_AUTO_NEG_ADV, ieee_fc); |
1393 | } | 1393 | } |
1394 | 1394 | ||
1395 | static void bnx2x_restart_autoneg(struct link_params *params, u8 enable_cl73) | 1395 | static void bnx2x_restart_autoneg(struct link_params *params, u8 enable_cl73) |