Re: [PATCH] Q40 input api support.

From: Vojtech Pavlik (vojtech@suse.cz)
Date: Fri Feb 01 2002 - 10:55:38 EST


On Fri, Feb 01, 2002 at 01:15:43AM +0100, Richard Zidlicky wrote:
> On Thu, Jan 31, 2002 at 10:19:46AM -0800, James Simmons wrote:
> >
> > This patch ports q40 PS/2 controller support over to the input api. Please
> > try it out. It is against the latest dave jones tree.
>
> thanks, I will look at this over the weekend. Where do I get the DJ
> tree?
>
> > +static inline void q40kbd_write(unsigned char val)
> > +{
> > + /* FIXME! We need a way how to write to the keyboard! */
> > +}
>
> absolutely no way to write to the keyboard.

Really? Too bad. So no way to set LEDs, no way to detect the keyboard,
no way to set it to "Scancode Set 3"?

We'll need to modify the atkbd driver then ...

> > +static void q40kbd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
> > +{
> > + unsigned long flags;
> > +
> > + if (IRQ_KEYB_MASK & master_inb(INTERRUPT_REG))
> > + if (q40kbd_port.dev)
> > + q40kbd_port.dev->interrupt(&q40kbd_port, master_inb(KEYCODE_REG), 0);
> ^^^^^^^^^
> where is this defined?

include/linux/serio.h: struct serio_dev

> > +void __init q40kbd_init(void)
> > +{
> > + int maxread = 100;
> > +
> > + /* Get the keyboard controller registers (incomplete decode) */
> > + request_region(0x60, 16, "q40kbd");
> > +
> > + /* allocate the IRQ */
> > + request_irq(Q40_IRQ_KEYBOARD, keyboard_interrupt, 0, "q40kbd", NULL);
> ^^^^^^^^^^^^^^^^^^
> should that be q40kbd_interrupt ?

Yes, it should.

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



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:15 EST