diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2018-04-23 11:43:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-23 21:24:22 -0400 |
commit | 4d945663a6a0acf3cbe45940503f2eb9584bfee7 (patch) | |
tree | e324303185822fde68991b6f94b8dbcef356cef9 /drivers/net/ethernet/amd/xgbe/xgbe.h | |
parent | a49e2f5d5fb141884452ddb428f551b123d436b5 (diff) | |
download | linux-4d945663a6a0acf3cbe45940503f2eb9584bfee7.tar.gz linux-4d945663a6a0acf3cbe45940503f2eb9584bfee7.tar.bz2 linux-4d945663a6a0acf3cbe45940503f2eb9584bfee7.zip |
amd-xgbe: Add pre/post auto-negotiation phy hooks
Add hooks to the driver auto-negotiation (AN) flow to allow the different
phy implementations to perform any steps necessary to improve AN.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe.h')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe.h b/drivers/net/ethernet/amd/xgbe/xgbe.h index ad102c8bac7b..fa0b51ea1b95 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe.h +++ b/drivers/net/ethernet/amd/xgbe/xgbe.h @@ -833,6 +833,7 @@ struct xgbe_hw_if { /* This structure represents implementation specific routines for an * implementation of a PHY. All routines are required unless noted below. * Optional routines: + * an_pre, an_post * kr_training_pre, kr_training_post */ struct xgbe_phy_impl_if { @@ -875,6 +876,10 @@ struct xgbe_phy_impl_if { /* Process results of auto-negotiation */ enum xgbe_mode (*an_outcome)(struct xgbe_prv_data *); + /* Pre/Post auto-negotiation support */ + void (*an_pre)(struct xgbe_prv_data *); + void (*an_post)(struct xgbe_prv_data *); + /* Pre/Post KR training enablement support */ void (*kr_training_pre)(struct xgbe_prv_data *); void (*kr_training_post)(struct xgbe_prv_data *); |