Deleted Added
full compact
nmdm.c (111119) nmdm.c (111815)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. 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) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. 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/dev/nmdm/nmdm.c 111119 2003-02-19 05:47:46Z imp $
33 * $FreeBSD: head/sys/dev/nmdm/nmdm.c 111815 2003-03-03 12:15:54Z phk $
34 */
35
36/*
37 * Pseudo-nulmodem driver
38 * Mighty handy for use with serial console in Vmware
39 */
40
41#include "opt_compat.h"

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

65static d_open_t nmdmopen;
66static d_close_t nmdmclose;
67static d_read_t nmdmread;
68static d_write_t nmdmwrite;
69static d_ioctl_t nmdmioctl;
70
71#define CDEV_MAJOR 18
72static struct cdevsw nmdm_cdevsw = {
34 */
35
36/*
37 * Pseudo-nulmodem driver
38 * Mighty handy for use with serial console in Vmware
39 */
40
41#include "opt_compat.h"

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

65static d_open_t nmdmopen;
66static d_close_t nmdmclose;
67static d_read_t nmdmread;
68static d_write_t nmdmwrite;
69static d_ioctl_t nmdmioctl;
70
71#define CDEV_MAJOR 18
72static struct cdevsw nmdm_cdevsw = {
73 /* open */ nmdmopen,
74 /* close */ nmdmclose,
75 /* read */ nmdmread,
76 /* write */ nmdmwrite,
77 /* ioctl */ nmdmioctl,
78 /* poll */ ttypoll,
79 /* mmap */ nommap,
80 /* strategy */ nostrategy,
81 /* name */ "pts",
82 /* maj */ CDEV_MAJOR,
83 /* dump */ nodump,
84 /* psize */ nopsize,
85 /* flags */ D_TTY,
73 .d_open = nmdmopen,
74 .d_close = nmdmclose,
75 .d_read = nmdmread,
76 .d_write = nmdmwrite,
77 .d_ioctl = nmdmioctl,
78 .d_poll = ttypoll,
79 .d_name = "pts",
80 .d_maj = CDEV_MAJOR,
81 .d_flags = D_TTY,
86};
87
88#define BUFSIZ 100 /* Chunk size iomoved to/from user */
89#define NMDM_MAX_NUM 128 /* Artificially limit # devices. */
90#define PF_STOPPED 0x10 /* user told stopped */
91
92struct softpart {
93 struct tty nm_tty;

--- 525 unchanged lines hidden ---
82};
83
84#define BUFSIZ 100 /* Chunk size iomoved to/from user */
85#define NMDM_MAX_NUM 128 /* Artificially limit # devices. */
86#define PF_STOPPED 0x10 /* user told stopped */
87
88struct softpart {
89 struct tty nm_tty;

--- 525 unchanged lines hidden ---