Subject: Re: new ioctl for touch panel calibration
To: TAKEMURA Shin <takemura@netbsd.org>
From: Michael Graff <explorer@flame.org>
List: tech-kern
Date: 12/23/2002 11:43:11
-----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?
- --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-----