summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/common.h
diff options
context:
space:
mode:
authorJoao Pinto <Joao.Pinto@synopsys.com>2017-03-10 18:24:55 +0000
committerDavid S. Miller <davem@davemloft.net>2017-03-12 23:41:03 -0700
commitd43042f4da3e1c2e4ccac3b1d9153cb0798533a4 (patch)
treeb17835d1c4ebd5d2a66ad8fe1cde16f7c0328eb5 /drivers/net/ethernet/stmicro/stmmac/common.h
parent4f6046f5872c7db6a152b923cee21c37a04d56b8 (diff)
downloadop-kernel-dev-d43042f4da3e1c2e4ccac3b1d9153cb0798533a4.zip
op-kernel-dev-d43042f4da3e1c2e4ccac3b1d9153cb0798533a4.tar.gz
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.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 f61611c..7d23e3d 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 */
OpenPOWER on IntegriCloud