dev-hid.c (8c43a6f05d5ef3c9484bd2be9d4e818d58e62016) dev-hid.c (8550a02d1239415342959f6a32d178bc05c557cc)
1/*
2 * QEMU USB HID devices
3 *
4 * Copyright (c) 2005 Fabrice Bellard
5 * Copyright (c) 2007 OpenMoko, Inc. (andrew@openedhand.com)
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 409 unchanged lines hidden (view full) ---

418 0x81, 0x00, /* Input (Data, Array) */
419 0xc0, /* End Collection */
420};
421
422static void usb_hid_changed(HIDState *hs)
423{
424 USBHIDState *us = container_of(hs, USBHIDState, hid);
425
1/*
2 * QEMU USB HID devices
3 *
4 * Copyright (c) 2005 Fabrice Bellard
5 * Copyright (c) 2007 OpenMoko, Inc. (andrew@openedhand.com)
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 409 unchanged lines hidden (view full) ---

418 0x81, 0x00, /* Input (Data, Array) */
419 0xc0, /* End Collection */
420};
421
422static void usb_hid_changed(HIDState *hs)
423{
424 USBHIDState *us = container_of(hs, USBHIDState, hid);
425
426 usb_wakeup(us->intr);
426 usb_wakeup(us->intr, 0);
427}
428
429static void usb_hid_handle_reset(USBDevice *dev)
430{
431 USBHIDState *us = DO_UPCAST(USBHIDState, dev, dev);
432
433 hid_reset(&us->hid);
434}

--- 281 unchanged lines hidden ---
427}
428
429static void usb_hid_handle_reset(USBDevice *dev)
430{
431 USBHIDState *us = DO_UPCAST(USBHIDState, dev, dev);
432
433 hid_reset(&us->hid);
434}

--- 281 unchanged lines hidden ---