diff options
author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2010-01-06 18:07:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-07 20:06:09 -0500 |
commit | aec7ff278145280c2c78377aeb98feed02c8b636 (patch) | |
tree | fa03f8eac900b08e278b64ad76d825400907af9c /drivers/net/stmmac/mac100.c | |
parent | db98a0b001df79ffcdd4f231c3516411786a1113 (diff) |
stmmac: move the dma out from the main
This patch moves the dma related functions (interrupt, start, stop etc.)
out from the main driver code. This will help to support new DMA
engines.
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/stmmac/mac100.c')
-rw-r--r-- | drivers/net/stmmac/mac100.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/stmmac/mac100.c b/drivers/net/stmmac/mac100.c index 45d0457ddb6e..b675f7c67f6e 100644 --- a/drivers/net/stmmac/mac100.c +++ b/drivers/net/stmmac/mac100.c | |||
@@ -33,6 +33,7 @@ | |||
33 | 33 | ||
34 | #include "common.h" | 34 | #include "common.h" |
35 | #include "mac100.h" | 35 | #include "mac100.h" |
36 | #include "dwmac_dma.h" | ||
36 | 37 | ||
37 | #undef MAC100_DEBUG | 38 | #undef MAC100_DEBUG |
38 | /*#define MAC100_DEBUG*/ | 39 | /*#define MAC100_DEBUG*/ |
@@ -483,6 +484,14 @@ struct stmmac_dma_ops mac100_dma_ops = { | |||
483 | .dump_regs = mac100_dump_dma_regs, | 484 | .dump_regs = mac100_dump_dma_regs, |
484 | .dma_mode = mac100_dma_operation_mode, | 485 | .dma_mode = mac100_dma_operation_mode, |
485 | .dma_diagnostic_fr = mac100_dma_diagnostic_fr, | 486 | .dma_diagnostic_fr = mac100_dma_diagnostic_fr, |
487 | .enable_dma_transmission = dwmac_enable_dma_transmission, | ||
488 | .enable_dma_irq = dwmac_enable_dma_irq, | ||
489 | .disable_dma_irq = dwmac_disable_dma_irq, | ||
490 | .start_tx = dwmac_dma_start_tx, | ||
491 | .stop_tx = dwmac_dma_stop_tx, | ||
492 | .start_rx = dwmac_dma_start_rx, | ||
493 | .stop_rx = dwmac_dma_stop_rx, | ||
494 | .dma_interrupt = dwmac_dma_interrupt, | ||
486 | }; | 495 | }; |
487 | 496 | ||
488 | struct stmmac_desc_ops mac100_desc_ops = { | 497 | struct stmmac_desc_ops mac100_desc_ops = { |