This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: PS/2 Keyboard as I/O device
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Chuck McManis <ecos at mcmanis dot com>
- Cc: ECOS Discussion Group <ecos-discuss at sources dot redhat dot com>
- Date: 11 Aug 2003 10:58:52 +0100
- Subject: Re: [ECOS] PS/2 Keyboard as I/O device
- References: <5.2.1.1.2.20030810100930.01a19828@209.66.107.193>
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