Subject: Re: wsmux inject
To: Valeriy E. Ushakov <>
From: Iain Hibbert <>
List: tech-kern
Date: 03/15/2006 11:49:26
On Wed, 15 Mar 2006, Valeriy E. Ushakov wrote:

> On Tue, Mar 14, 2006 at 23:17:12 +0000, Iain Hibbert wrote:
> > Well, it seems that I could do that quite simply by creating a
> > WSKBDIO_INJECT ioctl in wskbd_displayioctl() though thats a bit of a
> > bodge..
> Yeah, it doesn't feel clean.

and in fact it gets dirtier since my keycodes come through wrong, I think
I would need to convert them first to match what the original keyboard
would have produced, so that wskbd_input can translate them properly, gah.

> > I'm thinking it would likely be better to make a pseudo-device that
> > would attach as a wsbkdN when necessary, not sure if that will work
> > as planned.
> It will.  See e.g. sys/dev/hpc/hpf1275a_tty.c (HP F1275A external
> (serial) keyboard for Jornada series).  Config glue is:
> pseudo-device   hpf1275a                # HP F1275A external keyboard
> wskbd* at hpf1275a? mux 1

Ah, a good clean example, thanks..  I think I can use some of that..