void falc_pattern_test(pc300_t * card, int ch, unsigned int activate) 
static void falc_pattern_test(pc300_t * card, int ch, unsigned int activate) 
void falc_pattern_test(pc300_t * card, int ch, unsigned int activate){	pc300ch_t *chan = (pc300ch_t *) & card->chan[ch];	pc300chconf_t *conf = (pc300chconf_t *) & chan->conf;	falc_t *pfalc = (falc_t *) & chan->falc;	void __iomem *falcbase = card->hw.falcbase;	if (activate) {		pfalc->prbs = 1;		pfalc->bec = 0;		if (conf->media == IF_IFACE_T1) {			/* Disable local loop activation/deactivation detect */			cpc_writeb(falcbase + F_REG(IMR3, ch),				   cpc_readb(falcbase + F_REG(IMR3, ch)) | IMR3_LLBSC);		} else {			/* Disable local loop activation/deactivation detect */			cpc_writeb(falcbase + F_REG(IMR1, ch),				   cpc_readb(falcbase + F_REG(IMR1, ch)) | IMR1_LLBSC);		}		/* Activates generation and monitoring of PRBS 		 * (Pseudo Random Bit Sequence) */		cpc_writeb(falcbase + F_REG(LCR1, ch),			   cpc_readb(falcbase + F_REG(LCR1, ch)) | LCR1_EPRM | LCR1_XPRBS);	} else {		pfalc->prbs = 0;		/* Deactivates generation and monitoring of PRBS 		 * (Pseudo Random Bit Sequence) */		cpc_writeb(falcbase + F_REG(LCR1, ch),			   cpc_readb(falcbase+F_REG(LCR1,ch)) & ~(LCR1_EPRM | LCR1_XPRBS));		if (conf->media == IF_IFACE_T1) {			/* Enable local loop activation/deactivation detect */			cpc_writeb(falcbase + F_REG(IMR3, ch),				   cpc_readb(falcbase + F_REG(IMR3, ch)) & ~IMR3_LLBSC);		} else {			/* Enable local loop activation/deactivation detect */			cpc_writeb(falcbase + F_REG(IMR1, ch),				   cpc_readb(falcbase + F_REG(IMR1, ch)) & ~IMR1_LLBSC);		}	}}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/7665a08928f241247afe8c76865cdbe4ef5489bf/pc300_drv.c/buggy/drivers/net/wan/pc300_drv.c