diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2002-06-07 20:56:39 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2002-06-07 20:56:39 +0000 |
commit | 8649aabba4e802e5c3c3ac6550f45026adfb258d (patch) | |
tree | 4ab2638e647fcc89da921635344ee7897724b3b6 /sys/arch/macppc | |
parent | d9b63853ed9ead8eec9d2bcf7bb784dba9e0d75a (diff) |
Add wsconsctl recognition support for adb keyboard.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r-- | sys/arch/macppc/dev/ams.c | 9 |
1 files changed, 8 insertions, 1 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; } |