Re: i8042 problem

From: Vojtech Pavlik
Date: Tue Aug 12 2003 - 15:52:14 EST


On Tue, Jul 29, 2003 at 08:29:01PM +0200, Maciej W. Rozycki wrote:

> Nice joke, but I'll answer seriously. No support was provided. Hooking
> a PC/XT keyboard to the 8042, if supported, requires a different setup of
> the command byte and is possibly done by the system firmware. You can
> read the command byte to see which configuration is used.
>
> Wrt polling vs IRQ-driven probing and setup: using IRQ is a natural
> choice as you have to do keyboard detection in the IRQ handler anyway to
> properly support hot plugging of a PC/AT or a PS/2 keyboard.

The only problem there is that it results in a damn complex state
machine. Look at the PS/2 mouse probing and imagine how the state
machine would look.

--
Vojtech Pavlik
SuSE Labs, SuSE CR
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/