diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/dev/ams.c | 9 | ||||
-rw-r--r-- | sys/dev/wscons/wsconsio.h | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/ams.c b/sys/arch/macppc/dev/ams.c index eef607cdea9..5289c693e8f 100644 --- a/sys/arch/macppc/dev/ams.c +++ b/sys/arch/macppc/dev/ams.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ams.c,v 1.3 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: ams.c,v 1.4 2002/06/07 20:56:38 drahn Exp $ */ /* $NetBSD: ams.c,v 1.11 2000/12/19 03:13:40 tsubai Exp $ */ /* @@ -544,6 +544,13 @@ ams_ioctl(v, cmd, data, flag, p) int flag; struct proc *p; { + switch (cmd) { + case WSMOUSEIO_GTYPE: + *(u_int *)data = WSMOUSE_TYPE_ADB; + return (0); + } + + return -1; } diff --git a/sys/dev/wscons/wsconsio.h b/sys/dev/wscons/wsconsio.h index e27c0135893..a8625b374f2 100644 --- a/sys/dev/wscons/wsconsio.h +++ b/sys/dev/wscons/wsconsio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wsconsio.h,v 1.18 2002/05/29 20:43:44 maja Exp $ */ +/* $OpenBSD: wsconsio.h,v 1.19 2002/06/07 20:56:38 drahn Exp $ */ /* $NetBSD: wsconsio.h,v 1.31.2.1 2000/07/07 09:49:17 hannken Exp $ */ /* @@ -187,6 +187,7 @@ struct wskbd_map_data { #define WSMOUSE_TYPE_TPANEL 6 /* Generic Touch Panel */ #define WSMOUSE_TYPE_NEXT 7 /* NeXT mouse */ #define WSMOUSE_TYPE_ARCHIMEDES 8 /* Archimedes mouse */ +#define WSMOUSE_TYPE_ADB 9 /* ADB */ /* Set resolution. Not applicable to all mouse types. */ #define WSMOUSEIO_SRES _IOW('W', 33, u_int) |