raw3270_add_view(&condev->view, &con3270_fn, 0); 
raw3270_add_view(&condev->view, &con3270_fn, 1); 
con3270_init(void){	struct ccw_device *cdev;	struct raw3270 *rp;	void *cbuf;	int i;	/* Check if 3270 is to be the console */	if (!CONSOLE_IS_3270)		return -ENODEV;	/* Set the console mode for VM */	if (MACHINE_IS_VM) {		cpcmd("TERM CONMODE 3270", NULL, 0, NULL);		cpcmd("TERM AUTOCR OFF", NULL, 0, NULL);	}	cdev = ccw_device_probe_console();	if (!cdev)		return -ENODEV;	rp = raw3270_setup_console(cdev);	if (IS_ERR(rp))		return PTR_ERR(rp);	condev = (struct con3270 *) alloc_bootmem_low(sizeof(struct con3270));	memset(condev, 0, sizeof(struct con3270));	condev->view.dev = rp;	condev->read = raw3270_request_alloc_bootmem(0);	condev->read->callback = con3270_read_callback;	condev->read->callback_data = condev;	condev->write = 		raw3270_request_alloc_bootmem(CON3270_OUTPUT_BUFFER_SIZE);	condev->kreset = raw3270_request_alloc_bootmem(1);	INIT_LIST_HEAD(&condev->lines);	INIT_LIST_HEAD(&condev->update);	init_timer(&condev->timer);	tasklet_init(&condev->readlet, 		     (void (*)(unsigned long)) con3270_read_tasklet,		     (unsigned long) condev->read);	raw3270_add_view(&condev->view, &con3270_fn, 0);	INIT_LIST_HEAD(&condev->freemem);	for (i = 0; i < CON3270_STRING_PAGES; i++) {		cbuf = (void *) alloc_bootmem_low_pages(PAGE_SIZE);		add_string_memory(&condev->freemem, cbuf, PAGE_SIZE);	}	condev->cline = alloc_string(&condev->freemem, condev->view.cols);	condev->cline->len = 0;	con3270_create_status(condev);	condev->input = alloc_string(&condev->freemem, 80);	register_console(&con3270);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ed3cb6f039bb296457bfd2877cba6ad0287d8d54/con3270.c/clean/drivers/s390/char/con3270.c