Deleted Added
full compact
nmdm.c (130585) nmdm.c (130640)
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

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

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 */
30
31#include <sys/cdefs.h>
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

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

24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/nmdm/nmdm.c 130585 2004-06-16 09:47:26Z phk $");
32__FBSDID("$FreeBSD: head/sys/dev/nmdm/nmdm.c 130640 2004-06-17 17:16:53Z phk $");
33
34/*
35 * Pseudo-nulmodem driver
36 * Mighty handy for use with serial console in Vmware
37 */
38
39#include "opt_compat.h"
40#include "opt_tty.h"

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

95
96static void
97nmdm_clone(void *arg, char *name, int nameen, struct cdev **dev)
98{
99 int i, unit;
100 char *p;
101 struct cdev *d1, *d2;
102
33
34/*
35 * Pseudo-nulmodem driver
36 * Mighty handy for use with serial console in Vmware
37 */
38
39#include "opt_compat.h"
40#include "opt_tty.h"

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

95
96static void
97nmdm_clone(void *arg, char *name, int nameen, struct cdev **dev)
98{
99 int i, unit;
100 char *p;
101 struct cdev *d1, *d2;
102
103 if (*dev != NODEV)
103 if (*dev != NULL)
104 return;
105 if (strcmp(name, "nmdm") == 0) {
106 p = NULL;
107 unit = -1;
108 } else {
109 i = dev_stdclone(name, &p, "nmdm", &unit);
110 if (i == 0)
111 return;

--- 211 unchanged lines hidden ---
104 return;
105 if (strcmp(name, "nmdm") == 0) {
106 p = NULL;
107 unit = -1;
108 } else {
109 i = dev_stdclone(name, &p, "nmdm", &unit);
110 if (i == 0)
111 return;

--- 211 unchanged lines hidden ---