Miguel de Icaza writes:
> > For the time being, I recommend that you go with the usual linux
> > driver for PC keyboard/mouse controller, which the Indy hardware
> > emulates.
> I may probably go with a SunOS-like mode of this, since it may be the
> easier to hack on the X server I am using right now (X11R6.1, and I
> plan to move to X11R6.3 once I have the thing demoable).
> Later I could sit down and write the emulation mode for a couple of
> the STREAMS ioctls.
The streams ioctl's don't do much in themselves, except in the sense
that they turn on other behavior by pushing streams modules. The latter
have more complex behavior. You could hack I_PUSH of a given name to
enable specific behavior, and then implement that behavior. The pushed
streams module is responsible for controlling the device (keyboard, mouse,
tablet, and so on), whereas the driver is mostly responsible for
managing the link controller or serial port to which the device is attached.