Some USB UHCI and OHCI fixes and cleanups.
authorKevin O'Connor <kevin@koconnor.net>
Wed, 10 Mar 2010 00:33:22 +0000 (19:33 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 10 Mar 2010 01:00:08 +0000 (20:00 -0500)
commit0770d676b392dc6c79bf4ab560b7171987b8d025
treefd7033d155c118345505ecab1039111e6c675961
parentbfe7ca72b816623355a5f4b809741c52120654a4
Some USB UHCI and OHCI fixes and cleanups.

Don't send a data packet on OHCI if no data to be sent.
Add some barrier() calls where needed.
Move toggle definition from generic pipe struct to uhci pipe struct.
Check for malloc failure on ohci and uhci "tds" request.
Be sure to always allocate an even number of intr tds on uhci - toggle
    setting depends on it.
src/usb-ohci.c
src/usb-uhci.c
src/usb.h