summaryrefslogtreecommitdiffstats
path: root/hw/hid.h
Commit message (Collapse)AuthorAgeFilesLines
* hw: move headers to include/Paolo Bonzini2013-04-081-83/+0
| | | | | | | | | Many of these should be cleaned up with proper qdev-/QOM-ification. Right now there are many catch-all headers in include/hw/ARCH depending on cpu.h, and this makes it necessary to compile these files per-target. However, fixing this does not belong in these patches. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* hid: Change idle handling to use a timerHans de Goede2013-01-071-2/+3
| | | | | | | | This leads to cleaner code in usb-hid, and removes up to a 1000 calls / sec to qemu_get_clock_ns(vm_clock) if idle-time is set to its default value of 0. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* migration: move include files to include/migration/Paolo Bonzini2012-12-191-1/+1
| | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* vmstate: extract declarations out of hw/hw.hPaolo Bonzini2012-01-131-0/+23
| | | | | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* usb/hid: add hid_pointer_activate, use itGerd Hoffmann2011-08-101-0/+1
| | | | | | | | | | | | | | HID reorganziation broke the usb tablet in windows xp. The reason is that xp activates idle before it starts polling, which creates a chicken-and-egg issue: We don't call hid_pointer_poll because there are no pending events. We don't get any events because the activation code in hid_pointer_poll is never executed and thus all pointer events are routed to the PS/2 mouse by qemu. Fix this by creating a hid_pointer_activate function and call it from usb-hid when the guest sets the idle state. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* hid: move idle+protocol from usb-hid to hid too.Gerd Hoffmann2011-08-041-0/+4
| | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* usb-hid: split hid code to hw/hid.[ch]Gerd Hoffmann2011-08-041-0/+54
Almost pure code motion. Unstatic hid interface functions and add them to the header file. Some renames. Some code style cleanups. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
OpenPOWER on IntegriCloud