/* Register a console early on... This is for output before even sn_sal_serial_cosnole_init is called. This function is called from setup.c. This allows us to do really early polled writes. When sn_sal_serial_console_init is called, this console is unregistered and a new one registered.  */
int __init sn_serial_console_early_setup(void)
/* Register a console early on... This is for output before even sn_sal_serial_cosnole_init is called. This function is called from setup.c. This allows us to do really early polled writes. When sn_sal_serial_console_init is called, this console is unregistered and a new one registered.  */
int __init sn_serial_console_early_setup(void)
{
	if (!ia64_platform_is("sn2"))
		return -1;
	sal_console_port.sc_ops = &poll_ops;
	spin_lock_init(&sal_console_port.sc_port.lock);
	early_sn_setup();
	register_console(&sal_console_early);
	return 0;
}