diff options
author | phk <phk@FreeBSD.org> | 2004-06-30 21:38:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-30 21:38:08 +0000 |
commit | 309dbc34d2aaea7b16077acfc94afcaa41b7d3e1 (patch) | |
tree | 31941ecd0b4b189272ad7df10dc361e6c6b3dcb5 /sys/dev | |
parent | e23137428c6ea4a26b2b25245093198ac7faed5c (diff) | |
download | FreeBSD-src-309dbc34d2aaea7b16077acfc94afcaa41b7d3e1.zip FreeBSD-src-309dbc34d2aaea7b16077acfc94afcaa41b7d3e1.tar.gz |
Define the tty methods as typedefs.
Change the return type for t_break to void.
Add t_ioctl (more about this later).
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/digi/digi.c | 5 | ||||
-rw-r--r-- | sys/dev/rc/rc.c | 5 | ||||
-rw-r--r-- | sys/dev/sio/sio.c | 5 | ||||
-rw-r--r-- | sys/dev/uart/uart_tty.c | 3 |
4 files changed, 7 insertions, 11 deletions
diff --git a/sys/dev/digi/digi.c b/sys/dev/digi/digi.c index a26a398..8b56691 100644 --- a/sys/dev/digi/digi.c +++ b/sys/dev/digi/digi.c @@ -79,7 +79,7 @@ static d_write_t digiwrite; static d_ioctl_t digiioctl; static void digistop(struct tty *tp, int rw); -static int digibreak(struct tty *tp, int brk); +static void digibreak(struct tty *tp, int brk); static int digimodem(struct tty *tp, int sigon, int sigoff); static void digi_poll(void *ptr); static void digi_freemoduledata(struct digi_softc *); @@ -1308,7 +1308,7 @@ digiioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *t return (0); } -static int +static void digibreak(struct tty *tp, int brk) { int mynor; @@ -1332,7 +1332,6 @@ digibreak(struct tty *tp, int brk) */ if (brk) fepcmd_w(port, SENDBREAK, 400, 10); - return (0); } static int diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 18bb09e..26311c9 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -124,7 +124,7 @@ struct rc_softc { }; /* Static prototypes */ -static int rc_break(struct tty *, int); +static void rc_break(struct tty *, int); static void rc_release_resources(device_t dev); static void rc_intr(void *); static void rc_hwreset(struct rc_softc *, unsigned int); @@ -1287,7 +1287,7 @@ rc_modem(struct tty *tp, int biton, int bitoff) return 0; } -static int +static void rc_break(struct tty *tp, int brk) { struct rc_chans *rc; @@ -1298,7 +1298,6 @@ rc_break(struct tty *tp, int brk) rc->rc_pendcmd = CD180_C_SBRK; else rc->rc_pendcmd = CD180_C_EBRK; - return (0); } #define ERR(s) do { \ diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 552af42..fe219b1 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -283,7 +283,7 @@ struct com_s { static int espattach(struct com_s *com, Port_t esp_port); #endif -static int combreak(struct tty *tp, int sig); +static void combreak(struct tty *tp, int sig); static timeout_t siobusycheck; static u_int siodivisor(u_long rclk, speed_t speed); static timeout_t siodtrwakeup; @@ -2211,7 +2211,7 @@ repeat: goto repeat; } -static int +static void combreak(tp, sig) struct tty *tp; int sig; @@ -2224,7 +2224,6 @@ combreak(tp, sig) sio_setreg(com, com_cfcr, com->cfcr_image |= CFCR_SBREAK); else sio_setreg(com, com_cfcr, com->cfcr_image &= ~CFCR_SBREAK); - return (0); } static int diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c index 678e6df..f63d4f0 100644 --- a/sys/dev/uart/uart_tty.c +++ b/sys/dev/uart/uart_tty.c @@ -251,14 +251,13 @@ uart_tty_modem(struct tty *tp, int biton, int bitoff) return (sc->sc_hwsig); } -static int +static void uart_tty_break(struct tty *tp, int state) { struct uart_softc *sc; sc = tp->t_dev->si_drv1; UART_IOCTL(sc, UART_IOCTL_BREAK, state); - return (0); } static void |