diff options
author | Joao Pinto <Joao.Pinto@synopsys.com> | 2017-03-10 18:24:55 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-12 23:41:03 -0700 |
commit | d43042f4da3e1c2e4ccac3b1d9153cb0798533a4 (patch) | |
tree | b17835d1c4ebd5d2a66ad8fe1cde16f7c0328eb5 /drivers/net/ethernet/stmicro/stmmac/common.h | |
parent | 4f6046f5872c7db6a152b923cee21c37a04d56b8 (diff) | |
download | linux-d43042f4da3e1c2e4ccac3b1d9153cb0798533a4.tar.bz2 |
net: stmmac: mapping mtl rx to dma channel
This patch adds the functionality of RX queue to dma channel mapping
based on configuration.
Signed-off-by: Joao Pinto <jpinto@synopsys.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 f61611c8e8b0..7d23e3dc7797 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +++ b/drivers/net/ethernet/stmicro/stmmac/common.h @@ -465,6 +465,8 @@ struct stmmac_ops { /* Set MTL TX queues weight */ void (*set_mtl_tx_queue_weight)(struct mac_device_info *hw, u32 weight, u32 queue); + /* RX MTL queue to RX dma mapping */ + void (*map_mtl_to_dma)(struct mac_device_info *hw, u32 queue, u32 chan); /* Dump MAC registers */ void (*dump_regs)(struct mac_device_info *hw, u32 *reg_space); /* Handle extra events on specific interrupts hw dependent */ |