Refactor USB hub code.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 28 Mar 2010 19:11:19 +0000 (15:11 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 28 Mar 2010 19:11:19 +0000 (15:11 -0400)
commitd28b0fe8db0b5af2f4ddeeb48c01fa0c1ed7a920
treec411258ae1a7f995d1a854e3b942aedc38962b44
parentba285410780c79f39c81dd6f81c521045ba1afa4
Refactor USB hub code.

All four implementations of hubs (and root hubs) were very similar.
Replace them with a single implementation that uses callbacks for the
three custom parts (detect, reset, disconnect) of each type of hub.
src/usb-ehci.c
src/usb-hub.c
src/usb-hub.h
src/usb-ohci.c
src/usb-uhci.c
src/usb.c
src/usb.h