summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac.h
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2011-09-01 21:51:41 +0000
committerDavid S. Miller <davem@davemloft.net>2011-09-15 15:40:01 -0400
commite7434821411b5fc24ab23e55cb11ea793248cb6b (patch)
treed6ea9d683e56916c5d9a7f59cafc4866deb07655 /drivers/net/ethernet/stmicro/stmmac/stmmac.h
parentf0b9d7865a95fdcb18319a678c616156be74cdfb (diff)
downloadlwn-e7434821411b5fc24ab23e55cb11ea793248cb6b.tar.gz
lwn-e7434821411b5fc24ab23e55cb11ea793248cb6b.zip
stmmac: add HW DMA feature register (v3)
New GMAC chips have an extra register to indicate the presence of the optional features/functions of the DMA core. This patch adds this support and all the HW cap are exported via debugfs. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@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 ef037965493d..c3a2da71d1e6 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h
@@ -78,6 +78,7 @@ struct stmmac_priv {
#endif
struct plat_stmmacenet_data *plat;
struct stmmac_counters mmc;
+ struct dma_features dma_cap;
};
extern int stmmac_mdio_unregister(struct net_device *ndev);