summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/usb
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-16 21:39:14 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-05-15 15:40:55 +0200
commit278bc93a59d77cd302e59357ed89ed566519bb71 (patch)
tree9cdb4bfe8612da9e07638bdf9678c0af97018546 /freebsd/sys/dev/usb
parentMakefile: Regenerate (diff)
downloadrtems-libbsd-278bc93a59d77cd302e59357ed89ed566519bb71.tar.bz2
usb: Import USB support from libusb
Diffstat (limited to 'freebsd/sys/dev/usb')
-rw-r--r--freebsd/sys/dev/usb/controller/ehci.c8
-rw-r--r--freebsd/sys/dev/usb/controller/ehci.h4
2 files changed, 12 insertions, 0 deletions
diff --git a/freebsd/sys/dev/usb/controller/ehci.c b/freebsd/sys/dev/usb/controller/ehci.c
index 528e4a02..730fd666 100644
--- a/freebsd/sys/dev/usb/controller/ehci.c
+++ b/freebsd/sys/dev/usb/controller/ehci.c
@@ -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 */
diff --git a/freebsd/sys/dev/usb/controller/ehci.h b/freebsd/sys/dev/usb/controller/ehci.h
index f718a8a7..76ac75f6 100644
--- a/freebsd/sys/dev/usb/controller/ehci.h
+++ b/freebsd/sys/dev/usb/controller/ehci.h
@@ -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_ */