PERFORCE change 132109 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Dec 30 07:54:26 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=132109
Change 132109 by hselasky at hselasky_laptop001 on 2007/12/30 15:53:31
Add "uchcom" prototypes and remove an unused structure.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/uchcom.c#16 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/uchcom.c#16 (text+ko) ====
@@ -167,14 +167,6 @@
#define UCHCOM_FLAG_WRITE_STALL 0x04
};
-struct uchcom_endpoints
-{
- int ep_bulkin;
- int ep_bulkout;
- int ep_intr;
- int ep_intr_size;
-};
-
struct uchcom_divider
{
uint8_t dv_prescaler;
@@ -206,6 +198,8 @@
};
#define uchcom_lookup(v, p) usb_lookup(uchcom_devs, v, p)
+/* protypes */
+
static int uchcom_ioctl(struct ucom_softc *ucom, uint32_t cmd, caddr_t data, int flag, struct thread *td);
static int uchcom_pre_param(struct ucom_softc *ucom, struct termios *t);
static void uchcom_cfg_get_status(struct ucom_softc *ucom, uint8_t *lsr, uint8_t *msr);
@@ -218,6 +212,16 @@
static void uchcom_stop_read(struct ucom_softc *ucom);
static void uchcom_stop_write(struct ucom_softc *ucom);
+static void uchcom_update_version(struct uchcom_softc *sc);
+static void uchcom_convert_status(struct uchcom_softc *sc, uint8_t cur);
+static void update_status(struct uchcom_softc *sc);
+static void uchcom_set_dtrrts(struct uchcom_softc *sc);
+static int uchcom_calc_divider_settings(struct uchcom_divider *dp, uint32_t rate);
+static void uchcom_set_dte_rate(struct uchcom_softc *sc, uint32_t rate);
+static void uchcom_set_line_control(struct uchcom_softc *sc, tcflag_t cflag);
+static void uchcom_clear_chip(struct uchcom_softc *sc);
+static void uchcom_reset_chip(struct uchcom_softc *sc);
+
static device_probe_t uchcom_probe;
static device_attach_t uchcom_attach;
static device_detach_t uchcom_detach;
More information about the p4-projects
mailing list