> From: "Greeen-III" <email@example.com>
> Date: Mon, 12 Mar 2001 09:17:24 +0100 (MET)
> To: "LinuxEmbeddedMailList" <firstname.lastname@example.org>,
> Subject: Keypad driver!!
> Hi all experts,
> I am trying to implement a keypad driver on Linux/MIPS.
> Could Any one explain the keypad work?
> I traced the /drivers/char/keyboard.c.
> It seemed to create a timer interrupt.
> The timer toggle the handle to check the status of the keyboard.
> But!! How could we know the keypad is pressed?
> The driver didn't need to call request_irq()??
> ----- End forwarded message -----
I read keboard.c again, didn't see any timers at all.
Read pc_keyb.c, for example. Interrupts from keyboard are handled there.
Generally, a low level keyboard driver are responsible for it (and
pc_keyb.c is not worse example).