mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
9399575dd3
This a set of fixes mostly to make the driver actually work: 1. Actually select the line for setting parameters and receiver disable/enable. 2. Select the line for receive and transmit interrupt handling correctly. 3. Report the transmitter empty state correctly. 4. Set the I/O type of ports correctly. 5. Perform polled transmission correctly. 6. Don't fix the console line at ttyS3. 7. Magic SysRq support. 8. Various small bits here and there. Tested with a DECstation 2100 (thanks Flo for making this possible). [akpm@osdl.org: fix typo] Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
68 lines
1.5 KiB
C
68 lines
1.5 KiB
C
/*
|
|
* sercons.c
|
|
* choose the right serial device at boot time
|
|
*
|
|
* triemer 6-SEP-1998
|
|
* sercons.c is designed to allow the three different kinds
|
|
* of serial devices under the decstation world to co-exist
|
|
* in the same kernel. The idea here is to abstract
|
|
* the pieces of the drivers that are common to this file
|
|
* so that they do not clash at compile time and runtime.
|
|
*
|
|
* HK 16-SEP-1998 v0.002
|
|
* removed the PROM console as this is not a real serial
|
|
* device. Added support for PROM console in drivers/char/tty_io.c
|
|
* instead. Although it may work to enable more than one
|
|
* console device I strongly recommend to use only one.
|
|
*/
|
|
|
|
#include <linux/init.h>
|
|
#include <asm/dec/machtype.h>
|
|
|
|
#ifdef CONFIG_ZS
|
|
extern int zs_init(void);
|
|
#endif
|
|
|
|
#ifdef CONFIG_SERIAL_CONSOLE
|
|
|
|
#ifdef CONFIG_ZS
|
|
extern void zs_serial_console_init(void);
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/* rs_init - starts up the serial interface -
|
|
handle normal case of starting up the serial interface */
|
|
|
|
#ifdef CONFIG_SERIAL
|
|
|
|
int __init rs_init(void)
|
|
{
|
|
#ifdef CONFIG_ZS
|
|
if (IOASIC)
|
|
return zs_init();
|
|
#endif
|
|
return -ENXIO;
|
|
}
|
|
|
|
__initcall(rs_init);
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_SERIAL_CONSOLE
|
|
|
|
/* serial_console_init handles the special case of starting
|
|
* up the console on the serial port
|
|
*/
|
|
static int __init decserial_console_init(void)
|
|
{
|
|
#ifdef CONFIG_ZS
|
|
if (IOASIC)
|
|
zs_serial_console_init();
|
|
#endif
|
|
return 0;
|
|
}
|
|
console_initcall(decserial_console_init);
|
|
|
|
#endif
|