int tx_config(pc300dev_t * d) 
static int tx_config(pc300dev_t * d) 
int tx_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_TX(ch), 0);	/* General TX settings */	cpc_writeb(scabase + M_REG(TRC0, ch), 0);	cpc_writeb(scabase + M_REG(TFS, ch), 32);	cpc_writeb(scabase + M_REG(TNR0, ch), 20);	cpc_writeb(scabase + M_REG(TNR1, ch), 48);	cpc_writeb(scabase + M_REG(TCR, ch), 8);	/* Enable transmission */	cpc_writeb(scabase + M_REG(CMD, ch), CMD_TX_CRC_INIT);	/* Initialize DMA stuff */	chan->tx_first_bd = 0;	chan->tx_next_bd = 0;	tx_dma_buf_init(card, ch);	cpc_writeb(scabase + DCR_TX(ch), DCR_FCT_CLR);	cpc_writeb(scabase + DMR_TX(ch), (DMR_TMOD | DMR_NF));	cpc_writeb(scabase + DIR_TX(ch), (DIR_EOM | DIR_BOF | DIR_UDRF));	cpc_writel(scabase + DTX_REG(CDAL, ch), TX_BD_ADDR(ch, chan->tx_first_bd));	cpc_writel(scabase + DTX_REG(EDAL, ch), TX_BD_ADDR(ch, chan->tx_next_bd));	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/7665a08928f241247afe8c76865cdbe4ef5489bf/pc300_drv.c/buggy/drivers/net/wan/pc300_drv.c