Subject: Re: new ioctl for touch panel calibration
To: Michael Graff <explorer@flame.org>
From: TAKEMURA Shin <takemura@netbsd.org>
List: tech-kern
Date: 12/24/2002 23:38:17
----- Original Message -----
From: "Michael Graff" <explorer@flame.org>
To: "TAKEMURA Shin" <takemura@netbsd.org>
Cc: <tech-kern@netbsd.org>
Sent: Tuesday, December 24, 2002 4:43 AM
Subject: Re: new ioctl for touch panel calibration


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Will this be generic enough so other types of devices, say the ones
> on tablet PCs, will also work with it?

I think so. The interface is generic enough, however, the implementations
depend each device.

Takemura

> - --Michael
>
> "TAKEMURA Shin" <takemura@netbsd.org> writes:
>
> > Hi all,
> >
> > I'd like to add new ioctl on wsmouse for toch panel calibration.
> > The calibration command tpctl(8) needs the ioctl to identify
> > touch panel device because parameters of calibration are
> > unique for each device instance. The return data of the ioctl
> > shall contain vendor name, model name and serial number of
> > the device like this, "NEC MC-R530 SN00000000".
> > (To tell the truth, real device can't tell it's serial number...)
> >
> > Index: dev/wscons/wsconsio.h
> > ===================================================================
> > RCS file: /cvsroot/src/sys/dev/wscons/wsconsio.h,v
> > retrieving revision 1.53
> > diff -r1.53 wsconsio.h
> > 209a210,219
> > > /* get device id for calibration */
> > > struct wsmouse_id {
> > >       u_int type;
> > >       u_int length;
> > >       u_char data[WSMOUSE_ID_MAXLEN];
> > > };
> > > #define       WSMOUSE_ID_TYPE_UIDSTR  0
> > > #define       WSMOUSE_ID_MAXLEN       256
> > > #define       WSMOUSEIO_GETID         _IOWR('W', 38, struct
wsmouse_id)
> >
> > I will do the change next week if no one objects.
> > Any comments?
> >
> > Takemura
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (NetBSD)
> Comment: See http://www.flame.org/~explorer/pgp for my keys
>
> iD8DBQE+B2dPl6Nz7kJWYWYRAi0kAJ4s61imo5TmYxIbJ4ESz0aRXZyRKQCeKKuH
> /MovkMjDsyS4wy/0KrCRECM=
> =2W7q
> -----END PGP SIGNATURE-----