mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 09:45:42 +08:00
usb: Import USB support from libusb
This commit is contained in:
@@ -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 */
|
||||
|
@@ -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_ */
|
||||
|
Reference in New Issue
Block a user