diff options
author | Linas Vepstas <linas@austin.ibm.com> | 2007-06-11 15:05:41 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-08 22:16:41 -0400 |
commit | 59a11f8809ada4b89ac079fb7f549eaca0554f94 (patch) | |
tree | 8937cf7262432da6f8fcd3b852053f7e2995e4cd /drivers | |
parent | e1fd9070729765910b144ffcf74ca199c766509b (diff) |
spidernet: move a block of code around
Put the enable and disable routines next to one-another,
as this makes verifying thier symmetry that much easier.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/spider_net.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c index 946b2e244f65..8fa9ff72d1a6 100644 --- a/drivers/net/spider_net.c +++ b/drivers/net/spider_net.c | |||
@@ -501,6 +501,20 @@ spider_net_enable_rxdmac(struct spider_net_card *card) | |||
501 | } | 501 | } |
502 | 502 | ||
503 | /** | 503 | /** |
504 | * spider_net_disable_rxdmac - disables the receive DMA controller | ||
505 | * @card: card structure | ||
506 | * | ||
507 | * spider_net_disable_rxdmac terminates processing on the DMA controller | ||
508 | * by turing off the DMA controller, with the force-end flag set. | ||
509 | */ | ||
510 | static inline void | ||
511 | spider_net_disable_rxdmac(struct spider_net_card *card) | ||
512 | { | ||
513 | spider_net_write_reg(card, SPIDER_NET_GDADMACCNTR, | ||
514 | SPIDER_NET_DMA_RX_FEND_VALUE); | ||
515 | } | ||
516 | |||
517 | /** | ||
504 | * spider_net_refill_rx_chain - refills descriptors/skbs in the rx chains | 518 | * spider_net_refill_rx_chain - refills descriptors/skbs in the rx chains |
505 | * @card: card structure | 519 | * @card: card structure |
506 | * | 520 | * |
@@ -656,20 +670,6 @@ write_hash: | |||
656 | } | 670 | } |
657 | 671 | ||
658 | /** | 672 | /** |
659 | * spider_net_disable_rxdmac - disables the receive DMA controller | ||
660 | * @card: card structure | ||
661 | * | ||
662 | * spider_net_disable_rxdmac terminates processing on the DMA controller by | ||
663 | * turing off DMA and issueing a force end | ||
664 | */ | ||
665 | static void | ||
666 | spider_net_disable_rxdmac(struct spider_net_card *card) | ||
667 | { | ||
668 | spider_net_write_reg(card, SPIDER_NET_GDADMACCNTR, | ||
669 | SPIDER_NET_DMA_RX_FEND_VALUE); | ||
670 | } | ||
671 | |||
672 | /** | ||
673 | * spider_net_prepare_tx_descr - fill tx descriptor with skb data | 673 | * spider_net_prepare_tx_descr - fill tx descriptor with skb data |
674 | * @card: card structure | 674 | * @card: card structure |
675 | * @descr: descriptor structure to fill out | 675 | * @descr: descriptor structure to fill out |