static int usb_hid_initfn(USBDevice *dev, int kind)

{

    USBHIDState *us = DO_UPCAST(USBHIDState, dev, dev);



    usb_desc_init(dev);

    hid_init(&us->hid, kind, usb_hid_changed);



    /* Force poll routine to be run and grab input the first time.  */

    us->changed = 1;

    return 0;

}

static int usb_hid_initfn(USBDevice *dev, int kind)

{

    USBHIDState *us = DO_UPCAST(USBHIDState, dev, dev);



    usb_desc_init(dev);

    hid_init(&us->hid, kind, usb_hid_changed);



    

    us->changed = 1;

    return 0;

}

static int FUNC_0(USBDevice *VAR_0, int VAR_1)

{

    USBHIDState *us = DO_UPCAST(USBHIDState, VAR_0, VAR_0);



    usb_desc_init(VAR_0);

    hid_init(&us->hid, VAR_1, usb_hid_changed);



    

    us->changed = 1;

    return 0;

}

static int FUNC_0(USBDevice *VAR_0, int VAR_1)
{ USBHIDState *us = DO_UPCAST(USBHIDState, VAR_0, VAR_0); usb_desc_init(VAR_0); hid_init(&us->hid, VAR_1, usb_hid_changed); us->changed = 1; return 0; }