This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PS/2 Keyboard as I/O device


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]