mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use kbdd_* macros.
This commit is contained in:
parent
9242ce6620
commit
a0db222644
1 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue