Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2007 15:49:18 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 132106 for review
Message-ID:  <200712301549.lBUFnIdQ019184@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132106

Change 132106 by hselasky@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.
  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712301549.lBUFnIdQ019184>