summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/common.h
diff options
context:
space:
mode:
authorAlexandre TORGUE <alexandre.torgue@st.com>2016-04-01 11:37:26 +0200
committerDavid S. Miller <davem@davemloft.net>2016-04-02 20:23:07 -0400
commitd0225e7de6229068df99ba8dacebc826d27e1cd5 (patch)
treeb6b2a2ad27ed22cd6925833a4126fea746ee5665 /drivers/net/ethernet/stmicro/stmmac/common.h
parentf10a6a3541b4f79f6a4d9f0d4f8f16b92f8f1cfc (diff)
downloadop-kernel-dev-d0225e7de6229068df99ba8dacebc826d27e1cd5.zip
op-kernel-dev-d0225e7de6229068df99ba8dacebc826d27e1cd5.tar.gz
stmmac: rework the routines to show the ring status
To avoid lot of check in stmmac_main for display ring management and support the GMAC4 chip, the display_ring function is moved into dedicated descriptor file. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index 797a913..6cea61b 100644
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
@@ -380,6 +380,8 @@ struct stmmac_desc_ops {
u64(*get_timestamp) (void *desc, u32 ats);
/* get rx timestamp status */
int (*get_rx_timestamp_status) (void *desc, u32 ats);
+ /* Display ring */
+ void (*display_ring)(void *head, unsigned int size, bool rx);
};
extern const struct stmmac_desc_ops enh_desc_ops;
OpenPOWER on IntegriCloud