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:52 +0000
committerDavid S. Miller <davem@davemloft.net>2017-03-12 23:41:03 -0700
commitd0a9c9f9c6d0b1f0773e0aba5ab519b8ddc87a7a (patch)
tree76d6052caa3a52cda15c452f4e68db09310fed62 /drivers/net/ethernet/stmicro/stmmac/common.h
parentd976a525c371276cebd2517349d1d3568a0e48b5 (diff)
downloadop-kernel-dev-d0a9c9f9c6d0b1f0773e0aba5ab519b8ddc87a7a.zip
op-kernel-dev-d0a9c9f9c6d0b1f0773e0aba5ab519b8ddc87a7a.tar.gz
net: stmmac: configure mtl rx and tx algorithms
This patch adds the RX and TX scheduling algorithms programming. It introduces the multiple queues configuration function (stmmac_mtl_configuration) in stmmac_main. 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index 3ca3674..31d3324 100644
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
@@ -458,6 +458,10 @@ struct stmmac_ops {
int (*rx_ipc)(struct mac_device_info *hw);
/* Enable RX Queues */
void (*rx_queue_enable)(struct mac_device_info *hw, u32 queue);
+ /* Program RX Algorithms */
+ void (*prog_mtl_rx_algorithms)(struct mac_device_info *hw, u32 rx_alg);
+ /* Program TX Algorithms */
+ void (*prog_mtl_tx_algorithms)(struct mac_device_info *hw, u32 tx_alg);
/* 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