But this is one of the features of streams, isn't it?
Protocols, line discipline etc are divorced from the underlying
(hardware) drivers.
As you point out the keyboard port is just another serial port with
different hardware. I should be able to use the same input line discipline
code with a PS/2 keyboard or one on a "real" serial line. The original
poster (sorry, lost the attribution) wanted to split the port handling from
the keyboard line discipline. It was this split which sounded very streams
like.
There is already a Linux streams project (although I hear roumers that it's
gone quiet) so this work may already be being done.
Paul.