Commit 59a11f88 authored by Linas Vepstas's avatar Linas Vepstas Committed by Jeff Garzik

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: default avatarLinas Vepstas <linas@austin.ibm.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent e1fd9070
...@@ -500,6 +500,20 @@ spider_net_enable_rxdmac(struct spider_net_card *card) ...@@ -500,6 +500,20 @@ spider_net_enable_rxdmac(struct spider_net_card *card)
SPIDER_NET_DMA_RX_VALUE); SPIDER_NET_DMA_RX_VALUE);
} }
/**
* spider_net_disable_rxdmac - disables the receive DMA controller
* @card: card structure
*
* spider_net_disable_rxdmac terminates processing on the DMA controller
* by turing off the DMA controller, with the force-end flag set.
*/
static inline void
spider_net_disable_rxdmac(struct spider_net_card *card)
{
spider_net_write_reg(card, SPIDER_NET_GDADMACCNTR,
SPIDER_NET_DMA_RX_FEND_VALUE);
}
/** /**
* spider_net_refill_rx_chain - refills descriptors/skbs in the rx chains * spider_net_refill_rx_chain - refills descriptors/skbs in the rx chains
* @card: card structure * @card: card structure
...@@ -655,20 +669,6 @@ write_hash: ...@@ -655,20 +669,6 @@ write_hash:
} }
} }
/**
* spider_net_disable_rxdmac - disables the receive DMA controller
* @card: card structure
*
* spider_net_disable_rxdmac terminates processing on the DMA controller by
* turing off DMA and issueing a force end
*/
static void
spider_net_disable_rxdmac(struct spider_net_card *card)
{
spider_net_write_reg(card, SPIDER_NET_GDADMACCNTR,
SPIDER_NET_DMA_RX_FEND_VALUE);
}
/** /**
* spider_net_prepare_tx_descr - fill tx descriptor with skb data * spider_net_prepare_tx_descr - fill tx descriptor with skb data
* @card: card structure * @card: card structure
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment