From 8649aabba4e802e5c3c3ac6550f45026adfb258d Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Fri, 7 Jun 2002 20:56:39 +0000 Subject: Add wsconsctl recognition support for adb keyboard. --- sys/arch/macppc/dev/ams.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/arch/macppc/dev') 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; } -- cgit v1.2.3