diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2018-03-24 23:08:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-26 19:34:19 +0300 |
commit | 3e416992e2fae2c3177bed157534503691dc3510 (patch) | |
tree | 967aa5f86a8b8f9250d85ac5b8e25f4b3d8bc3eb /drivers/net/ethernet/renesas/sh_eth.h | |
parent | 4ceedeb1b68e376ccfec9f8d2e46bcd541702aba (diff) | |
download | linux-3e416992e2fae2c3177bed157534503691dc3510.tar.xz |
sh_eth: add sh_eth_cpu_data::edtrr_trns value
sh_eth_get_edtrr_trns() returns the value to be written to EDTRR in order
to start TX DMA -- this value is different between the GEther-like and
the other controllers. We can replace this function (and thus get rid of
the calls to sh_eth_is_{gether|rz_fast_ether}() by it) with a new field
'edtrr_trns' in the 'struct sh_eth_cpu_data'.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas/sh_eth.h')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.h b/drivers/net/ethernet/renesas/sh_eth.h index ff3520b0d86f..aa3c45153c9a 100644 --- a/drivers/net/ethernet/renesas/sh_eth.h +++ b/drivers/net/ethernet/renesas/sh_eth.h @@ -479,6 +479,7 @@ struct sh_eth_cpu_data { /* mandatory initialize value */ int register_type; + u32 edtrr_trns; u32 eesipr_value; /* optional initialize value */ |