1/*-
2 * cyclades cyclom-y serial driver
3 * Andrew Herbert <andrew@werple.apana.org.au>, 17 August 1993
4 *
5 * Copyright (c) 1993 Andrew Herbert.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
--- 13 unchanged lines hidden (view full) ---
22 * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/dev/cy/cy_isa.c 111002 2003-02-16 14:13:23Z phk $
31 */
32
33#include "opt_compat.h"
34#include "cy.h"
35
36/*
37 * TODO:
38 * Atomic COR change.
--- 353 unchanged lines hidden (view full) ---
392
393static d_open_t sioopen;
394static d_close_t sioclose;
395static d_write_t siowrite;
396static d_ioctl_t sioioctl;
397
398#define CDEV_MAJOR 48
399static struct cdevsw sio_cdevsw = {
400 /* open */ sioopen,
401 /* close */ sioclose,
402 /* read */ ttyread,
403 /* write */ siowrite,
404 /* ioctl */ sioioctl,
405 /* poll */ ttypoll,
406 /* mmap */ nommap,
407 /* strategy */ nostrategy,
408 /* name */ driver_name,
409 /* maj */ CDEV_MAJOR,
410 /* dump */ nodump,
411 /* psize */ nopsize,
412 /* flags */ D_TTY | D_KQFILTER,
413 /* kqfilter */ ttykqfilter,
414};
415
416static int comconsole = -1;
417static speed_t comdefaultrate = TTYDEF_SPEED;
418static u_int com_events; /* input chars + weighted output completions */
419static void *sio_ih;
420static int sio_timeout;
421static int sio_timeouts_until_log;
--- 2543 unchanged lines hidden ---
2 * cyclades cyclom-y serial driver
3 * Andrew Herbert <andrew@werple.apana.org.au>, 17 August 1993
4 *
5 * Copyright (c) 1993 Andrew Herbert.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
--- 13 unchanged lines hidden (view full) ---
22 * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/dev/cy/cy_isa.c 111002 2003-02-16 14:13:23Z phk $
31 */
32
33#include "opt_compat.h"
34#include "cy.h"
35
36/*
37 * TODO:
38 * Atomic COR change.
--- 353 unchanged lines hidden (view full) ---
392
393static d_open_t sioopen;
394static d_close_t sioclose;
395static d_write_t siowrite;
396static d_ioctl_t sioioctl;
397
398#define CDEV_MAJOR 48
399static struct cdevsw sio_cdevsw = {
400 /* open */ sioopen,
401 /* close */ sioclose,
402 /* read */ ttyread,
403 /* write */ siowrite,
404 /* ioctl */ sioioctl,
405 /* poll */ ttypoll,
406 /* mmap */ nommap,
407 /* strategy */ nostrategy,
408 /* name */ driver_name,
409 /* maj */ CDEV_MAJOR,
410 /* dump */ nodump,
411 /* psize */ nopsize,
412 /* flags */ D_TTY | D_KQFILTER,
413 /* kqfilter */ ttykqfilter,
414};
415
416static int comconsole = -1;
417static speed_t comdefaultrate = TTYDEF_SPEED;
418static u_int com_events; /* input chars + weighted output completions */
419static void *sio_ih;
420static int sio_timeout;
421static int sio_timeouts_until_log;
--- 2543 unchanged lines hidden ---