summaryrefslogtreecommitdiff
path: root/sys/dev/ic/pckbc.c
diff options
context:
space:
mode:
authorMasao Uebayashi <uebayasi@cvs.openbsd.org>2014-10-15 13:36:46 +0000
committerMasao Uebayashi <uebayasi@cvs.openbsd.org>2014-10-15 13:36:46 +0000
commit31fea743455ebd659522dc0eb30e5447d2ea5442 (patch)
tree43e450c87ce26158582c22b6745ea35da7ba76ab /sys/dev/ic/pckbc.c
parentbfce7bd99a824f73aeda1716b89493f43097d386 (diff)
pppx(4): Correct pppx_dev_lookup() and pppx_dev2pxd() local declarations
Those two functions take one dev_t argument, not int. Match declarations with reality. No functional changes.
Diffstat (limited to 'sys/dev/ic/pckbc.c')
-rw-r--r--sys/dev/ic/pckbc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/pckbc.c b/sys/dev/ic/pckbc.c
index 668f2cf2651..2bc230732f6 100644
--- a/sys/dev/ic/pckbc.c
+++ b/sys/dev/ic/pckbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbc.c,v 1.39 2014/09/14 14:17:24 jsg Exp $ */
+/* $OpenBSD: pckbc.c,v 1.40 2014/10/15 13:36:45 uebayasi Exp $ */
/* $NetBSD: pckbc.c,v 1.5 2000/06/09 04:58:35 soda Exp $ */
/*
@@ -37,6 +37,7 @@
#include <sys/lock.h>
#include <machine/bus.h>
+#include <machine/cpu.h>
#include <dev/ic/i8042reg.h>
#include <dev/ic/pckbcvar.h>
@@ -151,6 +152,7 @@ pckbc_poll_data1(bus_space_tag_t iot, bus_space_handle_t ioh_d,
register u_char c;
KBD_DELAY;
+ CPU_BUSY_CYCLE();
c = bus_space_read_1(iot, ioh_d, 0);
if (checkaux && (stat & 0x20)) { /* aux data */
if (slot != PCKBC_AUX_SLOT) {