static void ps2_keyboard_event(DeviceState *dev, QemuConsole *src,

                               InputEvent *evt)

{

    PS2KbdState *s = (PS2KbdState *)dev;

    int scancodes[3], i, count;



    qemu_system_wakeup_request(QEMU_WAKEUP_REASON_OTHER);

    count = qemu_input_key_value_to_scancode(evt->key->key,

                                             evt->key->down,

                                             scancodes);

    for (i = 0; i < count; i++) {

        ps2_put_keycode(s, scancodes[i]);

    }

}

static void ps2_keyboard_event(DeviceState *dev, QemuConsole *src,

                               InputEvent *evt)

{

    PS2KbdState *s = (PS2KbdState *)dev;

    int scancodes[3], i, count;



    qemu_system_wakeup_request(QEMU_WAKEUP_REASON_OTHER);

    count = qemu_input_key_value_to_scancode(evt->key->key,

                                             evt->key->down,

                                             scancodes);

    for (i = 0; i < count; i++) {

        ps2_put_keycode(s, scancodes[i]);

    }

}

static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,

                               InputEvent *VAR_2)

{

    PS2KbdState *s = (PS2KbdState *)VAR_0;

    int VAR_3[3], VAR_4, VAR_5;



    qemu_system_wakeup_request(QEMU_WAKEUP_REASON_OTHER);

    VAR_5 = qemu_input_key_value_to_scancode(VAR_2->key->key,

                                             VAR_2->key->down,

                                             VAR_3);

    for (VAR_4 = 0; VAR_4 < VAR_5; VAR_4++) {

        ps2_put_keycode(s, VAR_3[VAR_4]);

    }

}

static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,
InputEvent *VAR_2)
{ PS2KbdState *s = (PS2KbdState *)VAR_0; int VAR_3[3], VAR_4, VAR_5; qemu_system_wakeup_request(QEMU_WAKEUP_REASON_OTHER); VAR_5 = qemu_input_key_value_to_scancode(VAR_2->key->key,
VAR_2->key->down,
VAR_3); for (VAR_4 = 0; VAR_4 < VAR_5; VAR_4++) { ps2_put_keycode(s, VAR_3[VAR_4]); } }