PERFORCE change 132106 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Dec 30 07:49:19 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=132106
Change 132106 by hselasky at hselasky_laptop001 on 2007/12/30 15:48:43
Add more "ucom" callbacks to uchcom, taken from "uplcom".
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/uchcom.c#14 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/uchcom.c#14 (text+ko) ====
@@ -834,6 +834,52 @@
return;
}
+static void
+uchcom_start_read(struct ucom_softc *ucom)
+{
+ struct uchcom_softc *sc = ucom->sc_parent;
+
+ /* start interrupt endpoint */
+ usbd_transfer_start(sc->sc_xfer[4]);
+
+ /* start read endpoint */
+ usbd_transfer_start(sc->sc_xfer[1]);
+ return;
+}
+
+static void
+uchcom_stop_read(struct ucom_softc *ucom)
+{
+ struct uchcom_softc *sc = ucom->sc_parent;
+
+ /* stop interrupt endpoint */
+ usbd_transfer_stop(sc->sc_xfer[4]);
+
+ /* stop read endpoint */
+ usbd_transfer_stop(sc->sc_xfer[3]);
+ usbd_transfer_stop(sc->sc_xfer[1]);
+ return;
+}
+
+static void
+uchcom_start_write(struct ucom_softc *ucom)
+{
+ struct uchcom_softc *sc = ucom->sc_parent;
+
+ usbd_transfer_start(sc->sc_xfer[0]);
+ return;
+}
+
+static void
+uchcom_stop_write(struct ucom_softc *ucom)
+{
+ struct uchcom_softc *sc = ucom->sc_parent;
+
+ usbd_transfer_stop(sc->sc_xfer[2]);
+ usbd_transfer_stop(sc->sc_xfer[0]);
+ return;
+}
+
/* ----------------------------------------------------------------------
* callback when the modem status is changed.
*/
More information about the p4-projects
mailing list