Subject: new ioctl for touch panel calibration
To: None <tech-kern@netbsd.org>
From: TAKEMURA Shin <takemura@netbsd.org>
List: tech-kern
Date: 12/23/2002 21:49:12
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