summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/common.h
diff options
context:
space:
mode:
authorAlexandre TORGUE2016-04-01 11:37:25 +0200
committerDavid S. Miller2016-04-03 02:23:07 +0200
commitf10a6a3541b4f79f6a4d9f0d4f8f16b92f8f1cfc (patch)
tree83ea404fa35869734478ff5ed472636e07e49a5f /drivers/net/ethernet/stmicro/stmmac/common.h
parentnet: hns: add support of pause frame ctrl for HNS V2 (diff)
downloadkernel-qcow2-linux-f10a6a3541b4f79f6a4d9f0d4f8f16b92f8f1cfc.tar.gz
kernel-qcow2-linux-f10a6a3541b4f79f6a4d9f0d4f8f16b92f8f1cfc.tar.xz
kernel-qcow2-linux-f10a6a3541b4f79f6a4d9f0d4f8f16b92f8f1cfc.zip
stmmac: rework get_hw_feature function
On next GMAC IP generation (4.xx), the way to get hw feature is not the same than on previous 3.xx. As it is hardware dependent, the way to get hw capabilities should be defined in dma ops of each MAC IP. It will avoid also a huge computation of hw capabilities in stmmac_main. Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com> 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/common.h')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index f96d257308b0..797a913ef618 100644
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
@@ -412,7 +412,8 @@ struct stmmac_dma_ops {
int (*dma_interrupt) (void __iomem *ioaddr,
struct stmmac_extra_stats *x);
/* If supported then get the optional core features */
- unsigned int (*get_hw_feature) (void __iomem *ioaddr);
+ void (*get_hw_feature)(void __iomem *ioaddr,
+ struct dma_features *dma_cap);
/* Program the HW RX Watchdog */
void (*rx_watchdog) (void __iomem *ioaddr, u32 riwt);
};