Deleted Added
full compact
sio.c (82696) sio.c (83246)
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 82696 2001-08-31 21:51:00Z murray $
33 * $FreeBSD: head/sys/dev/sio/sio.c 83246 2001-09-09 14:48:52Z dd $
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"

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

1353 ret = BUS_SETUP_INTR(device_get_parent(dev), dev, com->irqres,
1354 INTR_TYPE_TTY | INTR_FAST,
1355 siointr, com, &com->cookie);
1356 if (ret) {
1357 ret = BUS_SETUP_INTR(device_get_parent(dev), dev,
1358 com->irqres, INTR_TYPE_TTY,
1359 siointr, com, &com->cookie);
1360 if (ret == 0)
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"

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

1353 ret = BUS_SETUP_INTR(device_get_parent(dev), dev, com->irqres,
1354 INTR_TYPE_TTY | INTR_FAST,
1355 siointr, com, &com->cookie);
1356 if (ret) {
1357 ret = BUS_SETUP_INTR(device_get_parent(dev), dev,
1358 com->irqres, INTR_TYPE_TTY,
1359 siointr, com, &com->cookie);
1360 if (ret == 0)
1361 device_printf(dev, "unable to activate interrupt in fast mode - using normal mode");
1361 device_printf(dev, "unable to activate interrupt in fast mode - using normal mode\n");
1362 }
1363 if (ret)
1364 device_printf(dev, "could not activate interrupt\n");
1365#if defined(DDB) && (defined(BREAK_TO_DEBUGGER) || \
1366 defined(ALT_BREAK_TO_DEBUGGER))
1367 /*
1368 * Enable interrupts for early break-to-debugger support
1369 * on the console.

--- 2018 unchanged lines hidden ---
1362 }
1363 if (ret)
1364 device_printf(dev, "could not activate interrupt\n");
1365#if defined(DDB) && (defined(BREAK_TO_DEBUGGER) || \
1366 defined(ALT_BREAK_TO_DEBUGGER))
1367 /*
1368 * Enable interrupts for early break-to-debugger support
1369 * on the console.

--- 2018 unchanged lines hidden ---