rc.c (111748) | rc.c (111815) |
---|---|
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 111748 2003-03-02 16:54:40Z des $ | 28 * $FreeBSD: head/sys/dev/rc/rc.c 111815 2003-03-03 12:15:54Z phk $ |
29 */ 30 31/* 32 * SDL Communications Riscom/8 (based on Cirrus Logic CL-CD180) driver 33 * 34 */ 35 36/*#define RCDEBUG*/ --- 104 unchanged lines hidden (view full) --- 141static void rc_wait0(struct rc_softc *sc, int chan, int line); 142 143static d_open_t rcopen; 144static d_close_t rcclose; 145static d_ioctl_t rcioctl; 146 147#define CDEV_MAJOR 63 148static 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*/ --- 104 unchanged lines hidden (view full) --- 141static void rc_wait0(struct rc_softc *sc, int chan, int line); 142 143static d_open_t rcopen; 144static d_close_t rcclose; 145static d_ioctl_t rcioctl; 146 147#define CDEV_MAJOR 63 148static struct cdevsw rc_cdevsw = { |
149 /* open */ rcopen, 150 /* close */ rcclose, 151 /* read */ ttyread, 152 /* write */ ttywrite, 153 /* ioctl */ rcioctl, 154 /* poll */ ttypoll, 155 /* mmap */ nommap, 156 /* strategy */ nostrategy, 157 /* name */ "rc", 158 /* maj */ CDEV_MAJOR, 159 /* dump */ nodump, 160 /* psize */ nopsize, 161 /* flags */ D_TTY | D_KQFILTER, 162 /* kqfilter */ ttykqfilter, | 149 .d_open = rcopen, 150 .d_close = rcclose, 151 .d_read = ttyread, 152 .d_write = ttywrite, 153 .d_ioctl = rcioctl, 154 .d_poll = ttypoll, 155 .d_name = "rc", 156 .d_maj = CDEV_MAJOR, 157 .d_flags = D_TTY | D_KQFILTER, 158 .d_kqfilter = ttykqfilter, |
163}; 164 165static devclass_t rc_devclass; 166 167/* Flags */ 168#define RC_DTR_OFF 0x0001 /* DTR wait, for close/open */ 169#define RC_ACTOUT 0x0002 /* Dial-out port active */ 170#define RC_RTSFLOW 0x0004 /* RTS flow ctl enabled */ --- 1427 unchanged lines hidden --- | 159}; 160 161static devclass_t rc_devclass; 162 163/* Flags */ 164#define RC_DTR_OFF 0x0001 /* DTR wait, for close/open */ 165#define RC_ACTOUT 0x0002 /* Dial-out port active */ 166#define RC_RTSFLOW 0x0004 /* RTS flow ctl enabled */ --- 1427 unchanged lines hidden --- |