diff options
Diffstat (limited to 'drivers/net/ethernet/sfc/mdio_10g.h')
-rw-r--r-- | drivers/net/ethernet/sfc/mdio_10g.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/drivers/net/ethernet/sfc/mdio_10g.h b/drivers/net/ethernet/sfc/mdio_10g.h index 16824fecc5ee..4a2dc4c281b7 100644 --- a/drivers/net/ethernet/sfc/mdio_10g.h +++ b/drivers/net/ethernet/sfc/mdio_10g.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | 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; } |
22 | 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; } |
23 | extern unsigned efx_mdio_id_oui(u32 id); | 23 | unsigned efx_mdio_id_oui(u32 id); |
24 | 24 | ||
25 | static inline int efx_mdio_read(struct efx_nic *efx, int devad, int addr) | 25 | static inline int efx_mdio_read(struct efx_nic *efx, int devad, int addr) |
26 | { | 26 | { |
@@ -56,7 +56,7 @@ static inline bool efx_mdio_phyxgxs_lane_sync(struct efx_nic *efx) | |||
56 | return sync; | 56 | return sync; |
57 | } | 57 | } |
58 | 58 | ||
59 | extern const char *efx_mdio_mmd_name(int mmd); | 59 | const char *efx_mdio_mmd_name(int mmd); |
60 | 60 | ||
61 | /* | 61 | /* |
62 | * Reset a specific MMD and wait for reset to clear. | 62 | * Reset a specific MMD and wait for reset to clear. |
@@ -64,30 +64,29 @@ extern const char *efx_mdio_mmd_name(int mmd); | |||
64 | * | 64 | * |
65 | * This function will sleep | 65 | * This function will sleep |
66 | */ | 66 | */ |
67 | extern int efx_mdio_reset_mmd(struct efx_nic *efx, int mmd, | 67 | int efx_mdio_reset_mmd(struct efx_nic *efx, int mmd, int spins, int spintime); |
68 | int spins, int spintime); | ||
69 | 68 | ||
70 | /* As efx_mdio_check_mmd but for multiple MMDs */ | 69 | /* As efx_mdio_check_mmd but for multiple MMDs */ |
71 | int efx_mdio_check_mmds(struct efx_nic *efx, unsigned int mmd_mask); | 70 | int efx_mdio_check_mmds(struct efx_nic *efx, unsigned int mmd_mask); |
72 | 71 | ||
73 | /* Check the link status of specified mmds in bit mask */ | 72 | /* Check the link status of specified mmds in bit mask */ |
74 | extern bool efx_mdio_links_ok(struct efx_nic *efx, unsigned int mmd_mask); | 73 | bool efx_mdio_links_ok(struct efx_nic *efx, unsigned int mmd_mask); |
75 | 74 | ||
76 | /* Generic transmit disable support though PMAPMD */ | 75 | /* Generic transmit disable support though PMAPMD */ |
77 | extern void efx_mdio_transmit_disable(struct efx_nic *efx); | 76 | void efx_mdio_transmit_disable(struct efx_nic *efx); |
78 | 77 | ||
79 | /* Generic part of reconfigure: set/clear loopback bits */ | 78 | /* Generic part of reconfigure: set/clear loopback bits */ |
80 | extern void efx_mdio_phy_reconfigure(struct efx_nic *efx); | 79 | void efx_mdio_phy_reconfigure(struct efx_nic *efx); |
81 | 80 | ||
82 | /* Set the power state of the specified MMDs */ | 81 | /* Set the power state of the specified MMDs */ |
83 | extern void efx_mdio_set_mmds_lpower(struct efx_nic *efx, | 82 | void efx_mdio_set_mmds_lpower(struct efx_nic *efx, int low_power, |
84 | int low_power, unsigned int mmd_mask); | 83 | unsigned int mmd_mask); |
85 | 84 | ||
86 | /* Set (some of) the PHY settings over MDIO */ | 85 | /* Set (some of) the PHY settings over MDIO */ |
87 | extern int efx_mdio_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd); | 86 | int efx_mdio_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd); |
88 | 87 | ||
89 | /* Push advertising flags and restart autonegotiation */ | 88 | /* Push advertising flags and restart autonegotiation */ |
90 | extern void efx_mdio_an_reconfigure(struct efx_nic *efx); | 89 | void efx_mdio_an_reconfigure(struct efx_nic *efx); |
91 | 90 | ||
92 | /* Get pause parameters from AN if available (otherwise return | 91 | /* Get pause parameters from AN if available (otherwise return |
93 | * requested pause parameters) | 92 | * requested pause parameters) |
@@ -95,8 +94,7 @@ extern void efx_mdio_an_reconfigure(struct efx_nic *efx); | |||
95 | u8 efx_mdio_get_pause(struct efx_nic *efx); | 94 | u8 efx_mdio_get_pause(struct efx_nic *efx); |
96 | 95 | ||
97 | /* Wait for specified MMDs to exit reset within a timeout */ | 96 | /* Wait for specified MMDs to exit reset within a timeout */ |
98 | extern int efx_mdio_wait_reset_mmds(struct efx_nic *efx, | 97 | int efx_mdio_wait_reset_mmds(struct efx_nic *efx, unsigned int mmd_mask); |
99 | unsigned int mmd_mask); | ||
100 | 98 | ||
101 | /* Set or clear flag, debouncing */ | 99 | /* Set or clear flag, debouncing */ |
102 | static inline void | 100 | static inline void |
@@ -107,6 +105,6 @@ efx_mdio_set_flag(struct efx_nic *efx, int devad, int addr, | |||
107 | } | 105 | } |
108 | 106 | ||
109 | /* Liveness self-test for MDIO PHYs */ | 107 | /* Liveness self-test for MDIO PHYs */ |
110 | extern int efx_mdio_test_alive(struct efx_nic *efx); | 108 | int efx_mdio_test_alive(struct efx_nic *efx); |
111 | 109 | ||
112 | #endif /* EFX_MDIO_10G_H */ | 110 | #endif /* EFX_MDIO_10G_H */ |