diff --git a/sys/dev/pckbport/pckbd.c b/sys/dev/pckbport/pckbd.c index e8eba4cf5c60..a194927101ac 100644 --- a/sys/dev/pckbport/pckbd.c +++ b/sys/dev/pckbport/pckbd.c @@ -1,4 +1,4 @@ -/* $NetBSD: pckbd.c,v 1.19 2008/01/10 07:58:39 dyoung Exp $ */ +/* $NetBSD: pckbd.c,v 1.20 2008/02/21 01:42:20 joerg Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -75,7 +75,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pckbd.c,v 1.19 2008/01/10 07:58:39 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pckbd.c,v 1.20 2008/02/21 01:42:20 joerg Exp $"); #include #include @@ -707,6 +707,14 @@ pckbd_cnpollc(void *v, int on) { struct pckbd_internal *t = v; + if (on) { + u_char cmd[1]; + + cmd[0] = KBC_ENABLE; + (void)pckbport_poll_cmd(t->t_kbctag, t->t_kbcslot, cmd, + 1, 0, 0, 0); + } + pckbport_set_poll(t->t_kbctag, t->t_kbcslot, on); }