kernels/linux-2.4.0/drivers/s390/char/con3215.c
/*
 * Fire up a 3215 device.
 */
Fire up a 3215 device.
Fire up a 3215 device .
static int raw3215_startup(raw3215_info *raw)
{
	unsigned long flags;
	if (raw->flags & RAW3215_ACTIVE)
		return 0;
	if (request_irq(raw->irq, raw3215_irq, SA_INTERRUPT,
			"3215 terminal driver", &raw->devstat) != 0)
		return -1;
	raw->flags |= RAW3215_ACTIVE;
	s390irq_spin_lock_irqsave(raw->irq, flags);
	raw3215_try_io(raw);
	s390irq_spin_unlock_irqrestore(raw->irq, flags);
	return 0;	
}
static int raw3215_startup ( raw3215_info * raw ) { unsigned long flags ; if ( raw -> flags & RAW3215_ACTIVE ) return 0 ; if ( request_irq ( raw -> irq , raw3215_irq , SA_INTERRUPT , " " , & raw -> devstat ) != 0 ) return -1 ; raw -> flags |= RAW3215_ACTIVE ; s390irq_spin_lock_irqsave ( raw -> irq , flags ) ; raw3215_try_io ( raw ) ; s390irq_spin_unlock_irqrestore ( raw -> irq , flags ) ; return 0 ; }
Fire up a 3215 device.
Fire up a 3215 device .