diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2021-08-18 22:08:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-19 14:05:16 +0300 |
commit | 0b81d67311676c9119ed3b027d1518e974dbca8e (patch) | |
tree | be3691fa2592b7dbe2704971cca0a11c63d4283b /drivers/net/ethernet/renesas/ravb.h | |
parent | 8bc4caa0abafd83e25df2a3b1b03480aab071ee1 (diff) | |
download | linux-0b81d67311676c9119ed3b027d1518e974dbca8e.tar.xz |
ravb: Add tx_counters to struct ravb_hw_info
The register for retrieving TX counters is present only on R-Car Gen3
and RZ/G2L; it is not present on R-Car Gen2.
Add the tx_counters hw feature bit to struct ravb_hw_info, to enable this
feature specifically for R-Car Gen3 now and later extend it to RZ/G2L.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas/ravb.h')
-rw-r--r-- | drivers/net/ethernet/renesas/ravb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/ravb.h b/drivers/net/ethernet/renesas/ravb.h index 65a13ad458e6..37ad0f8aaf3c 100644 --- a/drivers/net/ethernet/renesas/ravb.h +++ b/drivers/net/ethernet/renesas/ravb.h @@ -1000,6 +1000,7 @@ struct ravb_hw_info { /* hardware features */ unsigned internal_delay:1; /* AVB-DMAC has internal delays */ + unsigned tx_counters:1; /* E-MAC has TX counters */ }; struct ravb_private { |