3 * choose the right serial device at boot time
6 * sercons.c is designed to allow the three different kinds
7 * of serial devices under the decstation world to co-exist
8 * in the same kernel. The idea here is to abstract
9 * the pieces of the drivers that are common to this file
10 * so that they do not clash at compile time and runtime.
12 * HK 16-SEP-1998 v0.002
13 * removed the PROM console as this is not a real serial
14 * device. Added support for PROM console in drivers/char/tty_io.c
15 * instead. Although it may work to enable more than one
16 * console device I strongly recommend to use only one.
19 #include <linux/init.h>
20 #include <asm/dec/machtype.h>
23 extern int zs_init(void);
27 extern int dz_init(void);
30 #ifdef CONFIG_SERIAL_CONSOLE
33 extern void zs_serial_console_init(void);
37 extern void dz_serial_console_init(void);
42 /* rs_init - starts up the serial interface -
43 handle normal case of starting up the serial interface */
47 int __init
rs_init(void)
50 #if defined(CONFIG_ZS) && defined(CONFIG_DZ)
72 #ifdef CONFIG_SERIAL_CONSOLE
74 /* serial_console_init handles the special case of starting
75 * up the console on the serial port
77 static int __init
decserial_console_init(void)
79 #if defined(CONFIG_ZS) && defined(CONFIG_DZ)
81 zs_serial_console_init();
83 dz_serial_console_init();
87 zs_serial_console_init();
91 dz_serial_console_init();
97 console_initcall(decserial_console_init
);