Deleted Added
full compact
sio.c (104933) sio.c (110249)
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/dev/sio/sio.c 104933 2002-10-11 20:22:20Z imp $
33 * $FreeBSD: head/sys/dev/sio/sio.c 110249 2003-02-02 21:25:22Z 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"

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

1098 com->devs[3] = make_dev(&sio_cdevsw, minorbase | CALLOUT_MASK,
1099 UID_UUCP, GID_DIALER, 0660, "cuaa%r", unit);
1100 com->devs[4] = make_dev(&sio_cdevsw,
1101 minorbase | CALLOUT_MASK | CONTROL_INIT_STATE,
1102 UID_UUCP, GID_DIALER, 0660, "cuaia%r", unit);
1103 com->devs[5] = make_dev(&sio_cdevsw,
1104 minorbase | CALLOUT_MASK | CONTROL_LOCK_STATE,
1105 UID_UUCP, GID_DIALER, 0660, "cuala%r", unit);
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"

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

1098 com->devs[3] = make_dev(&sio_cdevsw, minorbase | CALLOUT_MASK,
1099 UID_UUCP, GID_DIALER, 0660, "cuaa%r", unit);
1100 com->devs[4] = make_dev(&sio_cdevsw,
1101 minorbase | CALLOUT_MASK | CONTROL_INIT_STATE,
1102 UID_UUCP, GID_DIALER, 0660, "cuaia%r", unit);
1103 com->devs[5] = make_dev(&sio_cdevsw,
1104 minorbase | CALLOUT_MASK | CONTROL_LOCK_STATE,
1105 UID_UUCP, GID_DIALER, 0660, "cuala%r", unit);
1106 for (rid = 0; rid < 6; rid++)
1107 com->devs[rid]->si_drv1 = com;
1106 com->flags = flags;
1107 com->pps.ppscap = PPS_CAPTUREASSERT | PPS_CAPTURECLEAR;
1108 pps_init(&com->pps);
1109
1110 rid = 0;
1111 com->irqres = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0ul, ~0ul, 1,
1112 RF_ACTIVE);
1113 if (com->irqres) {

--- 2151 unchanged lines hidden ---
1108 com->flags = flags;
1109 com->pps.ppscap = PPS_CAPTUREASSERT | PPS_CAPTURECLEAR;
1110 pps_init(&com->pps);
1111
1112 rid = 0;
1113 com->irqres = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0ul, ~0ul, 1,
1114 RF_ACTIVE);
1115 if (com->irqres) {

--- 2151 unchanged lines hidden ---