Deleted Added
full compact
sio.c (129939) sio.c (130057)
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
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 * 1. Redistributions of source code must retain the above copyright

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

26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * from: @(#)com.c 7.5 (Berkeley) 5/16/91
30 * from: i386/isa sio.c,v 1.234
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
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 * 1. Redistributions of source code must retain the above copyright

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

26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * from: @(#)com.c 7.5 (Berkeley) 5/16/91
30 * from: i386/isa sio.c,v 1.234
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/dev/sio/sio.c 129939 2004-06-01 11:57:15Z phk $");
34__FBSDID("$FreeBSD: head/sys/dev/sio/sio.c 130057 2004-06-04 08:02:37Z phk $");
35
36#include "opt_comconsole.h"
37#include "opt_compat.h"
38#include "opt_ddb.h"
39#include "opt_sio.h"
40
41/*
42 * Serial driver, based on 386BSD-0.1 com driver.

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

2043 for (cc = 0; cc < NCCS; ++cc)
2044 if (lt->c_cc[cc] != 0)
2045 dt->c_cc[cc] = tp->t_cc[cc];
2046 if (lt->c_ispeed != 0)
2047 dt->c_ispeed = tp->t_ispeed;
2048 if (lt->c_ospeed != 0)
2049 dt->c_ospeed = tp->t_ospeed;
2050 }
35
36#include "opt_comconsole.h"
37#include "opt_compat.h"
38#include "opt_ddb.h"
39#include "opt_sio.h"
40
41/*
42 * Serial driver, based on 386BSD-0.1 com driver.

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

2043 for (cc = 0; cc < NCCS; ++cc)
2044 if (lt->c_cc[cc] != 0)
2045 dt->c_cc[cc] = tp->t_cc[cc];
2046 if (lt->c_ispeed != 0)
2047 dt->c_ispeed = tp->t_ispeed;
2048 if (lt->c_ospeed != 0)
2049 dt->c_ospeed = tp->t_ospeed;
2050 }
2051 error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, td);
2052 if (error != ENOIOCTL)
2053 return (error);
2054 s = spltty();
2055 error = ttioctl(tp, cmd, data, flag);
2051 error = ttyioctl(dev, cmd, data, flag, td);
2056 disc_optim(tp, &tp->t_termios, com);
2052 disc_optim(tp, &tp->t_termios, com);
2057 if (error != ENOIOCTL) {
2058 splx(s);
2053 if (error != ENOTTY)
2059 return (error);
2054 return (error);
2060 }
2055 s = spltty();
2061 switch (cmd) {
2062 case TIOCSBRK:
2063 sio_setreg(com, com_cfcr, com->cfcr_image |= CFCR_SBREAK);
2064 break;
2065 case TIOCCBRK:
2066 sio_setreg(com, com_cfcr, com->cfcr_image &= ~CFCR_SBREAK);
2067 break;
2068 case TIOCSDTR:

--- 1189 unchanged lines hidden ---
2056 switch (cmd) {
2057 case TIOCSBRK:
2058 sio_setreg(com, com_cfcr, com->cfcr_image |= CFCR_SBREAK);
2059 break;
2060 case TIOCCBRK:
2061 sio_setreg(com, com_cfcr, com->cfcr_image &= ~CFCR_SBREAK);
2062 break;
2063 case TIOCSDTR:

--- 1189 unchanged lines hidden ---