i think what you need is a new line discipline (ie a new serial
protocol)
for the *existing* serial.c driver.
look at tty_ldisc.h, for the basic structure. A good example of
creating
a new line discipline might be the joystick drivers, where various
diffrent
protocols are handled by the one structure.
Admittedly joysticks aren't usually usning standard serial ports, but
the
classic example for serial.c clients is ppp, which is probably too large
a
beast to serve as an introduction.
^..^
(oo)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/