[ECOS] PS/2 Keyboard as I/O device
Nick Garnett
nickg@ecoscentric.com
Mon Aug 11 12:04:00 GMT 2003
Chuck McManis <ecos@mcmanis.com> writes:
> Hello,
>
> Here are my thoughts on implementing a PS/2 device driver (keyboard
> and mice). I have some PS/2 support at the HAL layer that provides a
> simple read/write byte protocol (think a serial port only dumber :-)
> and I'm building a keyboard meta device and mouse meta device over
> that layer. The thought being that if ps2 peripherals existed on
> platforms other than PCs one could still use the keyboard and mouse
> layers. Thoughts? Should I not bother and just leave this stuff in my
> application?
The best approach would be to make them look like serial devices:
"/dev/mouse" and "/dev/kbd" or something. You should, in theory, even
be able to implement them as standard serial device drivers.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list