Deleted Added
full compact
si.c (188266) si.c (193018)
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

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

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 */
34
35#include <sys/cdefs.h>
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

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

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 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/dev/si/si.c 188266 2009-02-07 02:14:27Z wkoszek $");
36__FBSDID("$FreeBSD: head/sys/dev/si/si.c 193018 2009-05-29 06:41:23Z ed $");
37
38#ifndef lint
39static const char si_copyright1[] = "@(#) Copyright (C) Specialix International, 1990,1992,1998",
40 si_copyright2[] = "@(#) Copyright (C) Andy Rutter 1993",
41 si_copyright3[] = "@(#) Copyright (C) Peter Wemm 2000";
42#endif /* not lint */
43
44#include "opt_compat.h"

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

579 for (x = 0; x < nport; x++, pp++, ccbp++) {
580 pp->sp_ccb = ccbp; /* save the address */
581 pp->sp_pend = IDLE_CLOSE;
582 pp->sp_state = 0; /* internal flag */
583#ifdef SI_DEBUG
584 sprintf(pp->sp_name, "si%r%r", unit,
585 (int)(pp - sc->sc_ports));
586#endif
37
38#ifndef lint
39static const char si_copyright1[] = "@(#) Copyright (C) Specialix International, 1990,1992,1998",
40 si_copyright2[] = "@(#) Copyright (C) Andy Rutter 1993",
41 si_copyright3[] = "@(#) Copyright (C) Peter Wemm 2000";
42#endif /* not lint */
43
44#include "opt_compat.h"

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

579 for (x = 0; x < nport; x++, pp++, ccbp++) {
580 pp->sp_ccb = ccbp; /* save the address */
581 pp->sp_pend = IDLE_CLOSE;
582 pp->sp_state = 0; /* internal flag */
583#ifdef SI_DEBUG
584 sprintf(pp->sp_name, "si%r%r", unit,
585 (int)(pp - sc->sc_ports));
586#endif
587 tp = pp->sp_tty = tty_alloc(&si_tty_class, pp, &Giant);
587 tp = pp->sp_tty = tty_alloc_mutex(&si_tty_class, pp, &Giant);
588 tty_makedev(tp, NULL, "A%r%r", unit, (int)(pp - sc->sc_ports));
589 }
590try_next2:
591 if (modp->sm_next == 0) {
592 printf("si%d: card: %s, ports: %d, modules: %d, type: %d%s\n",
593 unit,
594 sc->sc_typename,
595 sc->sc_nport,

--- 1056 unchanged lines hidden ---
588 tty_makedev(tp, NULL, "A%r%r", unit, (int)(pp - sc->sc_ports));
589 }
590try_next2:
591 if (modp->sm_next == 0) {
592 printf("si%d: card: %s, ports: %d, modules: %d, type: %d%s\n",
593 unit,
594 sc->sc_typename,
595 sc->sc_nport,

--- 1056 unchanged lines hidden ---