usb: generic packet handler cleanup and documentation (Max Krasnyansky)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 21 Aug 2008 19:29:38 +0000 (19:29 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 21 Aug 2008 19:29:38 +0000 (19:29 +0000)
commit89b9b79f340f5799c29ab8178231377026c301e4
tree4c1fad7a3ff95a8646b54415120600061585326d
parent4b096fc9ec486590ca71dc78eaa58ecbd622a938
usb: generic packet handler cleanup and documentation (Max Krasnyansky)

A bit better documentation of the USB device API, namely
return codes.
Rewrite of usb_generic_handle_packet() to make it more
reable and easier to follow.

Signed-off-by: Max Krasnyansky <maxk@kernel.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5049 c046a42c-6fe2-441c-8c8c-71466251a162
hw/usb.c
hw/usb.h