Deleted Added
full compact
si.c (111748) si.c (111815)
1/*
2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors.
3 *
4 * Copyright (C) 1990, 1992, 1998 Specialix International,
5 * Copyright (C) 1993, Andy Rutter <andy@acronym.co.uk>
6 * Copyright (C) 2000, Peter Wemm <peter@netplex.com.au>
7 *
8 * Originally derived from: SunOS 4.x version

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

25 * International may be used to endorse or promote products derived from
26 * this software without specific prior written permission.
27 *
28 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED
29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
31 * NO EVENT SHALL THE AUTHORS BE LIABLE.
32 *
1/*
2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors.
3 *
4 * Copyright (C) 1990, 1992, 1998 Specialix International,
5 * Copyright (C) 1993, Andy Rutter <andy@acronym.co.uk>
6 * Copyright (C) 2000, Peter Wemm <peter@netplex.com.au>
7 *
8 * Originally derived from: SunOS 4.x version

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

25 * International may be used to endorse or promote products derived from
26 * this software without specific prior written permission.
27 *
28 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED
29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
31 * NO EVENT SHALL THE AUTHORS BE LIABLE.
32 *
33 * $FreeBSD: head/sys/dev/si/si.c 111748 2003-03-02 16:54:40Z des $
33 * $FreeBSD: head/sys/dev/si/si.c 111815 2003-03-03 12:15:54Z phk $
34 */
35
36#ifndef lint
37static const char si_copyright1[] = "@(#) Copyright (C) Specialix International, 1990,1992,1998",
38 si_copyright2[] = "@(#) Copyright (C) Andy Rutter 1993",
39 si_copyright3[] = "@(#) Copyright (C) Peter Wemm 2000";
40#endif /* not lint */
41

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

111
112static d_open_t siopen;
113static d_close_t siclose;
114static d_write_t siwrite;
115static d_ioctl_t siioctl;
116
117#define CDEV_MAJOR 68
118static struct cdevsw si_cdevsw = {
34 */
35
36#ifndef lint
37static const char si_copyright1[] = "@(#) Copyright (C) Specialix International, 1990,1992,1998",
38 si_copyright2[] = "@(#) Copyright (C) Andy Rutter 1993",
39 si_copyright3[] = "@(#) Copyright (C) Peter Wemm 2000";
40#endif /* not lint */
41

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

111
112static d_open_t siopen;
113static d_close_t siclose;
114static d_write_t siwrite;
115static d_ioctl_t siioctl;
116
117#define CDEV_MAJOR 68
118static struct cdevsw si_cdevsw = {
119 /* open */ siopen,
120 /* close */ siclose,
121 /* read */ ttyread,
122 /* write */ siwrite,
123 /* ioctl */ siioctl,
124 /* poll */ ttypoll,
125 /* mmap */ nommap,
126 /* strategy */ nostrategy,
127 /* name */ "si",
128 /* maj */ CDEV_MAJOR,
129 /* dump */ nodump,
130 /* psize */ nopsize,
131 /* flags */ D_TTY | D_KQFILTER,
132 /* kqfilter */ ttykqfilter,
119 .d_open = siopen,
120 .d_close = siclose,
121 .d_read = ttyread,
122 .d_write = siwrite,
123 .d_ioctl = siioctl,
124 .d_poll = ttypoll,
125 .d_name = "si",
126 .d_maj = CDEV_MAJOR,
127 .d_flags = D_TTY | D_KQFILTER,
128 .d_kqfilter = ttykqfilter,
133};
134
135static int si_Nports;
136static int si_Nmodules;
137static int si_debug = 0; /* data, not bss, so it's patchable */
138
139SYSCTL_INT(_machdep, OID_AUTO, si_debug, CTLFLAG_RW, &si_debug, 0, "");
140TUNABLE_INT("machdep.si_debug", &si_debug);

--- 2042 unchanged lines hidden ---
129};
130
131static int si_Nports;
132static int si_Nmodules;
133static int si_debug = 0; /* data, not bss, so it's patchable */
134
135SYSCTL_INT(_machdep, OID_AUTO, si_debug, CTLFLAG_RW, &si_debug, 0, "");
136TUNABLE_INT("machdep.si_debug", &si_debug);

--- 2042 unchanged lines hidden ---