[TG3]: Set minimal hw interrupt mitigation.
[linux-2.6/verdex.git] / drivers / char / decserial.c
blobaa1440934e95acd1b0d0a64dd815aa3b5f14876b
1 /*
2 * sercons.c
3 * choose the right serial device at boot time
5 * triemer 6-SEP-1998
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/config.h>
20 #include <linux/init.h>
21 #include <asm/dec/machtype.h>
23 #ifdef CONFIG_ZS
24 extern int zs_init(void);
25 #endif
27 #ifdef CONFIG_DZ
28 extern int dz_init(void);
29 #endif
31 #ifdef CONFIG_SERIAL_CONSOLE
33 #ifdef CONFIG_ZS
34 extern void zs_serial_console_init(void);
35 #endif
37 #ifdef CONFIG_DZ
38 extern void dz_serial_console_init(void);
39 #endif
41 #endif
43 /* rs_init - starts up the serial interface -
44 handle normal case of starting up the serial interface */
46 #ifdef CONFIG_SERIAL
48 int __init rs_init(void)
51 #if defined(CONFIG_ZS) && defined(CONFIG_DZ)
52 if (IOASIC)
53 return zs_init();
54 else
55 return dz_init();
56 #else
58 #ifdef CONFIG_ZS
59 return zs_init();
60 #endif
62 #ifdef CONFIG_DZ
63 return dz_init();
64 #endif
66 #endif
69 __initcall(rs_init);
71 #endif
73 #ifdef CONFIG_SERIAL_CONSOLE
75 /* serial_console_init handles the special case of starting
76 * up the console on the serial port
78 static int __init decserial_console_init(void)
80 #if defined(CONFIG_ZS) && defined(CONFIG_DZ)
81 if (IOASIC)
82 zs_serial_console_init();
83 else
84 dz_serial_console_init();
85 #else
87 #ifdef CONFIG_ZS
88 zs_serial_console_init();
89 #endif
91 #ifdef CONFIG_DZ
92 dz_serial_console_init();
93 #endif
95 #endif
96 return 0;
98 console_initcall(decserial_console_init);
100 #endif