if (port->started) 
if (p->started) 
start_port(void){	unsigned long rec_ctrl = 0;	unsigned long tr_ctrl = 0;	if (!port)		return;	if (port->started)		return;	port->started = 1;	if (port->index == 0)	{		genconfig_shadow &= ~IO_MASK(R_GEN_CONFIG, dma6);		genconfig_shadow |= IO_STATE(R_GEN_CONFIG, dma6, unused);	}	else if (port->index == 1)	{		genconfig_shadow &= ~IO_MASK(R_GEN_CONFIG, dma8);		genconfig_shadow |= IO_STATE(R_GEN_CONFIG, dma8, usb);	}	else if (port->index == 2)	{		genconfig_shadow &= ~IO_MASK(R_GEN_CONFIG, dma2);		genconfig_shadow |= IO_STATE(R_GEN_CONFIG, dma2, par0);		genconfig_shadow &= ~IO_MASK(R_GEN_CONFIG, dma3);		genconfig_shadow |= IO_STATE(R_GEN_CONFIG, dma3, par0);		genconfig_shadow |= IO_STATE(R_GEN_CONFIG, ser2, select);	}	else	{		genconfig_shadow &= ~IO_MASK(R_GEN_CONFIG, dma4);		genconfig_shadow |= IO_STATE(R_GEN_CONFIG, dma4, par1);		genconfig_shadow &= ~IO_MASK(R_GEN_CONFIG, dma5);		genconfig_shadow |= IO_STATE(R_GEN_CONFIG, dma5, par1);		genconfig_shadow |= IO_STATE(R_GEN_CONFIG, ser3, select);	}	*R_GEN_CONFIG = genconfig_shadow;	*port->xoff =		IO_STATE(R_SERIAL0_XOFF, tx_stop, enable) |		IO_STATE(R_SERIAL0_XOFF, auto_xoff, disable) |		IO_FIELD(R_SERIAL0_XOFF, xoff_char, 0);	switch (port->baudrate)	{	case 0:	case 115200:		*port->baud =		  IO_STATE(R_SERIAL0_BAUD, tr_baud, c115k2Hz) |		  IO_STATE(R_SERIAL0_BAUD, rec_baud, c115k2Hz);		break;	case 1200:		*port->baud =		  IO_STATE(R_SERIAL0_BAUD, tr_baud, c1200Hz) |		  IO_STATE(R_SERIAL0_BAUD, rec_baud, c1200Hz);		break;	case 2400:		*port->baud =		  IO_STATE(R_SERIAL0_BAUD, tr_baud, c2400Hz) |		  IO_STATE(R_SERIAL0_BAUD, rec_baud, c2400Hz);		break;	case 4800:		*port->baud =		  IO_STATE(R_SERIAL0_BAUD, tr_baud, c4800Hz) |		  IO_STATE(R_SERIAL0_BAUD, rec_baud, c4800Hz);		break;	case 9600:		*port->baud =		  IO_STATE(R_SERIAL0_BAUD, tr_baud, c9600Hz) |		  IO_STATE(R_SERIAL0_BAUD, rec_baud, c9600Hz);		  break;	case 19200:		*port->baud =		  IO_STATE(R_SERIAL0_BAUD, tr_baud, c19k2Hz) |		  IO_STATE(R_SERIAL0_BAUD, rec_baud, c19k2Hz);		 break;	case 38400:		*port->baud =		  IO_STATE(R_SERIAL0_BAUD, tr_baud, c38k4Hz) |		  IO_STATE(R_SERIAL0_BAUD, rec_baud, c38k4Hz);		break;	case 57600:		*port->baud =		  IO_STATE(R_SERIAL0_BAUD, tr_baud, c57k6Hz) |		  IO_STATE(R_SERIAL0_BAUD, rec_baud, c57k6Hz);		break;	default:		*port->baud =		  IO_STATE(R_SERIAL0_BAUD, tr_baud, c115k2Hz) |		  IO_STATE(R_SERIAL0_BAUD, rec_baud, c115k2Hz);		  break;        }	if (port->parity == 'E') {		rec_ctrl =		  IO_STATE(R_SERIAL0_REC_CTRL, rec_par, even) |		  IO_STATE(R_SERIAL0_REC_CTRL, rec_par_en, enable);		tr_ctrl =		  IO_STATE(R_SERIAL0_TR_CTRL, tr_par, even) |		  IO_STATE(R_SERIAL0_TR_CTRL, tr_par_en, enable);	} else if (port->parity == 'O') {		rec_ctrl =		  IO_STATE(R_SERIAL0_REC_CTRL, rec_par, odd) |		  IO_STATE(R_SERIAL0_REC_CTRL, rec_par_en, enable);		tr_ctrl =		  IO_STATE(R_SERIAL0_TR_CTRL, tr_par, odd) |		  IO_STATE(R_SERIAL0_TR_CTRL, tr_par_en, enable);	} else {		rec_ctrl =		  IO_STATE(R_SERIAL0_REC_CTRL, rec_par, even) |		  IO_STATE(R_SERIAL0_REC_CTRL, rec_par_en, disable);		tr_ctrl =		  IO_STATE(R_SERIAL0_TR_CTRL, tr_par, even) |		  IO_STATE(R_SERIAL0_TR_CTRL, tr_par_en, disable);	}	if (port->bits == 7)	{		rec_ctrl |= IO_STATE(R_SERIAL0_REC_CTRL, rec_bitnr, rec_7bit);		tr_ctrl |= IO_STATE(R_SERIAL0_TR_CTRL, tr_bitnr, tr_7bit);	}	else	{		rec_ctrl |= IO_STATE(R_SERIAL0_REC_CTRL, rec_bitnr, rec_8bit);		tr_ctrl |= IO_STATE(R_SERIAL0_TR_CTRL, tr_bitnr, tr_8bit);	}	*port->rec_ctrl =		IO_STATE(R_SERIAL0_REC_CTRL, dma_err, stop) |		IO_STATE(R_SERIAL0_REC_CTRL, rec_enable, enable) |		IO_STATE(R_SERIAL0_REC_CTRL, rts_, active) |		IO_STATE(R_SERIAL0_REC_CTRL, sampling, middle) |		IO_STATE(R_SERIAL0_REC_CTRL, rec_stick_par, normal) |		rec_ctrl;	*port->tr_ctrl =		IO_FIELD(R_SERIAL0_TR_CTRL, txd, 0) |		IO_STATE(R_SERIAL0_TR_CTRL, tr_enable, enable) |		IO_STATE(R_SERIAL0_TR_CTRL, auto_cts, disabled) |		IO_STATE(R_SERIAL0_TR_CTRL, stop_bits, one_bit) |		IO_STATE(R_SERIAL0_TR_CTRL, tr_stick_par, normal) |		tr_ctrl;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/05b4c28cba8dc48505322988340307073c353b1e/debugport.c/clean/arch/cris/arch-v10/kernel/debugport.c