Ensure that the keyboard is enabled before polling it.
This allows pressing a key to reboot the machine.
This commit is contained in:
parent
6f94a37806
commit
36e75d7a01
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user