diff options
author | pbrook | 2006-05-26 01:58:51 +0200 |
---|---|---|
committer | pbrook | 2006-05-26 01:58:51 +0200 |
commit | 2e5d83bbef5a539f22970c2bccd19b125d82aab0 (patch) | |
tree | f733c22c2f4d19bd0a00f373b919e2e3ada86241 /hw/usb.c | |
parent | OHCI large packet fix. (diff) | |
download | qemu-2e5d83bbef5a539f22970c2bccd19b125d82aab0.tar.gz qemu-2e5d83bbef5a539f22970c2bccd19b125d82aab0.tar.xz qemu-2e5d83bbef5a539f22970c2bccd19b125d82aab0.zip |
Rearrange SCSI disk emulation code.
Add USB mass storage device emulation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1940 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/usb.c')
-rw-r--r-- | hw/usb.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -55,7 +55,10 @@ int usb_generic_handle_packet(USBDevice *s, int pid, s->remote_wakeup = 0; s->addr = 0; s->state = USB_STATE_DEFAULT; - s->handle_reset(s); + s->handle_reset(s, 0); + break; + case USB_MSG_DESTROY: + s->handle_reset(s, 1); break; case USB_TOKEN_SETUP: if (s->state < USB_STATE_DEFAULT || devaddr != s->addr) |