Deleted Added
full compact
uart_tty.c (131095) uart_tty.c (131373)
1/*
2 * Copyright (c) 2003 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2003 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_tty.c 131095 2004-06-25 10:54:05Z phk $");
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_tty.c 131373 2004-06-30 21:38:08Z phk $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <sys/cons.h>
35#include <sys/fcntl.h>
36#include <sys/interrupt.h>

--- 209 unchanged lines hidden (view full) ---

246 struct uart_softc *sc;
247
248 sc = tp->t_dev->si_drv1;
249 if (biton != 0 || bitoff != 0)
250 UART_SETSIG(sc, SER_DELTA(bitoff|biton) | biton);
251 return (sc->sc_hwsig);
252}
253
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <sys/cons.h>
35#include <sys/fcntl.h>
36#include <sys/interrupt.h>

--- 209 unchanged lines hidden (view full) ---

246 struct uart_softc *sc;
247
248 sc = tp->t_dev->si_drv1;
249 if (biton != 0 || bitoff != 0)
250 UART_SETSIG(sc, SER_DELTA(bitoff|biton) | biton);
251 return (sc->sc_hwsig);
252}
253
254static int
254static void
255uart_tty_break(struct tty *tp, int state)
256{
257 struct uart_softc *sc;
258
259 sc = tp->t_dev->si_drv1;
260 UART_IOCTL(sc, UART_IOCTL_BREAK, state);
255uart_tty_break(struct tty *tp, int state)
256{
257 struct uart_softc *sc;
258
259 sc = tp->t_dev->si_drv1;
260 UART_IOCTL(sc, UART_IOCTL_BREAK, state);
261 return (0);
262}
263
264static void
265uart_tty_stop(struct tty *tp, int rw)
266{
267 struct uart_softc *sc;
268
269 KASSERT(tp->t_dev != NULL, ("foo"));

--- 256 unchanged lines hidden ---
261}
262
263static void
264uart_tty_stop(struct tty *tp, int rw)
265{
266 struct uart_softc *sc;
267
268 KASSERT(tp->t_dev != NULL, ("foo"));

--- 256 unchanged lines hidden ---