Deleted Added
full compact
sio.c (111194) sio.c (111815)
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/pc98/cbus/sio.c 111194 2003-02-20 20:54:45Z phk $
33 * $FreeBSD: head/sys/pc98/cbus/sio.c 111815 2003-03-03 12:15:54Z phk $
34 * from: @(#)com.c 7.5 (Berkeley) 5/16/91
35 * from: i386/isa sio.c,v 1.234
36 */
37
38#include "opt_comconsole.h"
39#include "opt_compat.h"
40#include "opt_ddb.h"
41#include "opt_sio.h"

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

402static d_open_t sioopen;
403static d_close_t sioclose;
404static d_read_t sioread;
405static d_write_t siowrite;
406static d_ioctl_t sioioctl;
407
408#define CDEV_MAJOR 28
409static struct cdevsw sio_cdevsw = {
34 * from: @(#)com.c 7.5 (Berkeley) 5/16/91
35 * from: i386/isa sio.c,v 1.234
36 */
37
38#include "opt_comconsole.h"
39#include "opt_compat.h"
40#include "opt_ddb.h"
41#include "opt_sio.h"

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

402static d_open_t sioopen;
403static d_close_t sioclose;
404static d_read_t sioread;
405static d_write_t siowrite;
406static d_ioctl_t sioioctl;
407
408#define CDEV_MAJOR 28
409static struct cdevsw sio_cdevsw = {
410 /* open */ sioopen,
411 /* close */ sioclose,
412 /* read */ sioread,
413 /* write */ siowrite,
414 /* ioctl */ sioioctl,
415 /* poll */ ttypoll,
416 /* mmap */ nommap,
417 /* strategy */ nostrategy,
418 /* name */ sio_driver_name,
419 /* maj */ CDEV_MAJOR,
420 /* dump */ nodump,
421 /* psize */ nopsize,
422 /* flags */ D_TTY | D_KQFILTER,
423 /* kqfilter */ ttykqfilter,
410 .d_open = sioopen,
411 .d_close = sioclose,
412 .d_read = sioread,
413 .d_write = siowrite,
414 .d_ioctl = sioioctl,
415 .d_poll = ttypoll,
416 .d_name = sio_driver_name,
417 .d_maj = CDEV_MAJOR,
418 .d_flags = D_TTY | D_KQFILTER,
419 .d_kqfilter = ttykqfilter,
424};
425
426int comconsole = -1;
427static volatile speed_t comdefaultrate = CONSPEED;
428static u_long comdefaultrclk = DEFAULT_RCLK;
429SYSCTL_ULONG(_machdep, OID_AUTO, conrclk, CTLFLAG_RW, &comdefaultrclk, 0, "");
430static speed_t gdbdefaultrate = GDBSPEED;
431SYSCTL_UINT(_machdep, OID_AUTO, gdbspeed, CTLFLAG_RW,

--- 4678 unchanged lines hidden ---
420};
421
422int comconsole = -1;
423static volatile speed_t comdefaultrate = CONSPEED;
424static u_long comdefaultrclk = DEFAULT_RCLK;
425SYSCTL_ULONG(_machdep, OID_AUTO, conrclk, CTLFLAG_RW, &comdefaultrclk, 0, "");
426static speed_t gdbdefaultrate = GDBSPEED;
427SYSCTL_UINT(_machdep, OID_AUTO, gdbspeed, CTLFLAG_RW,

--- 4678 unchanged lines hidden ---