diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-08-17 23:12:01 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-08-17 23:12:01 +0200 |
commit | de29db4632a64cc7c20eb626a1b17e41e50adb26 (patch) | |
tree | b09a92c303180556c83db1d64d65c2a1ea5b04b4 /hw/usb/dev-unifying.c | |
parent | 505280bd9af458c712ec6d19afacdc192c6e02ab (diff) | |
download | qemu-de29db4632a64cc7c20eb626a1b17e41e50adb26.tar.gz |
WIP firmware reverse engineeringlogitech-unifying
Not touched since 7 April 2014.
Diffstat (limited to 'hw/usb/dev-unifying.c')
-rw-r--r-- | hw/usb/dev-unifying.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/hw/usb/dev-unifying.c b/hw/usb/dev-unifying.c index 9e3a487e68..2be1714902 100644 --- a/hw/usb/dev-unifying.c +++ b/hw/usb/dev-unifying.c @@ -645,9 +645,38 @@ static int usb_ltunify_initfn(USBDevice *dev) return 0; } +#if 0 +static int usb_ltunify_post_load(void *opaque, int version_id) +{ + USBLtunifyState *s = opaque; + + if (s->dev.remote_wakeup) { + hid_pointer_activate(&s->hid[IFACE_MSE]); + } + + // TODO: capture file restart? + + return 0; +} +#endif + static const VMStateDescription vmstate_usb_ltunify = { .name = "usb-ltunify", .unmigratable = 1, + /* TODO: find out what fields to migrate. Also, what about the dump + * functionality? */ +#if 0 + .version_id = 1, + .minimum_version_id = 1, + .post_load = usb_ltunify_post_load, + .fields = (VMStateField []) { + VMSTATE_USB_DEVICE(dev, USBLtunifyState), + VMSTATE_HID_KEYBOARD_DEVICE(hid[IFACE_KBD], USBLtunifyState), + VMSTATE_HID_POINTER_DEVICE(hid[IFACE_MSE], USBLtunifyState), + //VMSTATE_STRUCT(input_queue, USBLtunifyState, 1, + VMSTATE_END_OF_LIST() + } +#endif }; static Property usb_ltunify_properties[] = { |