From 2126ded42f8df798e6b63685ea59adc5f4068a99 Mon Sep 17 00:00:00 2001 From: manu Date: Mon, 22 Jul 2002 20:55:48 +0000 Subject: [PATCH] Implements WSKBDIO_GTYPE --- sys/arch/hpcarm/dev/j720ssp.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/sys/arch/hpcarm/dev/j720ssp.c b/sys/arch/hpcarm/dev/j720ssp.c index f8bcc4e4b797..0a41b48fa8c4 100644 --- a/sys/arch/hpcarm/dev/j720ssp.c +++ b/sys/arch/hpcarm/dev/j720ssp.c @@ -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 @@ j720kbd_set_leds(void *v, int on) } 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); }