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)
commit19ee2d50fb0c88c40d00df8e9637916170727dab
tree4c1fad7a3ff95a8646b54415120600061585326d
parent14adf0cf38158c9b0902d3c21f1def1524e14c3d
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