summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/pckbd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/pc98/cbus/pckbd.c b/sys/pc98/cbus/pckbd.c
index 0b3d1d7..24f7267 100644
--- a/sys/pc98/cbus/pckbd.c
+++ b/sys/pc98/cbus/pckbd.c
@@ -150,7 +150,7 @@ pckbdresume(device_t dev)
kbd = kbd_get_keyboard(kbd_find_keyboard(DRIVER_NAME,
device_get_unit(dev)));
if (kbd)
- (*kbdsw[kbd->kb_index]->clear_state)(kbd);
+ kbdd_clear_state(kbd);
return (0);
}
@@ -160,7 +160,7 @@ pckbd_isa_intr(void *arg)
{
keyboard_t *kbd = arg;
- (*kbdsw[kbd->kb_index]->intr)(kbd, NULL);
+ kbdd_intr(kbd, NULL);
}
static int
@@ -246,15 +246,15 @@ pckbd_timeout(void *arg)
*/
s = spltty();
kbd = (keyboard_t *)arg;
- if ((*kbdsw[kbd->kb_index]->lock)(kbd, TRUE)) {
+ if (kbdd_lock(kbd, TRUE)) {
/*
* We have seen the lock flag is not set. Let's reset
* the flag early, otherwise the LED update routine fails
* which may want the lock during the interrupt routine.
*/
- (*kbdsw[kbd->kb_index]->lock)(kbd, FALSE);
- if ((*kbdsw[kbd->kb_index]->check_char)(kbd))
- (*kbdsw[kbd->kb_index]->intr)(kbd, NULL);
+ kbdd_lock(kbd, FALSE);
+ if (kbdd_check_char(kbd))
+ kbdd_intr(kbd, NULL);
}
splx(s);
timeout(pckbd_timeout, arg, hz/10);
OpenPOWER on IntegriCloud