Re: Serio keyboard issues 2.5.70

Russell King (rmk@arm.linux.org.uk)
Wed, 4 Jun 2003 23:47:32 +0100


On Wed, Jun 04, 2003 at 11:44:17PM +0100, John Appleby wrote:
>
> > > and I get nothing past "add_tail". I'd expect it to recognize my dev
> and
> > > attempt to connect to it.
> >
> > Do you drop out the bottom of the function? If you have no hardware
> ports
> > registered, I'd expect this to be the case.
>
> Yeah; I thought though what I was doing was registering the port.
>
> I'm clearly missing something really obvious here. Are you saying that I
> should have registered the port somewhere else?
>
> Sorry for the dumb questions but there's no serio documentation yet hit
> the tree, I presume as it's pretty new for non-USB devices.

You need to register:

- serio device drivers (the things which drive the hardware) using
serio_register_port()
- serio protocol drivers (the things which interpret the bytes,
like atkbd.c) using serio_register_device()

So, for a PS/2 keyboard connected to a some special hardware interface,
you'd use atkbd.c which registers itself with serio using
serio_register_device(). Your device driver for the "special hardware"
registers itself with serio_register_port().

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- 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/