Display and keyboard drivers configuration option for embedded systems

Kohtala Marko (Marko.Kohtala@ntc.nokia.com)
Sat, 4 Jan 1997 19:37:58 +0200


I wrote a patch to make the virtual terminal tty devices be a
configuration option. This is of use to those wanting to run Linux on
machines that have no video or keyboard hardware.

The patch against 2.1.20 is at http://www.hut.fi/~mkohtala/newtty.diff.20

Please, check this patch out. I wish to have it tried by
- maintainers of various architectures, I only use i386
- those porting Linux to MVME

If Linus does not pick the patch up from this message, I'll be mailing
it to him in couple of weeks.

The patch defines three new CONFIG_ macros
CONFIG_VT for inclusion of console, vt, vc_screen,
consolemap, selection, keyboard and defkeymap
CONFIG_VT_CONSOLE for directing printk to the VT device
CONFIG_VT_SERIAL for directing printk to the standard serial device

Both CONFIG_VT_CONSOLE and CONFIG_VT_SERIAL can be used together in
which case the output goes to both. To support this, there is a new
console device list with entries for this output. The list also has
entries for waiting a key press and for determining what device really
to open for /dev/console, but these are used only from the device at
the head of the list.

The rest of the change is to move some code from tty_io.c to other
files where it seems to fit better. This avoids some #ifdef CONFIG_VT
/ #endif.

-- 
---
Marko Kohtala - Marko.Kohtala@ntc.nokia.com, Marko.Kohtala@hut.fi