/* We attempt to switch to interrupt mode here by calling request_irq. If that works out, we enable receive interrupts.  */
static void __init sn_sal_switch_to_interrupts(struct sn_cons_port *port)
/* We attempt to switch to interrupt mode here by calling request_irq. If that works out, we enable receive interrupts.  */
static void __init sn_sal_switch_to_interrupts(struct sn_cons_port *port)
{
	unsigned long flags;
	if (port) {
		DPRINTF("sn_console: switching to interrupt driven console\n");
		if (request_irq(SGI_UART_VECTOR, sn_sal_interrupt,
				IRQF_DISABLED | IRQF_SHARED,
				"SAL console driver", port) >= 0) {
			spin_lock_irqsave(&port->sc_port.lock, flags);
			port->sc_port.irq = SGI_UART_VECTOR;
			port->sc_ops = &intr_ops;
			ia64_sn_console_intr_enable(SAL_CONSOLE_INTR_RECV);
			spin_unlock_irqrestore(&port->sc_port.lock, flags);
		}
		else {
			printk(KERN_INFO
			    "sn_console: console proceeding in polled mode\n");
		}
	}
}