/* switch off card */ spider_net_write_reg(card, SPIDER_NET_CKRCTRL, SPIDER_NET_CKRCTRL_STOP_VALUE);  
spider_net_stop(struct net_device *netdev){	struct spider_net_card *card = netdev_priv(netdev);	netif_poll_disable(netdev);	netif_carrier_off(netdev);	netif_stop_queue(netdev);	/* disable/mask all interrupts */	spider_net_write_reg(card, SPIDER_NET_GHIINT0MSK, 0);	spider_net_write_reg(card, SPIDER_NET_GHIINT1MSK, 0);	spider_net_write_reg(card, SPIDER_NET_GHIINT2MSK, 0);	spider_net_write_reg(card, SPIDER_NET_GDTDMACCNTR,			     SPIDER_NET_DMA_TX_FEND_VALUE);	/* turn off DMA, force end */	spider_net_disable_rxdmac(card);	/* release chains */	spider_net_release_tx_chain(card, 1);	/* switch off card */	spider_net_write_reg(card, SPIDER_NET_CKRCTRL,			     SPIDER_NET_CKRCTRL_STOP_VALUE);	spider_net_free_chain(card, &card->tx_chain);	spider_net_free_chain(card, &card->rx_chain);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/543cec517dbc07c7c801ccacd02141d99f09f756/spider_net.c/clean/drivers/net/spider_net.c