Deleted Added
full compact
si_isa.c (139749) si_isa.c (166914)
1/*-
2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors.
3 *
4 * Copyright (C) 2000, Peter Wemm <peter@netplex.com.au>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

15 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED
16 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
17 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
18 * NO EVENT SHALL THE AUTHORS BE LIABLE.
19 *
20 */
21
22#include <sys/cdefs.h>
1/*-
2 * Device driver for Specialix range (SI/XIO) of serial line multiplexors.
3 *
4 * Copyright (C) 2000, Peter Wemm <peter@netplex.com.au>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

15 * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED
16 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
17 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
18 * NO EVENT SHALL THE AUTHORS BE LIABLE.
19 *
20 */
21
22#include <sys/cdefs.h>
23__FBSDID("$FreeBSD: head/sys/dev/si/si_isa.c 139749 2005-01-06 01:43:34Z imp $");
23__FBSDID("$FreeBSD: head/sys/dev/si/si_isa.c 166914 2007-02-23 19:34:52Z imp $");
24
25#include "opt_debug_si.h"
26
27#include <sys/param.h>
28#include <sys/systm.h>
29#include <sys/kernel.h>
30#include <sys/module.h>
31#include <sys/bus.h>

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

287 &sc->sc_irq_rid,
288 RF_ACTIVE | RF_SHAREABLE);
289 if (!sc->sc_irq_res) {
290 device_printf(dev, "couldn't allocate interrupt\n");
291 goto fail;
292 }
293 sc->sc_irq = rman_get_start(sc->sc_irq_res);
294 error = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_TTY,
24
25#include "opt_debug_si.h"
26
27#include <sys/param.h>
28#include <sys/systm.h>
29#include <sys/kernel.h>
30#include <sys/module.h>
31#include <sys/bus.h>

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

287 &sc->sc_irq_rid,
288 RF_ACTIVE | RF_SHAREABLE);
289 if (!sc->sc_irq_res) {
290 device_printf(dev, "couldn't allocate interrupt\n");
291 goto fail;
292 }
293 sc->sc_irq = rman_get_start(sc->sc_irq_res);
294 error = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_TTY,
295 si_intr, sc,&ih);
295 NULL, si_intr, sc, &ih);
296 if (error) {
297 device_printf(dev, "couldn't activate interrupt\n");
298 goto fail;
299 }
300
301 error = siattach(dev);
302 if (error)
303 goto fail;

--- 35 unchanged lines hidden ---
296 if (error) {
297 device_printf(dev, "couldn't activate interrupt\n");
298 goto fail;
299 }
300
301 error = siattach(dev);
302 if (error)
303 goto fail;

--- 35 unchanged lines hidden ---