void cpc_closech(pc300dev_t * d) 
static void cpc_closech(pc300dev_t * d) 
void cpc_closech(pc300dev_t * d){	pc300ch_t *chan = (pc300ch_t *) d->chan;	pc300_t *card = (pc300_t *) chan->card;	falc_t *pfalc = (falc_t *) & chan->falc;	int ch = chan->channel;	cpc_writeb(card->hw.scabase + M_REG(CMD, ch), CMD_CH_RST);	rx_dma_stop(card, ch);	tx_dma_stop(card, ch);	if (card->hw.type == PC300_TE) {		memset(pfalc, 0, sizeof(falc_t));		cpc_writeb(card->hw.falcbase + card->hw.cpld_reg2,			   cpc_readb(card->hw.falcbase + card->hw.cpld_reg2) &			   ~((CPLD_REG2_FALC_TX_CLK | CPLD_REG2_FALC_RX_CLK |			      CPLD_REG2_FALC_LED2) << (2 * ch)));		/* Reset the FALC chip */		cpc_writeb(card->hw.falcbase + card->hw.cpld_reg1,			   cpc_readb(card->hw.falcbase + card->hw.cpld_reg1) |			   (CPLD_REG1_FALC_RESET << (2 * ch)));		udelay(10000);		cpc_writeb(card->hw.falcbase + card->hw.cpld_reg1,			   cpc_readb(card->hw.falcbase + card->hw.cpld_reg1) &			   ~(CPLD_REG1_FALC_RESET << (2 * ch)));	}}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/7665a08928f241247afe8c76865cdbe4ef5489bf/pc300_drv.c/buggy/drivers/net/wan/pc300_drv.c