summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac.h
diff options
context:
space:
mode:
authorJose Abreu2018-04-23 10:05:15 +0200
committerDavid S. Miller2018-04-23 18:03:50 +0200
commit5f0456b43140af9413397cc11d03d18b9f2fc2fc (patch)
tree2b6f84765c55bbe7b9ef2bf55ac050ad8f888550 /drivers/net/ethernet/stmicro/stmmac/stmmac.h
parentr8169: don't use netif_info et al before net_device has been registered (diff)
downloadkernel-qcow2-linux-5f0456b43140af9413397cc11d03d18b9f2fc2fc.tar.gz
kernel-qcow2-linux-5f0456b43140af9413397cc11d03d18b9f2fc2fc.tar.xz
kernel-qcow2-linux-5f0456b43140af9413397cc11d03d18b9f2fc2fc.zip
net: stmmac: Implement logic to automatically select HW Interface
Move all the core version detection to a common place ("hwif.c") and implement a table which can be used to lookup the correct callbacks for each IP version. This simplifies the initialization flow of each IP version and eases future implementation of new IP versions. Signed-off-by: Jose Abreu <joabreu@synopsys.com> Cc: David S. Miller <davem@davemloft.net> Cc: Joao Pinto <jpinto@synopsys.com> Cc: Vitor Soares <soares@synopsys.com> Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com> Cc: Alexandre Torgue <alexandre.torgue@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac.h')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
index da50451f8999..2443f20e07bf 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
@@ -130,6 +130,7 @@ struct stmmac_priv {
int eee_active;
int tx_lpi_timer;
unsigned int mode;
+ unsigned int chain_mode;
int extend_desc;
struct ptp_clock *ptp_clock;
struct ptp_clock_info ptp_clock_ops;