diff options
author | nyan <nyan@FreeBSD.org> | 2007-12-30 12:27:31 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2007-12-30 12:27:31 +0000 |
commit | fac9c01c237e49ddbc0359b9f037f18b883a0e10 (patch) | |
tree | b0ac7caeadd4040068e7c7e35b5ed651a035a9fc /sys/pc98/cbus | |
parent | 6b8eb7af60a02476a19c403512f964ce5b96ed2e (diff) | |
download | FreeBSD-src-fac9c01c237e49ddbc0359b9f037f18b883a0e10.zip FreeBSD-src-fac9c01c237e49ddbc0359b9f037f18b883a0e10.tar.gz |
Use kbdd_* macros.
Diffstat (limited to 'sys/pc98/cbus')
-rw-r--r-- | sys/pc98/cbus/pckbd.c | 12 |
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); |