usb: Import USB support from libusb

This commit is contained in:
Sebastian Huber
2015-03-16 21:39:14 +01:00
parent a0828f98d2
commit 278bc93a59
11 changed files with 1274 additions and 841 deletions

View File

@@ -591,7 +591,11 @@ ehci_detach(ehci_softc_t *sc)
usb_callout_drain(&sc->sc_tmo_poll);
}
#ifndef __rtems__
static void
#else /* __rtems__ */
void
#endif /* __rtems__ */
ehci_suspend(ehci_softc_t *sc)
{
DPRINTF("stopping the HC\n");
@@ -600,7 +604,11 @@ ehci_suspend(ehci_softc_t *sc)
ehci_hcreset(sc);
}
#ifndef __rtems__
static void
#else /* __rtems__ */
void
#endif /* __rtems__ */
ehci_resume(ehci_softc_t *sc)
{
/* reset HC */

View File

@@ -472,5 +472,9 @@ usb_error_t ehci_reset(ehci_softc_t *sc);
usb_error_t ehci_init(ehci_softc_t *sc);
void ehci_detach(struct ehci_softc *sc);
void ehci_interrupt(ehci_softc_t *sc);
#ifdef __rtems__
void ehci_suspend(ehci_softc_t *sc);
void ehci_resume(ehci_softc_t *sc);
#endif /* __rtems__ */
#endif /* _EHCI_H_ */