static void outport_write(KBDState *s, uint32_t val)

{

    DPRINTF("kbd: write outport=0x%02x\n", val);

    s->outport = val;

    if (s->a20_out) {

        qemu_set_irq(*s->a20_out, (val >> 1) & 1);

    }

    if (!(val & 1)) {

        qemu_system_reset_request();

    }

}

static void outport_write(KBDState *s, uint32_t val)

{

    DPRINTF("kbd: write outport=0x%02x\n", val);

    s->outport = val;

    if (s->a20_out) {

        qemu_set_irq(*s->a20_out, (val >> 1) & 1);

    }

    if (!(val & 1)) {

        qemu_system_reset_request();

    }

}

static void FUNC_0(KBDState *VAR_0, uint32_t VAR_1)

{

    DPRINTF("kbd: write outport=0x%02x\n", VAR_1);

    VAR_0->outport = VAR_1;

    if (VAR_0->a20_out) {

        qemu_set_irq(*VAR_0->a20_out, (VAR_1 >> 1) & 1);

    }

    if (!(VAR_1 & 1)) {

        qemu_system_reset_request();

    }

}

static void FUNC_0(KBDState *VAR_0, uint32_t VAR_1)
{ DPRINTF("kbd: write outport=0x%02x\n", VAR_1); VAR_0->outport = VAR_1; if (VAR_0->a20_out) { qemu_set_irq(*VAR_0->a20_out, (VAR_1 >> 1) & 1); } if (!(VAR_1 & 1)) { qemu_system_reset_request(); } }