static int input_initialise(struct XenDevice *xendev)

{

    struct XenInput *in = container_of(xendev, struct XenInput, c.xendev);

    int rc;



    if (!in->c.con) {

        xen_pv_printf(xendev, 1, "ds not set (yet)\n");

        return -1;

    }



    rc = common_bind(&in->c);

    if (rc != 0)

	return rc;



    qemu_add_kbd_event_handler(xenfb_key_event, in);

    return 0;

}

static int input_initialise(struct XenDevice *xendev)

{

    struct XenInput *in = container_of(xendev, struct XenInput, c.xendev);

    int rc;



    if (!in->c.con) {

        xen_pv_printf(xendev, 1, "ds not set (yet)\n");

        return -1;

    }



    rc = common_bind(&in->c);

    if (rc != 0)

	return rc;



    qemu_add_kbd_event_handler(xenfb_key_event, in);

    return 0;

}

static int FUNC_0(struct XenDevice *VAR_0)

{

    struct XenInput *VAR_1 = container_of(VAR_0, struct XenInput, c.VAR_0);

    int VAR_2;



    if (!VAR_1->c.con) {

        xen_pv_printf(VAR_0, 1, "ds not set (yet)\n");

        return -1;

    }



    VAR_2 = common_bind(&VAR_1->c);

    if (VAR_2 != 0)

	return VAR_2;



    qemu_add_kbd_event_handler(xenfb_key_event, VAR_1);

    return 0;

}

static int FUNC_0(struct XenDevice *VAR_0)
{ struct XenInput *VAR_1 = container_of(VAR_0, struct XenInput, c.VAR_0); int VAR_2; if (!VAR_1->c.con) { xen_pv_printf(VAR_0, 1, "ds not set (yet)\n"); return -1; } VAR_2 = common_bind(&VAR_1->c); if (VAR_2 != 0)
return VAR_2; qemu_add_kbd_event_handler(xenfb_key_event, VAR_1); return 0; }