int rx_config(pc300dev_t * d) 
static int rx_config(pc300dev_t * d) 
int rx_config(pc300dev_t * d){	pc300ch_t *chan = (pc300ch_t *) d->chan;	pc300_t *card = (pc300_t *) chan->card;	void __iomem *scabase = card->hw.scabase;	int ch = chan->channel;	cpc_writeb(scabase + DSR_RX(ch), 0);	/* General RX settings */	cpc_writeb(scabase + M_REG(RRC, ch), 0);	cpc_writeb(scabase + M_REG(RNR, ch), 16);	/* Enable reception */	cpc_writeb(scabase + M_REG(CMD, ch), CMD_RX_CRC_INIT);	cpc_writeb(scabase + M_REG(CMD, ch), CMD_RX_ENA);	/* Initialize DMA stuff */	chan->rx_first_bd = 0;	chan->rx_last_bd = N_DMA_RX_BUF - 1;	rx_dma_buf_init(card, ch);	cpc_writeb(scabase + DCR_RX(ch), DCR_FCT_CLR);	cpc_writeb(scabase + DMR_RX(ch), (DMR_TMOD | DMR_NF));	cpc_writeb(scabase + DIR_RX(ch), (DIR_EOM | DIR_BOF));	/* Start DMA */	rx_dma_start(card, ch);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/7665a08928f241247afe8c76865cdbe4ef5489bf/pc300_drv.c/buggy/drivers/net/wan/pc300_drv.c