diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2001-03-03 08:53:47 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2001-03-03 08:53:47 +0000 |
commit | 2111139b8984dd28c86db3bc52f4b67eaf063df0 (patch) | |
tree | dd0a262174ac25ebe429a447bb9bcc28100fe115 /sys | |
parent | 0a5355682b5763b498aa3a4ccd4856b01d04e48b (diff) |
complete wscons support for abd keyboard. -moj ok @deraadt
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc/mac/akbd.c | 4 | ||||
-rw-r--r-- | sys/dev/wscons/wsconsio.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/powerpc/mac/akbd.c b/sys/arch/powerpc/mac/akbd.c index fa04abc9aff..97c2f4ba388 100644 --- a/sys/arch/powerpc/mac/akbd.c +++ b/sys/arch/powerpc/mac/akbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: akbd.c,v 1.1 2001/01/28 19:49:45 drahn Exp $ */ +/* $OpenBSD: akbd.c,v 1.2 2001/03/03 08:53:46 maja Exp $ */ /* $NetBSD: akbd.c,v 1.10 2000/09/01 16:00:38 tsubai Exp $ */ /* @@ -478,7 +478,7 @@ akbd_ioctl(v, cmd, data, flag, p) switch (cmd) { case WSKBDIO_GTYPE: - *(int *)data = 0; /* XXX */ + *(int *)data = WSKBD_TYPE_ADB; return 0; case WSKBDIO_SETLEDS: return 0; diff --git a/sys/dev/wscons/wsconsio.h b/sys/dev/wscons/wsconsio.h index daff0afb1a2..784806831e8 100644 --- a/sys/dev/wscons/wsconsio.h +++ b/sys/dev/wscons/wsconsio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wsconsio.h,v 1.6 2001/02/28 19:12:40 drahn Exp $ */ +/* $OpenBSD: wsconsio.h,v 1.7 2001/03/03 08:53:46 maja Exp $ */ /* $NetBSD: wsconsio.h,v 1.31.2.1 2000/07/07 09:49:17 hannken Exp $ */ /* @@ -87,6 +87,7 @@ struct wscons_event { #define WSKBD_TYPE_HPC_KBD 7 /* HPC bultin keyboard */ #define WSKBD_TYPE_HPC_BTN 8 /* HPC/PsPC buttons */ #define WSKBD_TYPE_ARCHIMEDES 9 /* Archimedes keyboard */ +#define WSKBD_TYPE_ADB 10 /* Apple ADB keyboard */ /* Manipulate the keyboard bell. */ struct wskbd_bell_data { |