summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/common.h
diff options
context:
space:
mode:
authorJoao Pinto2017-03-10 19:24:55 +0100
committerDavid S. Miller2017-03-13 07:41:03 +0100
commitd43042f4da3e1c2e4ccac3b1d9153cb0798533a4 (patch)
treeb17835d1c4ebd5d2a66ad8fe1cde16f7c0328eb5 /drivers/net/ethernet/stmicro/stmmac/common.h
parentnet: stmmac: mtl rx queue enabled as dcb or avb (diff)
downloadkernel-qcow2-linux-d43042f4da3e1c2e4ccac3b1d9153cb0798533a4.tar.gz
kernel-qcow2-linux-d43042f4da3e1c2e4ccac3b1d9153cb0798533a4.tar.xz
kernel-qcow2-linux-d43042f4da3e1c2e4ccac3b1d9153cb0798533a4.zip
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 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 */