int			i; 
int			i, rc; 
simrs_init (void){	int			i;	struct serial_state	*state;	if (!ia64_platform_is("hpsim"))		return -ENODEV;	hp_simserial_driver = alloc_tty_driver(1);	if (!hp_simserial_driver)		return -ENOMEM;	show_serial_version();	/* Initialize the tty_driver structure */	hp_simserial_driver->owner = THIS_MODULE;	hp_simserial_driver->driver_name = "simserial";	hp_simserial_driver->name = "ttyS";	hp_simserial_driver->major = TTY_MAJOR;	hp_simserial_driver->minor_start = 64;	hp_simserial_driver->type = TTY_DRIVER_TYPE_SERIAL;	hp_simserial_driver->subtype = SERIAL_TYPE_NORMAL;	hp_simserial_driver->init_termios = tty_std_termios;	hp_simserial_driver->init_termios.c_cflag =		B9600 | CS8 | CREAD | HUPCL | CLOCAL;	hp_simserial_driver->flags = TTY_DRIVER_REAL_RAW;	tty_set_operations(hp_simserial_driver, &hp_ops);	/*	 * Let's have a little bit of fun !	 */	for (i = 0, state = rs_table; i < NR_PORTS; i++,state++) {		if (state->type == PORT_UNKNOWN) continue;		if (!state->irq) {			state->irq = assign_irq_vector(AUTO_ASSIGN);			ia64_ssc_connect_irq(KEYBOARD_INTR, state->irq);		}		printk(KERN_INFO "ttyS%d at 0x%04lx (irq = %d) is a %s\n",		       state->line,		       state->port, state->irq,		       uart_config[state->type].name);	}	if (tty_register_driver(hp_simserial_driver))		panic("Couldn't register simserial driver\n");	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/3b5cc09033f49d004006acf44e5b05036bd46a85/simserial.c/clean/arch/ia64/hp/sim/simserial.c