linux-mips-fnet
[Top] [All Lists]

Re: [greeen@iii.org.tw: Keypad driver!!]

To: greeen@iii.org.tw
Subject: Re: [greeen@iii.org.tw: Keypad driver!!]
From: "Gleb O. Raiko" <raiko@niisi.msk.ru>
Date: Mon, 12 Mar 2001 17:46:22 +0300
Cc: linux-mips@fnet.fr
Organization: NIISI RAN
References: <20010312132612.A6580@bacchus.dhis.org>
> From: "Greeen-III" <greeen@iii.org.tw>
> Date: Mon, 12 Mar 2001 09:17:24 +0100 (MET)
> To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
>         <linux-mips-request@fnet.fr>
> 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.
> Right?
> 
> But!! How could we know the keypad is pressed?
> The driver didn't need to call request_irq()??
>                                                                               
>           Green
> 
> ----- 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).

Regards,
Gleb.

<Prev in Thread] Current Thread [Next in Thread>