diff options
author | Alexandre TORGUE <alexandre.torgue@st.com> | 2016-04-01 11:37:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-02 20:23:07 -0400 |
commit | d0225e7de6229068df99ba8dacebc826d27e1cd5 (patch) | |
tree | b6b2a2ad27ed22cd6925833a4126fea746ee5665 /drivers/net/ethernet/stmicro/stmmac/common.h | |
parent | f10a6a3541b4f79f6a4d9f0d4f8f16b92f8f1cfc (diff) |
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.h | 2 |
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 797a913ef618..6cea61bc5de9 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; |