* number for it. 
* number for it. Note: there is no device with minor 0, * see special case for fs3270.c:fs3270_open(). 
raw3270_setup_device(struct ccw_device *cdev, struct raw3270 *rp, char *ascebc){	struct list_head *l;	struct raw3270 *tmp;	int minor;	memset(rp, 0, sizeof(struct raw3270));	/* Copy ebcdic -> ascii translation table. */	memcpy(ascebc, _ascebc, 256);	if (tubxcorrect) {		/* correct brackets and circumflex */		ascebc['['] = 0xad;		ascebc[']'] = 0xbd;		ascebc['^'] = 0xb0;	}	rp->ascebc = ascebc;	/* Set defaults. */	rp->rows = 24;	rp->cols = 80;	INIT_LIST_HEAD(&rp->req_queue);	INIT_LIST_HEAD(&rp->view_list);	/*	 * Add device to list and find the smallest unused minor	 * number for it.	 */	down(&raw3270_sem);	/* Keep the list sorted. */	minor = 0;	rp->minor = -1;	list_for_each(l, &raw3270_devices) {		tmp = list_entry(l, struct raw3270, list);		if (tmp->minor > minor) {			rp->minor = minor;			__list_add(&rp->list, l->prev, l);			break;		}		minor++;	}	if (rp->minor == -1 && minor < RAW3270_MAXDEVS) {		rp->minor = minor;		list_add_tail(&rp->list, &raw3270_devices);	}	up(&raw3270_sem);	/* No free minor number? Then give up. */	if (rp->minor == -1)		return -EUSERS;	rp->cdev = cdev;	cdev->dev.driver_data = rp;	cdev->handler = raw3270_irq;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ed3cb6f039bb296457bfd2877cba6ad0287d8d54/raw3270.c/clean/drivers/s390/char/raw3270.c