diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2017-01-20 12:14:03 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-22 16:57:14 -0500 |
commit | 4eccbfc36186926b570310bfbd44f4216cd05c63 (patch) | |
tree | 4b0e3be4231c5289606fc604e86dcc4c3c52cc56 /drivers/net/ethernet/amd/xgbe/xgbe.h | |
parent | bridge: netlink: call br_changelink() during br_dev_newlink() (diff) | |
download | linux-dev-4eccbfc36186926b570310bfbd44f4216cd05c63.tar.xz linux-dev-4eccbfc36186926b570310bfbd44f4216cd05c63.zip |
amd-xgbe: Add a hardware quirk for register definitions
A newer version of the hardware is using the same PCI ids for the network
device but has altered register definitions for determining the window
settings for the indirect PCS access. Add support to check for this
hardware and if found use the new register values.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe.h b/drivers/net/ethernet/amd/xgbe/xgbe.h index f52a9bd05bac..00108815b55e 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe.h +++ b/drivers/net/ethernet/amd/xgbe/xgbe.h @@ -955,6 +955,8 @@ struct xgbe_prv_data { /* XPCS indirect addressing lock */ spinlock_t xpcs_lock; + unsigned int xpcs_window_def_reg; + unsigned int xpcs_window_sel_reg; unsigned int xpcs_window; unsigned int xpcs_window_size; unsigned int xpcs_window_mask; |