Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcarm/dev Implements WSKBDIO_GTYPE
details: https://anonhg.NetBSD.org/src/rev/152c6b9814c5
branches: trunk
changeset: 534357:152c6b9814c5
user: manu <manu%NetBSD.org@localhost>
date: Mon Jul 22 20:55:48 2002 +0000
description:
Implements WSKBDIO_GTYPE
diffstat:
sys/arch/hpcarm/dev/j720ssp.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 86ee1df91c0e -r 152c6b9814c5 sys/arch/hpcarm/dev/j720ssp.c
--- a/sys/arch/hpcarm/dev/j720ssp.c Mon Jul 22 20:55:09 2002 +0000
+++ b/sys/arch/hpcarm/dev/j720ssp.c Mon Jul 22 20:55:48 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: j720ssp.c,v 1.7 2002/07/19 19:15:49 ichiro Exp $ */
+/* $NetBSD: j720ssp.c,v 1.8 2002/07/22 20:55:48 manu Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -338,8 +338,19 @@
}
int
-j720kbd_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p)
+j720kbd_ioctl(v, cmd, data, flag, p)
+ void *v;
+ u_long cmd;
+ caddr_t data;
+ int flag;
+ struct proc *p;
{
+ switch (cmd) {
+ case WSKBDIO_GTYPE:
+ *(int *)data = WSKBD_TYPE_HPC_KBD;
+ return 0;
+ }
+
return (EPASSTHROUGH);
}
Home |
Main Index |
Thread Index |
Old Index