~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to hw/usb/dev-hid.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
    .bInterfaceNumber              = 0,
145
145
    .bNumEndpoints                 = 1,
146
146
    .bInterfaceClass               = USB_CLASS_HID,
147
 
    .bInterfaceProtocol            = 0x02,
 
147
    .bInterfaceProtocol            = 0x00,
148
148
    .ndesc                         = 1,
149
149
    .descs = (USBDescOther[]) {
150
150
        {
174
174
    .bInterfaceNumber              = 0,
175
175
    .bNumEndpoints                 = 1,
176
176
    .bInterfaceClass               = USB_CLASS_HID,
177
 
    .bInterfaceProtocol            = 0x02,
 
177
    .bInterfaceProtocol            = 0x00,
178
178
    .ndesc                         = 1,
179
179
    .descs = (USBDescOther[]) {
180
180
        {
487
487
 
488
488
static const uint8_t qemu_tablet_hid_report_descriptor[] = {
489
489
    0x05, 0x01,         /* Usage Page (Generic Desktop) */
490
 
    0x09, 0x01,         /* Usage (Pointer) */
 
490
    0x09, 0x02,         /* Usage (Mouse) */
491
491
    0xa1, 0x01,         /* Collection (Application) */
492
492
    0x09, 0x01,         /*   Usage (Pointer) */
493
493
    0xa1, 0x00,         /*   Collection (Physical) */
690
690
    }
691
691
}
692
692
 
693
 
static void usb_hid_handle_destroy(USBDevice *dev)
 
693
static void usb_hid_unrealize(USBDevice *dev, Error **errp)
694
694
{
695
695
    USBHIDState *us = USB_HID(dev);
696
696
 
785
785
    uc->handle_reset   = usb_hid_handle_reset;
786
786
    uc->handle_control = usb_hid_handle_control;
787
787
    uc->handle_data    = usb_hid_handle_data;
788
 
    uc->handle_destroy = usb_hid_handle_destroy;
 
788
    uc->unrealize      = usb_hid_unrealize;
789
789
    uc->handle_attach  = usb_desc_attach;
790
790
}
791
791