diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/sfc/mdio_10g.h | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/sfc/mdio_10g.h')
-rw-r--r-- | drivers/net/sfc/mdio_10g.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/sfc/mdio_10g.h b/drivers/net/sfc/mdio_10g.h index 6b14421a7444..f89e71929603 100644 --- a/drivers/net/sfc/mdio_10g.h +++ b/drivers/net/sfc/mdio_10g.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | * Driver for Solarflare Solarstorm network controllers and boards | 2 | * Driver for Solarflare Solarstorm network controllers and boards |
3 | * Copyright 2006-2008 Solarflare Communications Inc. | 3 | * Copyright 2006-2009 Solarflare Communications Inc. |
4 | * | 4 | * |
5 | * This program is free software; you can redistribute it and/or modify it | 5 | * This program is free software; you can redistribute it and/or modify it |
6 | * under the terms of the GNU General Public License version 2 as published | 6 | * under the terms of the GNU General Public License version 2 as published |
@@ -17,7 +17,6 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include "efx.h" | 19 | #include "efx.h" |
20 | #include "boards.h" | ||
21 | 20 | ||
22 | static inline unsigned efx_mdio_id_rev(u32 id) { return id & 0xf; } | 21 | static inline unsigned efx_mdio_id_rev(u32 id) { return id & 0xf; } |
23 | static inline unsigned efx_mdio_id_model(u32 id) { return (id >> 4) & 0x3f; } | 22 | static inline unsigned efx_mdio_id_model(u32 id) { return (id >> 4) & 0x3f; } |
@@ -87,6 +86,9 @@ extern void efx_mdio_set_mmds_lpower(struct efx_nic *efx, | |||
87 | /* Set (some of) the PHY settings over MDIO */ | 86 | /* Set (some of) the PHY settings over MDIO */ |
88 | extern int efx_mdio_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd); | 87 | extern int efx_mdio_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd); |
89 | 88 | ||
89 | /* Push advertising flags and restart autonegotiation */ | ||
90 | extern void efx_mdio_an_reconfigure(struct efx_nic *efx); | ||
91 | |||
90 | /* Get pause parameters from AN if available (otherwise return | 92 | /* Get pause parameters from AN if available (otherwise return |
91 | * requested pause parameters) | 93 | * requested pause parameters) |
92 | */ | 94 | */ |
@@ -104,4 +106,7 @@ efx_mdio_set_flag(struct efx_nic *efx, int devad, int addr, | |||
104 | mdio_set_flag(&efx->mdio, efx->mdio.prtad, devad, addr, mask, state); | 106 | mdio_set_flag(&efx->mdio, efx->mdio.prtad, devad, addr, mask, state); |
105 | } | 107 | } |
106 | 108 | ||
109 | /* Liveness self-test for MDIO PHYs */ | ||
110 | extern int efx_mdio_test_alive(struct efx_nic *efx); | ||
111 | |||
107 | #endif /* EFX_MDIO_10G_H */ | 112 | #endif /* EFX_MDIO_10G_H */ |