Deleted Added
full compact
rc.c (126078) rc.c (126080)
1/*
2 * Copyright (C) 1995 by Pavel Antonov, Moscow, Russia.
3 * Copyright (C) 1995 by Andrey A. Chernov, Moscow, Russia.
4 * Copyright (C) 2002 by John Baldwin <jhb@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/*
2 * Copyright (C) 1995 by Pavel Antonov, Moscow, Russia.
3 * Copyright (C) 1995 by Andrey A. Chernov, Moscow, Russia.
4 * Copyright (C) 2002 by John Baldwin <jhb@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/dev/rc/rc.c 126078 2004-02-21 20:41:11Z phk $
28 * $FreeBSD: head/sys/dev/rc/rc.c 126080 2004-02-21 21:10:55Z phk $
29 */
30
31/*
32 * SDL Communications Riscom/8 (based on Cirrus Logic CL-CD180) driver
33 *
34 */
35
36/*#define RCDEBUG*/

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

142static void disc_optim(struct tty *tp, struct termios *t, struct rc_chans *);
143static void rc_wait0(struct rc_softc *sc, int chan, int line);
144
145static d_open_t rcopen;
146static d_close_t rcclose;
147static d_ioctl_t rcioctl;
148
149static struct cdevsw rc_cdevsw = {
29 */
30
31/*
32 * SDL Communications Riscom/8 (based on Cirrus Logic CL-CD180) driver
33 *
34 */
35
36/*#define RCDEBUG*/

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

142static void disc_optim(struct tty *tp, struct termios *t, struct rc_chans *);
143static void rc_wait0(struct rc_softc *sc, int chan, int line);
144
145static d_open_t rcopen;
146static d_close_t rcclose;
147static d_ioctl_t rcioctl;
148
149static struct cdevsw rc_cdevsw = {
150 .d_version = D_VERSION,
150 .d_open = rcopen,
151 .d_close = rcclose,
152 .d_ioctl = rcioctl,
153 .d_name = "rc",
151 .d_open = rcopen,
152 .d_close = rcclose,
153 .d_ioctl = rcioctl,
154 .d_name = "rc",
154 .d_flags = D_TTY,
155 .d_flags = D_TTY | D_NEEDGIANT,
155};
156
157static devclass_t rc_devclass;
158
159/* Flags */
160#define RC_DTR_OFF 0x0001 /* DTR wait, for close/open */
161#define RC_ACTOUT 0x0002 /* Dial-out port active */
162#define RC_RTSFLOW 0x0004 /* RTS flow ctl enabled */

--- 1427 unchanged lines hidden ---
156};
157
158static devclass_t rc_devclass;
159
160/* Flags */
161#define RC_DTR_OFF 0x0001 /* DTR wait, for close/open */
162#define RC_ACTOUT 0x0002 /* Dial-out port active */
163#define RC_RTSFLOW 0x0004 /* RTS flow ctl enabled */

--- 1427 unchanged lines hidden ---