summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/common.h
diff options
context:
space:
mode:
authorJoao Pinto2017-03-15 12:04:53 +0100
committerDavid S. Miller2017-03-15 22:44:32 +0100
commit47f2a9ce527addf8a2c384efc47f0c812dc1a162 (patch)
tree9402de332aadd00718ebee72e4fdccdf4eaec067 /drivers/net/ethernet/stmicro/stmmac/common.h
parentnet: stmmac: prepare rx/tx set tail function for multiple queues (diff)
downloadkernel-qcow2-linux-47f2a9ce527addf8a2c384efc47f0c812dc1a162.tar.gz
kernel-qcow2-linux-47f2a9ce527addf8a2c384efc47f0c812dc1a162.tar.xz
kernel-qcow2-linux-47f2a9ce527addf8a2c384efc47f0c812dc1a162.zip
net: stmmac: dma channel init prepared for multiple queues
This patch prepares the DMA initialization process for multiple queues. 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h
index bef1fc6a6756..badc4414d67b 100644
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
@@ -416,6 +416,14 @@ struct stmmac_dma_ops {
int (*reset)(void __iomem *ioaddr);
void (*init)(void __iomem *ioaddr, struct stmmac_dma_cfg *dma_cfg,
u32 dma_tx, u32 dma_rx, int atds);
+ void (*init_chan)(void __iomem *ioaddr,
+ struct stmmac_dma_cfg *dma_cfg, u32 chan);
+ void (*init_rx_chan)(void __iomem *ioaddr,
+ struct stmmac_dma_cfg *dma_cfg,
+ u32 dma_rx_phy, u32 chan);
+ void (*init_tx_chan)(void __iomem *ioaddr,
+ struct stmmac_dma_cfg *dma_cfg,
+ u32 dma_tx_phy, u32 chan);
/* Configure the AXI Bus Mode Register */
void (*axi)(void __iomem *ioaddr, struct stmmac_axi *axi);
/* Dump DMA registers */