static int pckbdresume(device_t dev) { keyboard_t *kbd; kbd = kbd_get_keyboard(kbd_find_keyboard(DRIVER_NAME, device_get_unit(dev))); if (kbd) kbdd_clear_state(kbd); return (0); }
static int atkbdresume(device_t dev) { atkbd_softc_t *sc; keyboard_t *kbd; int args[2]; sc = device_get_softc(dev); kbd = kbd_get_keyboard(kbd_find_keyboard(ATKBD_DRIVER_NAME, device_get_unit(dev))); if (kbd) { kbd->kb_flags &= ~KB_INITIALIZED; args[0] = device_get_unit(device_get_parent(dev)); args[1] = rman_get_start(sc->intr); kbdd_init(kbd, device_get_unit(dev), &kbd, args, device_get_flags(dev)); kbdd_clear_state(kbd); } return 0; }