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 111815 2003-03-03 12:15:54Z 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 .d_open = sioopen,
401 .d_close = sioclose,
402 .d_read = ttyread,
403 .d_write = siowrite,
404 .d_ioctl = sioioctl,
405 .d_poll = ttypoll,
406 .d_name = driver_name,
407 .d_maj = CDEV_MAJOR,
408 .d_flags = D_TTY | D_KQFILTER,
409 .d_kqfilter = ttykqfilter,
410};
411
412static int comconsole = -1;
413static speed_t comdefaultrate = TTYDEF_SPEED;
414static u_int com_events; /* input chars + weighted output completions */
415static void *sio_ih;
416static int sio_timeout;
417static 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 111815 2003-03-03 12:15:54Z 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 .d_open = sioopen,
401 .d_close = sioclose,
402 .d_read = ttyread,
403 .d_write = siowrite,
404 .d_ioctl = sioioctl,
405 .d_poll = ttypoll,
406 .d_name = driver_name,
407 .d_maj = CDEV_MAJOR,
408 .d_flags = D_TTY | D_KQFILTER,
409 .d_kqfilter = ttykqfilter,
410};
411
412static int comconsole = -1;
413static speed_t comdefaultrate = TTYDEF_SPEED;
414static u_int com_events; /* input chars + weighted output completions */
415static void *sio_ih;
416static int sio_timeout;
417static int sio_timeouts_until_log;
--- 2543 unchanged lines hidden ---